mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_BattMonitor: Make type() const
This commit is contained in:
parent
52544e5b9f
commit
d96aad86a5
@ -143,8 +143,8 @@ public:
|
||||
int8_t get_highest_failsafe_priority(void) const { return _highest_failsafe_priority; };
|
||||
|
||||
/// get_type - returns battery monitor type
|
||||
enum AP_BattMonitor_Params::BattMonitor_Type get_type() { return get_type(AP_BATT_PRIMARY_INSTANCE); }
|
||||
enum AP_BattMonitor_Params::BattMonitor_Type get_type(uint8_t instance) { return _params[instance].type(); }
|
||||
enum AP_BattMonitor_Params::BattMonitor_Type get_type() const { return get_type(AP_BATT_PRIMARY_INSTANCE); }
|
||||
enum AP_BattMonitor_Params::BattMonitor_Type get_type(uint8_t instance) const { return _params[instance].type(); }
|
||||
|
||||
/// set_monitoring - sets the monitor type (used for example sketch only)
|
||||
void set_monitoring(uint8_t instance, uint8_t mon) { _params[instance]._type.set(mon); }
|
||||
|
Loading…
Reference in New Issue
Block a user