AllStarLink / Voter

https://wiki.allstarlink.org/wiki/VOTER
GNU Affero General Public License v3.0
5 stars 3 forks source link

Fix TSIP Satellite Check #8

Open ve7fet opened 2 years ago

ve7fet commented 2 years ago

In voter.c, process_gps:

if (gps_buf[1] == 0xac) // AC is the Supplemental Timing Packet {

...

gps_nsat = 3; // Hah, we're faking the number of received sats.

if ((gps_state == GPS_STATE_RECEIVED) && (gps_nsat > 0) && gps_time) {

Investigate why we're manually setting the number of satellites in view, and see if we can do an actual check from the TSIP string to validate instead.

ve7fet commented 2 years ago

Looks like TSIP timing packets AB and AC do not actually report number of satellites in view, so that would be why it is manually set.

Will add a note to the source.