README.md: added info about GSV
This commit is contained in:
parent
daed9fd707
commit
32f6397c05
15
README.md
15
README.md
@ -19,6 +19,7 @@ systems.
|
|||||||
* ``RMC`` (Recommended Minimum: position, velocity, time)
|
* ``RMC`` (Recommended Minimum: position, velocity, time)
|
||||||
* ``GGA`` (Fix Data)
|
* ``GGA`` (Fix Data)
|
||||||
* ``GSA`` (DOP and active satellites)
|
* ``GSA`` (DOP and active satellites)
|
||||||
|
* ``GSV`` (Satellites in view)
|
||||||
|
|
||||||
Adding support for more sentences is trivial; see ``minmea.c`` source.
|
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);
|
printf("$GPGGA: fix quality: %d\n", frame.fix_quality);
|
||||||
}
|
}
|
||||||
} break;
|
} 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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user