AP_Baro: add override keyword

This commit is contained in:
Peter Barker 2018-11-07 23:11:28 +11:00 committed by Andrew Tridgell
parent 1056321457
commit ee07789383
9 changed files with 9 additions and 9 deletions

View File

@ -16,7 +16,7 @@ public:
AP_Baro_BMP085(AP_Baro &baro, AP_HAL::OwnPtr<AP_HAL::Device> dev);
/* AP_Baro public interface: */
void update();
void update() override;
static AP_Baro_Backend *probe(AP_Baro &baro, AP_HAL::OwnPtr<AP_HAL::Device> dev);

View File

@ -19,7 +19,7 @@ public:
AP_Baro_BMP280(AP_Baro &baro, AP_HAL::OwnPtr<AP_HAL::Device> dev);
/* AP_Baro public interface: */
void update();
void update() override;
static AP_Baro_Backend *probe(AP_Baro &baro, AP_HAL::OwnPtr<AP_HAL::Device> dev);

View File

@ -18,7 +18,7 @@ public:
AP_Baro_DPS280(AP_Baro &baro, AP_HAL::OwnPtr<AP_HAL::Device> dev);
/* AP_Baro public interface: */
void update();
void update() override;
static AP_Baro_Backend *probe(AP_Baro &baro, AP_HAL::OwnPtr<AP_HAL::Device> dev);

View File

@ -19,7 +19,7 @@ public:
AP_Baro_FBM320(AP_Baro &baro, AP_HAL::OwnPtr<AP_HAL::Device> dev);
/* AP_Baro public interface: */
void update();
void update() override;
static AP_Baro_Backend *probe(AP_Baro &baro, AP_HAL::OwnPtr<AP_HAL::Device> dev);

View File

@ -10,7 +10,7 @@ class AP_Baro_HIL : public AP_Baro_Backend
{
public:
AP_Baro_HIL(AP_Baro &baro);
void update(void);
void update(void) override;
private:
uint8_t _instance;

View File

@ -15,7 +15,7 @@
class AP_Baro_ICM20789 : public AP_Baro_Backend
{
public:
void update();
void update() override;
static AP_Baro_Backend *probe(AP_Baro &baro, AP_HAL::OwnPtr<AP_HAL::I2CDevice> dev, AP_HAL::OwnPtr<AP_HAL::Device> dev_imu);

View File

@ -38,7 +38,7 @@
class AP_Baro_KellerLD : public AP_Baro_Backend
{
public:
void update();
void update() override;
static AP_Baro_Backend *probe(AP_Baro &baro, AP_HAL::OwnPtr<AP_HAL::Device> dev);

View File

@ -24,7 +24,7 @@ public:
AP_Baro_LPS2XH(AP_Baro &baro, AP_HAL::OwnPtr<AP_HAL::Device> dev);
/* AP_Baro public interface: */
void update();
void update() override;
static AP_Baro_Backend *probe(AP_Baro &baro, AP_HAL::OwnPtr<AP_HAL::Device> dev);
static AP_Baro_Backend *probe_InvensenseIMU(AP_Baro &baro, AP_HAL::OwnPtr<AP_HAL::Device> dev, uint8_t imu_address);

View File

@ -29,7 +29,7 @@
class AP_Baro_MS56XX : public AP_Baro_Backend
{
public:
void update();
void update() override;
enum MS56XX_TYPE {
BARO_MS5611 = 0,