Plane: setup failsafe values for OBC in failsafe callback
This commit is contained in:
parent
2ab4ffef45
commit
994ce50714
@ -57,6 +57,14 @@ void failsafe_check(void)
|
|||||||
} else if (g.elevon_output != MIXING_DISABLED) {
|
} else if (g.elevon_output != MIXING_DISABLED) {
|
||||||
channel_output_mixer(g.elevon_output, channel_pitch->radio_out, channel_roll->radio_out);
|
channel_output_mixer(g.elevon_output, channel_pitch->radio_out, channel_roll->radio_out);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if OBC_FAILSAFE == ENABLED
|
||||||
|
// this is to allow the failsafe module to deliberately crash
|
||||||
|
// the plane. Only used in extreme circumstances to meet the
|
||||||
|
// OBC rules
|
||||||
|
obc.check_crash_plane();
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!demoing_servos) {
|
if (!demoing_servos) {
|
||||||
channel_roll->output();
|
channel_roll->output();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user