1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-19 04:52:12 +01:00

OP-1760 autotakeoff - enable positional control pathplanner landing to fly to final waypoint during landing

This commit is contained in:
abeck70 2015-04-17 22:58:53 +10:00
parent 88b0c99087
commit eebbfcea64

View File

@ -175,7 +175,8 @@ void VtolLandController::UpdateVelocityDesired()
controlNE.UpdateVelocityState(velocityState.North, velocityState.East); controlNE.UpdateVelocityState(velocityState.North, velocityState.East);
// Implement optional horizontal position hold. // Implement optional horizontal position hold.
if (((uint8_t)pathDesired->ModeParameters[PATHDESIRED_MODEPARAMETER_LAND_OPTIONS]) == PATHDESIRED_MODEPARAMETER_LAND_OPTION_HORIZONTAL_PH) { if ((((uint8_t)pathDesired->ModeParameters[PATHDESIRED_MODEPARAMETER_LAND_OPTIONS]) == PATHDESIRED_MODEPARAMETER_LAND_OPTION_HORIZONTAL_PH) ||
(flightStatus->ControlChain.PathPlanner == FLIGHTSTATUS_CONTROLCHAIN_TRUE) ) {
// landing flight mode has stored original horizontal position in pathdesired // landing flight mode has stored original horizontal position in pathdesired
PositionStateData positionState; PositionStateData positionState;
PositionStateGet(&positionState); PositionStateGet(&positionState);