mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-28 02:33:58 -04:00
AP_InertialSensor: add override keyword
This commit is contained in:
parent
1bef78dda5
commit
011c93f38e
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user