ttlappalainen / NMEA0183

Library for handling NMEA0183 messages
69 stars 44 forks source link

Added GSV parser #28

Closed sailingfree closed 2 years ago

sailingfree commented 2 years ago

Hi, I wanted to get the GSV - Satellites in View to plot a basic map of satellites so I have added a basic parser for GSV messages.

GSV-parser-diff.txt

ttlappalainen commented 2 years ago

I'll check this. Wouldn't it make sense to make structure for satellite data?

sailingfree commented 2 years ago
Hi Timo,

yes I agree, I've already got a struct on the application side so
I'll merge that in. How do you prefer the changes, diff, pull
request?

Pete

On 02-Aug-21 7:05 AM, Timo Lappalainen
  wrote:

  I'll check this. Wouldn't it make sense to make structure for
    satellite data?
  —
    You are receiving this because you authored the thread.
    Reply to this email directly, view it on GitHub, or unsubscribe.
  [

{ @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/ttlappalainen/NMEA0183/issues/28#issuecomment-890746249", "url": "https://github.com/ttlappalainen/NMEA0183/issues/28#issuecomment-890746249", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

ttlappalainen commented 2 years ago

Pull.

Note that Elevation, Azimuth, SNR are logically real numbers, so I prefer to use double instead of int. Then you can use ReadDouble function

PRN is uint8_t - I think. It is limited at least on NMEA.