uavcan_v1: Cleanup _uavcan_subs in SubMgr

Remove hard-coding of PX4 param names - use subject name and instance
instead

Also cleanup duplicates of CANARD_PORT_ID_UNSET/MAX vars
This commit is contained in:
JacobCrabill
2021-07-06 22:00:07 -04:00
committed by Daniel Agar
parent 8f55c960b6
commit 3143756d97
5 changed files with 14 additions and 25 deletions
-2
View File
@@ -80,8 +80,6 @@ UavcanNode::UavcanNode(CanardInterface *interface, uint32_t node_id) :
_canard_instance.mtu_bytes = CANARD_MTU_CAN_CLASSIC;
}
PX4_INFO("main _canard_instance = %p", &_canard_instance);
_node_manager.subscribe();
for (auto &publisher : _publishers) {