AP_Baro: added num_instances() API

This commit is contained in:
Andrew Tridgell 2015-01-05 22:29:01 +11:00
parent d2c827aa4b
commit 197c09fcd8

View File

@ -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;