title: rPi Python, seatalk1 to nmea 0183
body: <p>Hello I'm new to programing.</p>
  <p>Below datagrams are from <a href="http://www.thomasknauf.de/rap/seatalk2.htm" rel="nofollow noreferrer">http://www.thomasknauf.de/rap/seatalk2.htm</a>
  And these are some samples which i have to translate to nmea0183.
  Can anyone kindly do some of the parsing in python?</p>
  <p>Final program will get the seatalk1 data when sent and translate it to nmea0183 then display it on screen.
  seatalk1 data will come from <a href="https://github.com/Thomas-GeDaD/Seatalk1-Raspi-reader" rel="nofollow noreferrer">https://github.com/Thomas-GeDaD/Seatalk1-Raspi-reader</a>
  Thank you</p>
  <pre><code> 00  02  YZ  XX XX  Depth below transducer: XXXX/10 feet
                     Flags in Y: Y&amp;8 = 8: Anchor Alarm is active
                                Y&amp;4 = 4: Metric display units or
                                         Fathom display units if followed by command 65
                                Y&amp;2 = 2: Used, unknown meaning
                    Flags in Z: Z&amp;4 = 4: Transducer defective
                                Z&amp;2 = 2: Deep Alarm is active
                                Z&amp;1 = 1: Shallow Depth Alarm is active
                  Corresponding NMEA sentences: DPT, DBT
  </code></pre>
  <p>or</p>
  <pre><code> 10  01  XX  YY  Apparent Wind Angle: XXYY/2 degrees right of bow
               Used for autopilots Vane Mode (WindTrim)
               Corresponding NMEA sentence: MWV
  </code></pre>
  <p>or</p>
  <pre><code> 11  01  XX  0Y  Apparent Wind Speed: (XX &amp; 0x7F) + Y/10 Knots
               Units flag: XX&amp;0x80=0    =&gt; Display value in Knots
                           XX&amp;0x80=0x80 =&gt; Display value in Meter/Second
               Corresponding NMEA sentence: MWV
  </code></pre>
  <p>or</p>
  <pre><code> 50  Z2  XX  YY  YY  LAT position: XX degrees, (YYYY &amp; 0x7FFF)/100 minutes
                   MSB of Y = YYYY &amp; 0x8000 = South if set, North if cleared
                   Z= 0xA or 0x0 (reported for Raystar 120 GPS), meaning unknown
                   Stable filtered position, for raw data use command 58
                   Corresponding NMEA sentences: RMC, GAA, GLL
  </code></pre>
  <p>or</p>
  <pre><code> 53  U0  VW      Course over Ground (COG) in degrees:
               The two lower  bits of  U * 90 +
                  the six lower  bits of VW *  2 +
                  the two higher bits of  U /  2 =
                  (U &amp; 0x3) * 90 + (VW &amp; 0x3F) * 2 + (U &amp; 0xC) / 8
               The Magnetic Course may be offset by the Compass Variation (see datagram 99) to get the Course Over Ground (COG).
               Corresponding NMEA sentences: RMC, VTG
  </code></pre>