Explorar el Código

README.md: added info about GSV

mek_x hace 11 años
padre
commit
32f6397c05
Se han modificado 1 ficheros con 15 adiciones y 0 borrados
  1. 15 0
      README.md

+ 15 - 0
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;
         }
     }
 ```