AP_Parachute: added arming check for chute released

This commit is contained in:
Andrew Tridgell 2021-11-17 19:53:33 +11:00
parent 734edd8085
commit c5ff9ac23f
1 changed files with 4 additions and 0 deletions

View File

@ -209,6 +209,10 @@ bool AP_Parachute::arming_checks(size_t buflen, char *buffer) const
hal.util->snprintf(buffer, buflen, "Chute invalid relay %d", int(_release_type));
return false;
}
if (_release_initiated) {
hal.util->snprintf(buffer, buflen, "Chute is released");
return false;
}
}
return true;
}