From 36cca57dcfea7983f8308c300db73cfd75dd98ef Mon Sep 17 00:00:00 2001 From: nrbray <1032934+nrbray@users.noreply.github.com> Date: Tue, 17 Oct 2023 06:48:34 +0100 Subject: [PATCH] =?UTF-8?q?Adds=20support=20for=20$PFLAA=20and=20$PFLA?= =?UTF-8?q?=E2=80=A6=20=20=E2=80=A6U=20traffic=20sentences=20from=20the=20?= =?UTF-8?q?FLARM=20protocol:=20http://delta-omega.com/download/EDIA/FLARM?= =?UTF-8?q?=5FDataportManual=5Fv3.02E.pdf=20(#149)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/DavisChappins/pynmea2 support for $PFLAA and $PFLAU traffic sentences from the FLARM protocol: http://delta-omega.com/download/EDIA/FLARM_DataportManual_v3.02E.pdf Co-authored-by: Nigel Bray --- pynmea2/types/talker.py | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/pynmea2/types/talker.py b/pynmea2/types/talker.py index 8c00c7a..c43df37 100644 --- a/pynmea2/types/talker.py +++ b/pynmea2/types/talker.py @@ -1038,3 +1038,35 @@ class ALK(TalkerSentence,SeaTalk): ("Data Byte 8", "data_byte8"), ("Data Byte 9", "data_byte9") ) + +# Implemented by Davis Chappins for FLARM traffic +#PFLAU: Operating status and priority intruder and obstacle data +class LAU(TalkerSentence): + fields = ( + ("RX","RX"), + ("TX","TX"), + ("GPS","GPS"), + ("Power","Power"), + ("AlarmLevel","AlarmLevel"), + ("RelativeBearing","RelativeBearing"), + ("AlarmType","AlarmType"), + ("RelativeVertial","RelativeVertical"), + ("RelativeDistance","RelativeDistance"), + + ) + +#PFLAA: Data on other moving objects around +class LAA(TalkerSentence): + fields = ( + ("AlarmLevel","AlarmLevel"), + ("RelativeNorth","RelativeNorth"), + ("RelativeEast","RelativeEast"), + ("RelativeVertical","RelativeVertical"), + ("ID-Type","ID-Type"), + ("ID","ID"), + ("Track","Track"), + ("TurnRate","TurnRate"), + ("GroundSpeed","GroundSpeed"), + ("ClimbRate","ClimbRate"), + ("Type","Type"), + )