mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_HAL: added get_bus_address()
used to report sensor probing results in drivers
This commit is contained in:
parent
60c29417f1
commit
c657ad449b
@ -61,6 +61,11 @@ public:
|
||||
return _bus_id.devid;
|
||||
}
|
||||
|
||||
// return address on bus
|
||||
uint8_t get_bus_address(void) const {
|
||||
return _bus_id.devid_s.address;
|
||||
}
|
||||
|
||||
// set device type within a device class (eg. AP_COMPASS_TYPE_LSM303D)
|
||||
void set_device_type(uint8_t devtype) {
|
||||
_bus_id.devid_s.devtype = devtype;
|
||||
|
Loading…
Reference in New Issue
Block a user