mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 08:13:33 +08:00
Simplified esc_status healthiness logic.
Signed-off-by: Claudio Micheli <claudio@auterion.com>
This commit is contained in:
committed by
Beat Küng
parent
8a2d05be4f
commit
09d79b221f
@@ -1125,9 +1125,9 @@ UavcanNode::ioctl(file *filp, int cmd, unsigned long arg)
|
||||
_mixers->groups_required(_groups_required);
|
||||
PX4_INFO("Groups required %d", _groups_required);
|
||||
|
||||
_rotor_count = _mixers->get_multirotor_count();
|
||||
_esc_controller.set_rotor_count(_rotor_count);
|
||||
PX4_INFO("Number of rotors %d", _rotor_count);
|
||||
int rotor_count = _mixers->get_multirotor_count();
|
||||
_esc_controller.set_rotor_count(rotor_count);
|
||||
PX4_INFO("Number of rotors %d", rotor_count);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user