From d3dba4df3f01cbbc2ab17bde888ad35880e58030 Mon Sep 17 00:00:00 2001 From: Pawel Jalocha Date: Tue, 23 May 2023 05:22:52 +0100 Subject: [PATCH] Bug fix in PFLAA --- main/lookout.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/lookout.h b/main/lookout.h index 12b721b..6347d64 100644 --- a/main/lookout.h +++ b/main/lookout.h @@ -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/2, 1); // [approx. m/s] ground speed - without decimal 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++]=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); NMEA[Len]=0; return Len; } // return number of formatted characters