Skip to content
Snippets Groups Projects
Commit 2b5f6e26 authored by Randy Mackay's avatar Randy Mackay
Browse files

Copter: pre-arm checks for rc ch 1~4 min and max

parent 9d66adae
No related branches found
No related tags found
No related merge requests found
......@@ -312,8 +312,13 @@ static void pre_arm_rc_checks()
return;
}
// check if throttle min is reasonable
if(g.rc_3.radio_min > 1300) {
// check channels 1 & 2 have min <= 1300 and max >= 1700
if (g.rc_1.radio_min > 1300 || g.rc_1.radio_max < 1700 || g.rc_2.radio_min > 1300 || g.rc_2.radio_max < 1700) {
return;
}
// check channels 3 & 4 have min <= 1300 and max >= 1700
if (g.rc_3.radio_min > 1300 || g.rc_3.radio_max < 1700 || g.rc_4.radio_min > 1300 || g.rc_4.radio_max < 1700) {
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment