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

OP-1760 indicate completion of takeoff when disarmed

This can be detected in pathplanner.
This commit is contained in:
abeck70 2015-04-17 21:26:24 +10:00
parent 71d1757bb0
commit db0dc0e552

View File

@ -192,6 +192,9 @@ void VtolLandController::UpdateVelocityDesired()
// update pathstatus
pathStatus->error = 0.0f;
pathStatus->fractional_progress = 0.0f;
if (fsm->GetCurrentState() == PFFSM_STATE_DISARMED) {
pathStatus->fractional_progress = 1.0f;
}
pathStatus->path_direction_north = velocityDesired.North;
pathStatus->path_direction_east = velocityDesired.East;
pathStatus->path_direction_down = velocityDesired.Down;