Skip to content
Snippets Groups Projects
Commit 8e656a60 authored by Andrew Tridgell's avatar Andrew Tridgell
Browse files

APM: only copy manual channels in failsafe

this prevents non-manual channels changing value away from the trim
value on startup
parent 08cf9823
No related branches found
No related tags found
No related merge requests found
......@@ -39,8 +39,9 @@ void failsafe_check(uint32_t tnow)
// pass RC inputs to outputs every 20ms
last_timestamp = tnow;
APM_RC.clearOverride();
for (uint8_t ch=0; ch<8; ch++) {
for (uint8_t ch=0; ch<4; ch++) {
APM_RC.OutputCh(ch, APM_RC.InputCh(ch));
}
RC_Channel_aux::copy_radio_in_out(RC_Channel_aux::k_manual);
}
}
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