From 4d646fa046e32c71c95580f2cb2d60a1f8f42d3e Mon Sep 17 00:00:00 2001
From: Morten <nissovm@gmail.com>
Date: Tue, 21 Apr 2020 10:47:52 +0200
Subject: [PATCH] Update talker.py

Adding radar system data (RSD) message type, according to https://gpsd.gitlab.io/gpsd/NMEA.html.
---
 pynmea2/types/talker.py | 25 +++++++++++++++++++------
 1 file changed, 19 insertions(+), 6 deletions(-)

diff --git a/pynmea2/types/talker.py b/pynmea2/types/talker.py
index 547d003..985b07c 100644
--- a/pynmea2/types/talker.py
+++ b/pynmea2/types/talker.py
@@ -867,11 +867,24 @@ class TTM(TalkerSentence):
     #    fields = (
     # )
 
-#class RSD(TalkerSentence):
-#    """ RADAR System Data
-#    """
-    #    fields = (
-    # )
+class RSD(TalkerSentence):
+    """ RADAR System Data
+    """
+    fields = (
+        ("Origin 1 Range", "orig_1_range", Decimal),
+        ("Origin 1 Bearing", "orig_1_bearing", Decimal),
+        ("Variable Range Marker 1", "var_range_1", Decimal),
+        ("Bearing Line 1", "bearing_line_1", Decimal),
+        ("Origin 2 Range", "orig_2_range", Decimal),
+        ("Origin 2 Bearing", "orig_2_bearing", Decimal),
+        ("Variable Range Marker 2", "var_range_2", Decimal),
+        ("Bearing Line 2", "bearing_line_2", Decimal),
+        ("Cursor Range from Own Ship", "cursor_range", Decimal),
+        ("Cursor Bearing Degrees Clockwise from Zero", "cursor_bearing", Decimal),
+        ("Range Scale", "range_scale", Decimal),
+        ("Range Units", "range_units"),
+        ("Display Rotation", "disp_rotation"),
+    )
 
 #class SFI(TalkerSentence):
 #    """ Scanning Frequency Information
@@ -1035,4 +1048,4 @@ 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
+    )