From a04c05659824d63d8bd136603c03f6b23644558d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 10 Oct 2013 09:38:19 +1100 Subject: [PATCH] AP_InertialSensor: remove unused get_last_sample_time_micros() --- libraries/AP_InertialSensor/AP_InertialSensor_Flymaple.cpp | 5 ----- libraries/AP_InertialSensor/AP_InertialSensor_Flymaple.h | 1 - libraries/AP_InertialSensor/AP_InertialSensor_HIL.cpp | 4 +--- libraries/AP_InertialSensor/AP_InertialSensor_HIL.h | 1 - libraries/AP_InertialSensor/AP_InertialSensor_Oilpan.h | 1 - 5 files changed, 1 insertion(+), 11 deletions(-) diff --git a/libraries/AP_InertialSensor/AP_InertialSensor_Flymaple.cpp b/libraries/AP_InertialSensor/AP_InertialSensor_Flymaple.cpp index 30aee8911b..8cd6bbca2d 100644 --- a/libraries/AP_InertialSensor/AP_InertialSensor_Flymaple.cpp +++ b/libraries/AP_InertialSensor/AP_InertialSensor_Flymaple.cpp @@ -227,11 +227,6 @@ float AP_InertialSensor_Flymaple::get_delta_time(void) return _delta_time; } -uint32_t AP_InertialSensor_Flymaple::get_last_sample_time_micros(void) -{ - return _last_update_usec; -} - float AP_InertialSensor_Flymaple::get_gyro_drift_rate(void) { // Dont really know this for the ITG-3200. diff --git a/libraries/AP_InertialSensor/AP_InertialSensor_Flymaple.h b/libraries/AP_InertialSensor/AP_InertialSensor_Flymaple.h index b967b0b010..e24ccdbc5e 100644 --- a/libraries/AP_InertialSensor/AP_InertialSensor_Flymaple.h +++ b/libraries/AP_InertialSensor/AP_InertialSensor_Flymaple.h @@ -20,7 +20,6 @@ public: /* Concrete implementation of AP_InertialSensor functions: */ bool update(); float get_delta_time(); - uint32_t get_last_sample_time_micros(); float get_gyro_drift_rate(); bool sample_available(); bool wait_for_sample(uint16_t timeout_ms); diff --git a/libraries/AP_InertialSensor/AP_InertialSensor_HIL.cpp b/libraries/AP_InertialSensor/AP_InertialSensor_HIL.cpp index 1637029ec7..05795dcdab 100644 --- a/libraries/AP_InertialSensor/AP_InertialSensor_HIL.cpp +++ b/libraries/AP_InertialSensor/AP_InertialSensor_HIL.cpp @@ -37,9 +37,7 @@ bool AP_InertialSensor_HIL::update( void ) { float AP_InertialSensor_HIL::get_delta_time() { return _delta_time_usec * 1.0e-6; } -uint32_t AP_InertialSensor_HIL::get_last_sample_time_micros() { - return _last_update_ms * 1000; -} + float AP_InertialSensor_HIL::get_gyro_drift_rate(void) { // 0.5 degrees/second/minute return ToRad(0.5/60); diff --git a/libraries/AP_InertialSensor/AP_InertialSensor_HIL.h b/libraries/AP_InertialSensor/AP_InertialSensor_HIL.h index b8d14f5669..cde35bdb59 100644 --- a/libraries/AP_InertialSensor/AP_InertialSensor_HIL.h +++ b/libraries/AP_InertialSensor/AP_InertialSensor_HIL.h @@ -15,7 +15,6 @@ public: /* Concrete implementation of AP_InertialSensor functions: */ bool update(); float get_delta_time(); - uint32_t get_last_sample_time_micros(); float get_gyro_drift_rate(); bool sample_available(); bool wait_for_sample(uint16_t timeout_ms); diff --git a/libraries/AP_InertialSensor/AP_InertialSensor_Oilpan.h b/libraries/AP_InertialSensor/AP_InertialSensor_Oilpan.h index 36bbecd0c2..63136a3d69 100644 --- a/libraries/AP_InertialSensor/AP_InertialSensor_Oilpan.h +++ b/libraries/AP_InertialSensor/AP_InertialSensor_Oilpan.h @@ -18,7 +18,6 @@ public: /* Concrete implementation of AP_InertialSensor functions: */ bool update(); float get_delta_time(); // get_delta_time returns the time period in seconds overwhich the sensor data was collected - //uint32_t get_last_sample_time_micros(); // last_sample_time - get time (in microseconds) that last sample was captured float get_gyro_drift_rate(); // sample_available() - true when a new sample is available