mirror of https://github.com/ArduPilot/ardupilot
AP_BattMonitor: add override keyword where required
This commit is contained in:
parent
7e3ca19308
commit
8e30417c38
|
@ -112,7 +112,7 @@ public:
|
||||||
AP_BattMonitor_Analog(AP_BattMonitor &mon, AP_BattMonitor::BattMonitor_State &mon_state, AP_BattMonitor_Params ¶ms);
|
AP_BattMonitor_Analog(AP_BattMonitor &mon, AP_BattMonitor::BattMonitor_State &mon_state, AP_BattMonitor_Params ¶ms);
|
||||||
|
|
||||||
/// Read the battery voltage and current. Should be called at 10hz
|
/// Read the battery voltage and current. Should be called at 10hz
|
||||||
void read();
|
void read() override;
|
||||||
|
|
||||||
/// returns true if battery monitor provides consumed energy info
|
/// returns true if battery monitor provides consumed energy info
|
||||||
bool has_consumed_energy() const override { return has_current(); }
|
bool has_consumed_energy() const override { return has_current(); }
|
||||||
|
|
Loading…
Reference in New Issue