mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00:00
Revert "Intrusive changes made for UAVCAN profiling. Will be reverted in the next commit (this one is needed to keep the changes in history)"
This reverts commit 4c301d9dcf180e39186fa6753c7a3d3215b3cfa7.
This commit is contained in:
committed by
Lorenz Meier
parent
6bbacc4271
commit
d87bb4dfcb
@@ -357,16 +357,6 @@ int UavcanNode::run()
|
||||
_actuator_direct_poll_fd_num = add_poll_fd(_actuator_direct_sub);
|
||||
}
|
||||
|
||||
_esc_controller.arm_all_escs(true);
|
||||
while (true) {
|
||||
for (int i = 0; i < 1000; i++) {
|
||||
node_spin_once();
|
||||
_outputs.noutputs = 8;
|
||||
_esc_controller.update_outputs(_outputs.output, _outputs.noutputs);
|
||||
}
|
||||
::usleep(1000);
|
||||
}
|
||||
|
||||
while (!_task_should_exit) {
|
||||
// update actuator controls subscriptions if needed
|
||||
if (_groups_subscribed != _groups_required) {
|
||||
|
||||
Reference in New Issue
Block a user