AP_InertialSensor: add override keyword

This commit is contained in:
Peter Barker 2018-11-07 22:26:38 +11:00 committed by Andrew Tridgell
parent 1bef78dda5
commit 011c93f38e
4 changed files with 6 additions and 6 deletions

View File

@ -562,11 +562,11 @@ private:
AccelCalibrator *_accel_calibrator;
//save accelerometer bias and scale factors
void _acal_save_calibrations();
void _acal_event_failure();
void _acal_save_calibrations() override;
void _acal_event_failure() override;
// Returns AccelCalibrator objects pointer for specified acceleromter
AccelCalibrator* _acal_get_calibrator(uint8_t i) { return i<get_accel_count()?&(_accel_calibrator[i]):nullptr; }
AccelCalibrator* _acal_get_calibrator(uint8_t i) override { return i<get_accel_count()?&(_accel_calibrator[i]):nullptr; }
float _trim_pitch;
float _trim_roll;

View File

@ -9,7 +9,7 @@ public:
AP_InertialSensor_HIL(AP_InertialSensor &imu);
/* update accel and gyro state */
bool update();
bool update() override;
// detect the sensor
static AP_InertialSensor_Backend *detect(AP_InertialSensor &imu);

View File

@ -20,7 +20,7 @@ public:
AP_InertialSensor_PX4(AP_InertialSensor &imu);
/* update accel and gyro state */
bool update();
bool update() override;
// detect the sensor
static AP_InertialSensor_Backend *detect(AP_InertialSensor &imu);

View File

@ -13,7 +13,7 @@ public:
AP_InertialSensor_SITL(AP_InertialSensor &imu);
/* update accel and gyro state */
bool update();
bool update() override;
// detect the sensor
static AP_InertialSensor_Backend *detect(AP_InertialSensor &imu);