diff options
| author | Keith Packard <keithp@keithp.com> | 2009-11-15 16:20:18 -0800 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2009-11-15 16:20:18 -0800 |
| commit | b0d7e3f9c9322542e9b649bb6ad7f7e5bb99dffa (patch) | |
| tree | 0f0fcefd67f4bef178ebd282f3151ba93564f55b /src/ao_gps_skytraq.c | |
| parent | 524665fc221b0d483453c67b7211e282cebc8980 (diff) | |
Stop using SiRF state info.
With the switch to the skytraq GPS unit, we don't have the same level
of detail in the GPS stream, so stop reporting that in the telemetry
stream, in the UI and writing it to eeprom.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_gps_skytraq.c')
| -rw-r--r-- | src/ao_gps_skytraq.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ao_gps_skytraq.c b/src/ao_gps_skytraq.c index b2eef04b..bf192f28 100644 --- a/src/ao_gps_skytraq.c +++ b/src/ao_gps_skytraq.c @@ -326,10 +326,8 @@ ao_gps(void) __reentrant ao_gps_skip_field(); /* elevation */ ao_gps_lexchar(); ao_gps_skip_field(); /* azimuth */ - if (ao_gps_tracking_next.sats[i].c_n_1 = ao_gps_decimal(2)) /* C/N0 */ - ao_gps_tracking_next.sats[i].state = 0xbf; - else - ao_gps_tracking_next.sats[i].state = 0; + if (!(ao_gps_tracking_next.sats[i].c_n_1 = ao_gps_decimal(2))) /* C/N0 */ + ao_gps_tracking_next.sats[i].svid = 0; ao_gps_tracking_next.channels = i + 1; } if (ao_gps_char == '*') { |
