mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-30 12:38:33 -04:00
AP_Proximity: add override keyword where required
This commit is contained in:
parent
344d6b938c
commit
e0ab431ebd
@ -16,11 +16,11 @@ public:
|
|||||||
static bool detect(AP_SerialManager &serial_manager);
|
static bool detect(AP_SerialManager &serial_manager);
|
||||||
|
|
||||||
// update state
|
// update state
|
||||||
void update(void);
|
void update(void) override;
|
||||||
|
|
||||||
// get maximum and minimum distances (in meters) of sensor
|
// get maximum and minimum distances (in meters) of sensor
|
||||||
float distance_max() const;
|
float distance_max() const override;
|
||||||
float distance_min() const;
|
float distance_min() const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
@ -11,14 +11,14 @@ public:
|
|||||||
AP_Proximity_MAV(AP_Proximity &_frontend, AP_Proximity::Proximity_State &_state);
|
AP_Proximity_MAV(AP_Proximity &_frontend, AP_Proximity::Proximity_State &_state);
|
||||||
|
|
||||||
// update state
|
// update state
|
||||||
void update(void);
|
void update(void) override;
|
||||||
|
|
||||||
// get maximum and minimum distances (in meters) of sensor
|
// get maximum and minimum distances (in meters) of sensor
|
||||||
float distance_max() const { return _distance_max; }
|
float distance_max() const override { return _distance_max; }
|
||||||
float distance_min() const { return _distance_min; };
|
float distance_min() const override { return _distance_min; };
|
||||||
|
|
||||||
// get distance upwards in meters. returns true on success
|
// get distance upwards in meters. returns true on success
|
||||||
bool get_upward_distance(float &distance) const;
|
bool get_upward_distance(float &distance) const override;
|
||||||
|
|
||||||
// handle mavlink DISTANCE_SENSOR messages
|
// handle mavlink DISTANCE_SENSOR messages
|
||||||
void handle_msg(mavlink_message_t *msg) override;
|
void handle_msg(mavlink_message_t *msg) override;
|
||||||
|
@ -45,11 +45,11 @@ public:
|
|||||||
static bool detect(AP_SerialManager &serial_manager);
|
static bool detect(AP_SerialManager &serial_manager);
|
||||||
|
|
||||||
// update state
|
// update state
|
||||||
void update(void);
|
void update(void) override;
|
||||||
|
|
||||||
// get maximum and minimum distances (in meters) of sensor
|
// get maximum and minimum distances (in meters) of sensor
|
||||||
float distance_max() const;
|
float distance_max() const override;
|
||||||
float distance_min() const;
|
float distance_min() const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
enum rp_state {
|
enum rp_state {
|
||||||
|
@ -13,14 +13,14 @@ public:
|
|||||||
AP_Proximity_RangeFinder(AP_Proximity &_frontend, AP_Proximity::Proximity_State &_state);
|
AP_Proximity_RangeFinder(AP_Proximity &_frontend, AP_Proximity::Proximity_State &_state);
|
||||||
|
|
||||||
// update state
|
// update state
|
||||||
void update(void);
|
void update(void) override;
|
||||||
|
|
||||||
// get maximum and minimum distances (in meters) of sensor
|
// get maximum and minimum distances (in meters) of sensor
|
||||||
float distance_max() const { return _distance_max; }
|
float distance_max() const override { return _distance_max; }
|
||||||
float distance_min() const { return _distance_min; }
|
float distance_min() const override { return _distance_min; }
|
||||||
|
|
||||||
// get distance upwards in meters. returns true on success
|
// get distance upwards in meters. returns true on success
|
||||||
bool get_upward_distance(float &distance) const;
|
bool get_upward_distance(float &distance) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
@ -17,11 +17,11 @@ public:
|
|||||||
void update(void) override;
|
void update(void) override;
|
||||||
|
|
||||||
// get maximum and minimum distances (in meters) of sensor
|
// get maximum and minimum distances (in meters) of sensor
|
||||||
float distance_max() const;
|
float distance_max() const override;
|
||||||
float distance_min() const;
|
float distance_min() const override;
|
||||||
|
|
||||||
// get distance upwards in meters. returns true on success
|
// get distance upwards in meters. returns true on success
|
||||||
bool get_upward_distance(float &distance) const;
|
bool get_upward_distance(float &distance) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
SITL::SITL *sitl;
|
SITL::SITL *sitl;
|
||||||
|
@ -16,11 +16,11 @@ public:
|
|||||||
static bool detect(AP_SerialManager &serial_manager);
|
static bool detect(AP_SerialManager &serial_manager);
|
||||||
|
|
||||||
// update state
|
// update state
|
||||||
void update(void);
|
void update(void) override;
|
||||||
|
|
||||||
// get maximum and minimum distances (in meters) of sensor
|
// get maximum and minimum distances (in meters) of sensor
|
||||||
float distance_max() const;
|
float distance_max() const override;
|
||||||
float distance_min() const;
|
float distance_min() const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
@ -15,11 +15,11 @@ public:
|
|||||||
static bool detect(AP_SerialManager &serial_manager);
|
static bool detect(AP_SerialManager &serial_manager);
|
||||||
|
|
||||||
// update state
|
// update state
|
||||||
void update(void);
|
void update(void) override;
|
||||||
|
|
||||||
// get maximum and minimum distances (in meters) of sensor
|
// get maximum and minimum distances (in meters) of sensor
|
||||||
float distance_max() const;
|
float distance_max() const override;
|
||||||
float distance_min() const;
|
float distance_min() const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user