mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00:00
uavcan uses common board api to interface with systemlib/board_serial
This commit is contained in:
committed by
Lorenz Meier
parent
5bdd5c7989
commit
4dc8e61612
@@ -258,7 +258,7 @@ void UavcanNode::fill_node_info()
|
||||
hwver.major = HW_VERSION_MAJOR;
|
||||
hwver.minor = HW_VERSION_MINOR;
|
||||
|
||||
uint8_t udid[12] = {}; // Someone seems to love magic numbers
|
||||
raw_uuid_byte_t udid = {};
|
||||
get_board_serial(udid);
|
||||
uavcan::copy(udid, udid + sizeof(udid), hwver.unique_id.begin());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user