mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-12 01:23:56 -03:00
Rover: fix multi-motors prearm check
This commit is contained in:
parent
0efb404ff6
commit
ee15be3bb3
@ -424,13 +424,11 @@ bool AP_MotorsUGV::pre_arm_check(bool report) const
|
|||||||
for (uint8_t i=0; i<_motors_num; i++)
|
for (uint8_t i=0; i<_motors_num; i++)
|
||||||
{
|
{
|
||||||
SRV_Channel::Aux_servo_function_t function = SRV_Channels::get_motor_function(i);
|
SRV_Channel::Aux_servo_function_t function = SRV_Channels::get_motor_function(i);
|
||||||
if (SRV_Channels::function_assigned(function)) {
|
if (!SRV_Channels::function_assigned(function)) {
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
if (report) {
|
if (report) {
|
||||||
gcs().send_text(MAV_SEVERITY_CRITICAL, "PreArm: check %u", function);
|
gcs().send_text(MAV_SEVERITY_CRITICAL, "PreArm: servo function %u unassigned", function);
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user