Merge pull request #26 from oe3cjb/trackermode_correction

WX TRACKER mode correction
This commit is contained in:
oe3cjb 2022-06-03 13:26:35 +02:00 committed by GitHub
commit 5aa5dd81a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) != ' ') {