mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 14:03:34 +08:00
Trajectory - Add position lock-unlock logic and proper initialization from controller feedback
This commit is contained in:
@@ -768,6 +768,7 @@ MulticopterPositionControl::run()
|
||||
// Publish local position setpoint (for logging only) and attitude setpoint (for attitude controller).
|
||||
publish_local_pos_sp(local_pos_sp);
|
||||
|
||||
_flight_tasks.updateVelocityControllerIO(_control.getVelSp(), thr_sp); // Inform FlightTask about the input and output of the velocity controller
|
||||
|
||||
// Fill attitude setpoint. Attitude is computed from yaw and thrust setpoint.
|
||||
_att_sp = ControlMath::thrustToAttitude(thr_sp, _control.getYawSetpoint());
|
||||
|
||||
Reference in New Issue
Block a user