Browse Source

Plane: setup failsafe values for OBC in failsafe callback

mission-4.1.18
Andrew Tridgell 11 years ago
parent
commit
994ce50714
  1. 8
      ArduPlane/failsafe.pde

8
ArduPlane/failsafe.pde

@ -57,6 +57,14 @@ void failsafe_check(void) @@ -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();
}

Loading…
Cancel
Save