1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-15 07:29:15 +01:00

OP-1900 added deceleration check to autotakeoff failsafe

This commit is contained in:
Corvus Corax 2015-06-04 11:28:51 +02:00
parent 23f9f4d9c9
commit 23dab7e0b6

View File

@ -143,6 +143,10 @@ bool FixedWingAutoTakeoffController::isUnsafe(void)
if (speed > maxVelocity) {
maxVelocity = speed;
}
// too much total deceleration (crash, insufficient climbing power, ...)
if (speed < maxVelocity - fixedWingSettings->SafetyCutoffLimits.MaxDecelerationDeltaMPS) {
abort = true;
}
AttitudeStateData attitude;
AttitudeStateGet(&attitude);
// too much bank angle