AP_GPS: flush pending config strings when uBlox starts

This commit is contained in:
Andrew Tridgell 2014-03-31 20:52:07 +11:00
parent 0191355488
commit 8779ffe088
1 changed files with 3 additions and 0 deletions

View File

@ -60,6 +60,9 @@ AP_GPS_UBLOX::AP_GPS_UBLOX(AP_GPS &_gps, AP_GPS::GPS_State &_state, AP_HAL::UART
rate_update_step(0),
_last_hw_status(0)
{
// stop any config strings that are pending
gps.send_blob_start(state.instance, NULL, 0);
// configure the GPS for the messages we want
_configure_gps();
}