mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
OP-1867 autoland/takeoff
Allow takeoff after land on abort when in takeoff flight mode without having to change flight mode.
This commit is contained in:
parent
9a312ef115
commit
5c13db221b
@ -294,6 +294,14 @@ void plan_run_AutoTakeoff()
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case STATUSVTOLAUTOTAKEOFF_CONTROLSTATE_ABORT:
|
case STATUSVTOLAUTOTAKEOFF_CONTROLSTATE_ABORT:
|
||||||
|
{
|
||||||
|
FlightStatusData flightStatus;
|
||||||
|
FlightStatusGet(&flightStatus);
|
||||||
|
if (!flightStatus.Armed) {
|
||||||
|
autotakeoffState = STATUSVTOLAUTOTAKEOFF_CONTROLSTATE_WAITFORARMED;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
case STATUSVTOLAUTOTAKEOFF_CONTROLSTATE_POSITIONHOLD:
|
case STATUSVTOLAUTOTAKEOFF_CONTROLSTATE_POSITIONHOLD:
|
||||||
// nothing to do. land has been requested. stay here for forever until mode change.
|
// nothing to do. land has been requested. stay here for forever until mode change.
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user