From 5dc8f0e2916c8dbb3b264c1227ee2ec311e4b844 Mon Sep 17 00:00:00 2001 From: alon Date: Sat, 20 Jun 2020 18:55:17 +0300 Subject: [PATCH] added support for SDDBK type messages --- pynmea2/types/talker.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/pynmea2/types/talker.py b/pynmea2/types/talker.py index 547d003..e34d5c3 100644 --- a/pynmea2/types/talker.py +++ b/pynmea2/types/talker.py @@ -1035,4 +1035,18 @@ class ALK(TalkerSentence,SeaTalk): ("Data Byte 7", "data_byte7"), ("Data Byte 8", "data_byte8"), ("Data Byte 9", "data_byte9") - ) \ No newline at end of file + ) + +class DBK(TalkerSentence): + """ DBK - Depth below keel + $--DBK,x.x,f,x.x,M,x.x,F*hh + Example: $SDDBK,12.3,f,3.7,M,2.0,F*2F + """ + fields = ( + ('Depth below keel, feet', 'depth_feet', Decimal), + ('Feets', 'feets'), + ('Depth below keel, meters', 'depth_meter', Decimal), + ('Meters', 'meters'), + ('Depth below keel, fathoms', 'depth_ fathoms', Decimal), + ('Fathoms', 'fathoms'), + )