mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 15:53:56 -04:00
Copter: pre-arm check of throttle failsafe value
Check throttle min is above throttle failsafe trigger and that trigger is above ppm encoder's loss-of-signal value of 900
This commit is contained in:
parent
6bfcd28ade
commit
213472102c
@ -284,6 +284,17 @@ static void pre_arm_checks(bool display_failure)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// failsafe parameter checks
|
||||||
|
if (g.failsafe_throttle) {
|
||||||
|
// check throttle min is above throttle failsafe trigger and that the trigger is above ppm encoder's loss-of-signal value of 900
|
||||||
|
if (g.rc_3.radio_min <= g.failsafe_throttle_value+10 || g.failsafe_throttle_value < 910) {
|
||||||
|
if (display_failure) {
|
||||||
|
gcs_send_text_P(SEVERITY_HIGH,PSTR("PreArm: Check FS_THR_VALUE"));
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// if we've gotten this far then pre arm checks have completed
|
// if we've gotten this far then pre arm checks have completed
|
||||||
ap.pre_arm_check = true;
|
ap.pre_arm_check = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user