From 32f6397c0592cb155e60c0d3b1e9d84c65b4eb6f Mon Sep 17 00:00:00 2001 From: mek_x Date: Thu, 24 Apr 2014 00:03:08 +0200 Subject: [PATCH] README.md: added info about GSV --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 8d788b0..c1d3271 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ systems. * ``RMC`` (Recommended Minimum: position, velocity, time) * ``GGA`` (Fix Data) * ``GSA`` (DOP and active satellites) +* ``GSV`` (Satellites in view) Adding support for more sentences is trivial; see ``minmea.c`` source. @@ -78,6 +79,20 @@ The library doesn't perform this conversion automatically for the following reas printf("$GPGGA: fix quality: %d\n", frame.fix_quality); } } break; + + case MINMEA_SENTENCE_GSV: { + struct minmea_sentence_gsv frame; + if (minmea_parse_gsv(&frame, line)) { + printf("$GPGSV: message %d of %d\n", frame.msg_nr, frame.total_msgs); + printf("$GPGSV: sattelites in view: %d\n", frame.total_sats); + for (int i = 0; i < 4; i++) + printf("$GPGSV: sat nr %d, elevation: %d, azimuth: %d, snr: %d dbm\n", + frame.sats[i].nr, + frame.sats[i].elevation, + frame.sats[i].azimuth, + frame.sats[i].snr); + } + } break; } } ```