diff options
author | Keith Packard <keithp@keithp.com> | 2014-05-05 23:43:44 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-05-08 20:44:10 -0700 |
commit | b22dff94778b1f15a6ad1989d526b936f0fa09ea (patch) | |
tree | 88a3cad15a5a66fffa7586ceb1e8ad59d30d9a62 /src | |
parent | c9d6a1fbb3148f03864df6d1ed5f6b6dccd7b383 (diff) |
altos: ublox driver always offers course data when it has a fix
Set the AO_GPS_COURSE_VALID bit to signal that this part of the GPS
data is valid.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/drivers/ao_gps_ublox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/ao_gps_ublox.c b/src/drivers/ao_gps_ublox.c index 01169522..8676a670 100644 --- a/src/drivers/ao_gps_ublox.c +++ b/src/drivers/ao_gps_ublox.c @@ -713,7 +713,7 @@ ao_gps(void) __reentrant ao_gps_data.flags |= AO_GPS_RUNNING; if (nav_sol.gps_fix & (1 << NAV_SOL_FLAGS_GPSFIXOK)) { uint8_t nsat = nav_sol.nsat; - ao_gps_data.flags |= AO_GPS_VALID; + ao_gps_data.flags |= AO_GPS_VALID | AO_GPS_COURSE_VALID; if (nsat > 15) nsat = 15; ao_gps_data.flags |= nsat; |