kopia lustrzana https://github.com/pjalocha/esp32-ogn-tracker
Bug fix in PFLAA
rodzic
406429ba42
commit
d3dba4df3f
|
@ -133,9 +133,9 @@ class LookOut_Target // describes a flying aircrafts
|
||||||
// Len+=Format_UnsDec(NMEA+Len, (uint32_t)Pos.Speed*5, 2, 1); // [approx. m/s] ground speed
|
// Len+=Format_UnsDec(NMEA+Len, (uint32_t)Pos.Speed*5, 2, 1); // [approx. m/s] ground speed
|
||||||
Len+=Format_UnsDec(NMEA+Len, (uint32_t)Pos.Speed/2, 1); // [approx. m/s] ground speed - without decimal
|
Len+=Format_UnsDec(NMEA+Len, (uint32_t)Pos.Speed/2, 1); // [approx. m/s] ground speed - without decimal
|
||||||
NMEA[Len++]=',';
|
NMEA[Len++]=',';
|
||||||
if(Pos.hasClimb) Len+=Format_SignDec(NMEA+Len, (int32_t)Pos.Climb*5, 2, 1, 1); // [m/s] climb/sink rate - with decimal part
|
if(Pos.hasClimb) Len+=Format_SignDec(NMEA+Len, (int32_t)Pos.Climb*5, 2, 1, 1); // [m/s] climb/sink rate - with decimal part
|
||||||
NMEA[Len++]=',';
|
NMEA[Len++]=',';
|
||||||
NMEA[Len++]=AcftType; // [0..F] aircraft-type: 1=glider, 2=tow plane, etc.
|
NMEA[Len++]=HexDigit(AcftType); // [0..F] aircraft-type: 1=glider, 2=tow plane, etc.
|
||||||
Len+=NMEA_AppendCheckCRNL(NMEA, Len);
|
Len+=NMEA_AppendCheckCRNL(NMEA, Len);
|
||||||
NMEA[Len]=0;
|
NMEA[Len]=0;
|
||||||
return Len; } // return number of formatted characters
|
return Len; } // return number of formatted characters
|
||||||
|
|
Ładowanie…
Reference in New Issue