Browse Source

mc_pos_control: during transition set vel_sp to zero

sbg
Dennis Mannhart 8 years ago
parent
commit
a98c0ef25d
  1. 7
      src/modules/mc_pos_control/mc_pos_control_main.cpp

7
src/modules/mc_pos_control/mc_pos_control_main.cpp

@ -1604,8 +1604,11 @@ void MulticopterPositionControl::control_auto(float dt) @@ -1604,8 +1604,11 @@ void MulticopterPositionControl::control_auto(float dt)
}
} else {
/* no waypoint, do nothing, setpoint was already reset */
/* we are in idle */
/* idle or triplet not valid, set velocity setpoint to zero */
_vel_sp.zero();
_run_pos_control = false;
_run_alt_control = false;
}
}

Loading…
Cancel
Save