mirror of
https://github.com/oe3cjb/TTGO-T-Beam-LoRa-APRS.git
synced 2025-12-06 07:12:02 +01:00
Merge pull request #26 from oe3cjb/trackermode_correction
WX TRACKER mode correction
This commit is contained in:
commit
5aa5dd81a1
|
|
@ -1031,6 +1031,17 @@ switch(tracker_mode) {
|
|||
outString += String(Lon,2);
|
||||
outString += Ew;
|
||||
outString += TxSymbol;
|
||||
if(Tcourse<100) {outString += "0"; }
|
||||
if(Tcourse<10) {outString += "0"; }
|
||||
Coursex = String(Tcourse,0);
|
||||
Coursex.replace(" ","");
|
||||
outString += Coursex;
|
||||
outString += "/";
|
||||
if(Tspeed<100) {outString += "0"; }
|
||||
if(Tspeed<10) {outString += "0"; }
|
||||
Speedx = String(Tspeed,0);
|
||||
Speedx.replace(" ","");
|
||||
outString += Speedx;
|
||||
#else
|
||||
for (i=0; i<Tcall.length();++i){ // remove unneeded "spaces" from callsign field
|
||||
if (Tcall.charAt(i) != ' ') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue