From 2aec41e0efba4cd11d85239c884ad4011493ae80 Mon Sep 17 00:00:00 2001 From: Michael du Breuil Date: Sun, 19 Mar 2017 18:05:00 -0700 Subject: [PATCH] AP_HAL_SITL: Fix SIM_GPS_DISABLE not disabling the ublox GPS with PVT support --- libraries/AP_HAL_SITL/sitl_gps.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_SITL/sitl_gps.cpp b/libraries/AP_HAL_SITL/sitl_gps.cpp index c70df8e265..75600dfd0d 100644 --- a/libraries/AP_HAL_SITL/sitl_gps.cpp +++ b/libraries/AP_HAL_SITL/sitl_gps.cpp @@ -345,7 +345,7 @@ void SITL_State::_update_gps_ubx(const struct gps_data *d, uint8_t instance) pvt.valid = 0; // invalid utc date pvt.t_acc = 0; pvt.nano = 0; - pvt.fix_type = 0x3; + pvt.fix_type = d->have_lock? 0x3 : 0; pvt.flags = 0b10000011; // carrsoln=fixed, psm = na, diffsoln and fixok pvt.flags2 =0; pvt.num_sv = d->have_lock?_sitl->gps_numsats:3;