AP_InertialSensor: add doc to get_id() of backend

This is different from get_id() of Device and ultimately from each
sensor this this is identifying the backend, not the sensor.
This commit is contained in:
Lucas De Marchi 2016-09-03 17:20:19 -03:00 committed by Andrew Tridgell
parent 6b88f3367b
commit f81dba2100
1 changed files with 4 additions and 0 deletions

View File

@ -64,6 +64,10 @@ public:
*/
virtual AuxiliaryBus *get_auxiliary_bus() { return nullptr; }
/*
* Return the unique identifier for this backend: it's the same for
* several sensors if the backend registers more gyros/accels
*/
int16_t get_id() const { return _id; }
protected: