1
0
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:
abeck70 2015-04-28 20:54:44 +10:00
parent ba59c9085e
commit b14a966088
2 changed files with 2 additions and 1 deletions

View File

@ -317,6 +317,7 @@ static bool okToArm(void)
return false;
case FLIGHTSTATUS_FLIGHTMODE_AUTOTAKEOFF:
case FLIGHTSTATUS_FLIGHTMODE_PATHPLANNER:
return true;
default:

View File

@ -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) {