From: Keith Packard Date: Tue, 6 May 2014 06:43:44 +0000 (-0700) Subject: altos: ublox driver always offers course data when it has a fix X-Git-Tag: 1.3.2.2~119 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=b22dff94778b1f15a6ad1989d526b936f0fa09ea 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 --- 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;