Plane: setup failsafe values for OBC in failsafe callback

This commit is contained in:
Andrew Tridgell 2014-04-21 11:51:39 +10:00
parent 2ab4ffef45
commit 994ce50714

View File

@ -57,6 +57,14 @@ void failsafe_check(void)
} else if (g.elevon_output != MIXING_DISABLED) {
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) {
channel_roll->output();
}