mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-06 16:03:58 -04:00
Plane: Allow a second activation of parachute
The hardware can fail in the first activation, this patch allow a second chance to active the parachute successfully. Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
parent
1eeea82e31
commit
60834e9af0
@ -18,12 +18,15 @@ void Plane::parachute_check()
|
|||||||
*/
|
*/
|
||||||
void Plane::parachute_release()
|
void Plane::parachute_release()
|
||||||
{
|
{
|
||||||
if (parachute.released()) {
|
if (parachute.release_in_progress()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// send message to gcs and dataflash
|
// send message to gcs and dataflash
|
||||||
|
if (parachute.released()) {
|
||||||
|
gcs().send_text(MAV_SEVERITY_CRITICAL,"Parachute: Released again");
|
||||||
|
} else {
|
||||||
gcs().send_text(MAV_SEVERITY_CRITICAL,"Parachute: Released");
|
gcs().send_text(MAV_SEVERITY_CRITICAL,"Parachute: Released");
|
||||||
|
}
|
||||||
|
|
||||||
// release parachute
|
// release parachute
|
||||||
parachute.release();
|
parachute.release();
|
||||||
|
Loading…
Reference in New Issue
Block a user