From d07d2f3a46c54d8bba1e5987aa88d5e12f5c04d5 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 9 Sep 2015 15:01:45 +1000 Subject: [PATCH] AP_GPS: removed UBX3 message replaced by GPA and GPA2 messages --- libraries/AP_GPS/AP_GPS_UBLOX.cpp | 19 ------------------- libraries/AP_GPS/AP_GPS_UBLOX.h | 1 - 2 files changed, 20 deletions(-) diff --git a/libraries/AP_GPS/AP_GPS_UBLOX.cpp b/libraries/AP_GPS/AP_GPS_UBLOX.cpp index 5b638a7a75..ae4e11ff9a 100644 --- a/libraries/AP_GPS/AP_GPS_UBLOX.cpp +++ b/libraries/AP_GPS/AP_GPS_UBLOX.cpp @@ -309,20 +309,6 @@ void AP_GPS_UBLOX::log_mon_hw2(void) gps._DataFlash->WriteBlock(&pkt, sizeof(pkt)); } -void AP_GPS_UBLOX::log_accuracy(void) { - if (gps._DataFlash == NULL || !gps._DataFlash->logging_started()) { - return; - } - struct log_Ubx3 pkt = { - LOG_PACKET_HEADER_INIT(LOG_UBX3_MSG), - time_us : hal.scheduler->micros64(), - instance : state.instance, - hAcc : state.horizontal_accuracy, - vAcc : state.vertical_accuracy, - sAcc : state.speed_accuracy - }; - gps._DataFlash->WriteBlock(&pkt, sizeof(pkt)); -} #endif // UBLOX_HW_LOGGING #if UBLOX_RXM_RAW_LOGGING @@ -704,11 +690,6 @@ AP_GPS_UBLOX::_parse_gps(void) _send_message(CLASS_CFG, MSG_CFG_NAV_SETTINGS, NULL, 0); _fix_count = 0; } - -#if UBLOX_HW_LOGGING - log_accuracy(); -#endif //UBLOX_HW_LOGGING - return true; } return false; diff --git a/libraries/AP_GPS/AP_GPS_UBLOX.h b/libraries/AP_GPS/AP_GPS_UBLOX.h index c35e9d7401..7e307a7cf4 100644 --- a/libraries/AP_GPS/AP_GPS_UBLOX.h +++ b/libraries/AP_GPS/AP_GPS_UBLOX.h @@ -417,7 +417,6 @@ private: void write_logging_headers(void); void log_mon_hw(void); void log_mon_hw2(void); - void log_accuracy(void); void log_rxm_raw(const struct ubx_rxm_raw &raw); void log_rxm_rawx(const struct ubx_rxm_rawx &raw); };