mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-07-29 18:28:03 +08:00
Smoothen external flight mode GotoControl to Mission transitions (#26254)
This commit is contained in:
@@ -433,7 +433,7 @@ void MulticopterPositionControl::Run()
|
||||
&& !_trajectory_setpoint_sub.updated();
|
||||
|
||||
if (_goto_control.checkForSetpoint(vehicle_local_position.timestamp_sample, goto_setpoint_enable)) {
|
||||
_goto_control.update(dt, states.position, states.yaw);
|
||||
_goto_control.update(dt, states.position, states.velocity, states.acceleration, states.yaw);
|
||||
}
|
||||
|
||||
_trajectory_setpoint_sub.update(&_setpoint);
|
||||
|
||||
Reference in New Issue
Block a user