mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 13:43:34 +08:00
UAVCAN: initialize device id for mag and baro to allow DEVIOCGDEVICEID ioctl to return useful data
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user