mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-11 14:11:38 +08:00
uavcan_v1: add dynamic mixing support
This commit is contained in:
@@ -115,8 +115,6 @@ UavcanNode::UavcanNode(CanardInterface *interface, uint32_t node_id) :
|
||||
_pub_manager.updateParams();
|
||||
|
||||
_sub_manager.subscribe();
|
||||
|
||||
_mixing_output.mixingOutput().updateSubscriptions(false, false);
|
||||
}
|
||||
|
||||
UavcanNode::~UavcanNode()
|
||||
@@ -218,8 +216,6 @@ void UavcanNode::Run()
|
||||
_sub_manager.updateParams();
|
||||
|
||||
_mixing_output.updateParams();
|
||||
|
||||
_mixing_output.mixingOutput().updateSubscriptions(false, false);
|
||||
}
|
||||
|
||||
perf_begin(_cycle_perf);
|
||||
@@ -521,6 +517,6 @@ void UavcanMixingInterface::Run()
|
||||
{
|
||||
pthread_mutex_lock(&_node_mutex);
|
||||
_mixing_output.update();
|
||||
_mixing_output.updateSubscriptions(false, false);
|
||||
_mixing_output.updateSubscriptions();
|
||||
pthread_mutex_unlock(&_node_mutex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user