mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_Baro: added num_instances() API
This commit is contained in:
parent
d2c827aa4b
commit
197c09fcd8
@ -115,6 +115,9 @@ public:
|
||||
// slots it will panic
|
||||
uint8_t register_sensor(void);
|
||||
|
||||
// return number of registered sensors
|
||||
uint8_t num_instances(void) const { return _num_sensors; }
|
||||
|
||||
private:
|
||||
// how many drivers do we have?
|
||||
uint8_t _num_drivers;
|
||||
|
Loading…
Reference in New Issue
Block a user