Hello ,
I have a question about getting data from text file
I want to get the last line of the GPS file - the one that give me the number of satellites
up until now I use this command :
:global speed [:pick $gpstext [find $gpstext "speed:"] [find $gpstext "destination-bearing"]];
:global dstB [:pick $gpstext [find $gpstext "destination-bearing:"] [find $gpstext "true-bearing"]];
how do I do it for the “satellites” ?
after the satellites I have only number - so I can’t tell him what is the end
example :
altitude: 70.199997m
speed: 0.203720 km/h
destination-bearing: none
true-bearing: 0.000000 deg. True
magnetic-bearing: 0.000000 deg. Mag
valid: yes
satellites: 7
?
thanks ,