SkyDemon Forums

Bug in parsing Flarm PFLAA sentence - distance always shown as 0nm

http://forums.skydemon.aero/Topic32128.aspx

By b3nn0 - 9/9/2020 12:07:39 PM

Hi,
there seems to be a bug in your Flarm-NMEA parser (PFLAA sentence).
For the sake of testing, I did a little simulation in my Stratux.
Relevant NMEA output:
$PFLAU,26,1,2,1,2,17,2,30,1337,111111*7B
$PFLAA,2,1111,743,30,1,111111,180,0,36,0.0,0*54

The PFLAA sentence shows a relativeNorth distance of 1111m and a relativeEast distance of 743m.
However, SkyDemon shows the distance as 0,0nm it its banner. The voice alert tells the correct distance.

By Tim Dawson - 9/10/2020 9:37:36 AM

It's the PFLAU message that is generating an alert in SkyDemon. The distance reading does appear to have a bug in it, this is occurring where the distance is less than 1nm. Thanks for letting us know.

However we would ask that if your device is pretending to be a Flarm device, please do NOT issue PFLAU messages. If you do, you will override SkyDemon's own traffic collision and awareness algorithms. That is not typically what users want.