UAVCAN: initialize device id for mag and baro to allow DEVIOCGDEVICEID ioctl to return useful data

This commit is contained in:
Holger Steinhaus
2014-11-11 11:29:35 +01:00
parent 88093ebf1a
commit 51ffb887c3
4 changed files with 9 additions and 1 deletions
@@ -112,6 +112,8 @@ protected:
_channels(new Channel[MaxChannels])
{
memcpy(_orb_topics, orb_topics, sizeof(orb_id_t) * MaxChannels);
_device_id.devid_s.bus_type = DeviceBusType_UAVCAN;
_device_id.devid_s.bus = 1; // @TBD: insert UAVCAN bus no. here
}
/**