mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 14:48:28 -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
|
// slots it will panic
|
||||||
uint8_t register_sensor(void);
|
uint8_t register_sensor(void);
|
||||||
|
|
||||||
|
// return number of registered sensors
|
||||||
|
uint8_t num_instances(void) const { return _num_sensors; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// how many drivers do we have?
|
// how many drivers do we have?
|
||||||
uint8_t _num_drivers;
|
uint8_t _num_drivers;
|
||||||
|
Loading…
Reference in New Issue
Block a user