mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 09:33:35 +08:00
FlightTasks: adapt to acceleration based control
This commit is contained in:
@@ -165,6 +165,7 @@ void FlightTaskManualPosition::_updateXYlock()
|
||||
void FlightTaskManualPosition::_updateSetpoints()
|
||||
{
|
||||
FlightTaskManualAltitude::_updateSetpoints(); // needed to get yaw and setpoints in z-direction
|
||||
_acceleration_setpoint.setNaN(); // don't use the horizontal setpoints from FlightTaskAltitude
|
||||
|
||||
_updateXYlock(); // check for position lock
|
||||
|
||||
@@ -177,8 +178,5 @@ void FlightTaskManualPosition::_updateSetpoints()
|
||||
// vehicle is steady
|
||||
_yawspeed_setpoint += _weathervane_yaw_handler->get_weathervane_yawrate();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
_thrust_setpoint.setAll(NAN); // don't require any thrust setpoints
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user