mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-21 11:54:15 +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;
|
return false;
|
||||||
|
|
||||||
case FLIGHTSTATUS_FLIGHTMODE_AUTOTAKEOFF:
|
case FLIGHTSTATUS_FLIGHTMODE_AUTOTAKEOFF:
|
||||||
|
case FLIGHTSTATUS_FLIGHTMODE_PATHPLANNER:
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -262,7 +262,7 @@ static void pathPlannerTask()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// check start conditions
|
// 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) {
|
if (pathAction.Command == PATHACTION_MODE_AUTOTAKEOFF) {
|
||||||
pathAction.EndCondition = PATHACTION_ENDCONDITION_LEGREMAINING;
|
pathAction.EndCondition = PATHACTION_ENDCONDITION_LEGREMAINING;
|
||||||
if ((uint8_t)pathDesired.ModeParameters[PATHDESIRED_MODEPARAMETER_AUTOTAKEOFF_CONTROLSTATE] == STATUSVTOLAUTOTAKEOFF_CONTROLSTATE_WAITFORMIDTHROTTLE) {
|
if ((uint8_t)pathDesired.ModeParameters[PATHDESIRED_MODEPARAMETER_AUTOTAKEOFF_CONTROLSTATE] == STATUSVTOLAUTOTAKEOFF_CONTROLSTATE_WAITFORMIDTHROTTLE) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user