mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
OP-1858 autotakeoff and pathplanner
1. Allow arming in pathplanner 2. Typo in comment
This commit is contained in:
parent
ba59c9085e
commit
b14a966088
@ -317,6 +317,7 @@ static bool okToArm(void)
|
||||
return false;
|
||||
|
||||
case FLIGHTSTATUS_FLIGHTMODE_AUTOTAKEOFF:
|
||||
case FLIGHTSTATUS_FLIGHTMODE_PATHPLANNER:
|
||||
return true;
|
||||
|
||||
default:
|
||||
|
@ -262,7 +262,7 @@ static void pathPlannerTask()
|
||||
}
|
||||
|
||||
// check start conditions
|
||||
// autotakeoff requires midpoint thrust uf we are in a pending takeoff situation
|
||||
// autotakeoff requires midpoint thrust if we are in a pending takeoff situation
|
||||
if (pathAction.Command == PATHACTION_MODE_AUTOTAKEOFF) {
|
||||
pathAction.EndCondition = PATHACTION_ENDCONDITION_LEGREMAINING;
|
||||
if ((uint8_t)pathDesired.ModeParameters[PATHDESIRED_MODEPARAMETER_AUTOTAKEOFF_CONTROLSTATE] == STATUSVTOLAUTOTAKEOFF_CONTROLSTATE_WAITFORMIDTHROTTLE) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user