mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 22:33:33 +08:00
FixedwingPositionControl: Used corrected npfg roll output in path mode
This commit is contained in:
@@ -1388,7 +1388,7 @@ FixedwingPositionControl::control_auto_path(const float control_interval, const
|
|||||||
0.0f;
|
0.0f;
|
||||||
navigatePathTangent(curr_pos_local, curr_wp_local, velocity_2d.normalized(), ground_speed, _wind_vel, curvature);
|
navigatePathTangent(curr_pos_local, curr_wp_local, velocity_2d.normalized(), ground_speed, _wind_vel, curvature);
|
||||||
|
|
||||||
_att_sp.roll_body = _npfg.getRollSetpoint();
|
_att_sp.roll_body = getCorrectedNpfgRollSetpoint();
|
||||||
target_airspeed = _npfg.getAirspeedRef() / _eas2tas;
|
target_airspeed = _npfg.getAirspeedRef() / _eas2tas;
|
||||||
|
|
||||||
_att_sp.yaw_body = _yaw; // yaw is not controlled, so set setpoint to current yaw
|
_att_sp.yaw_body = _yaw; // yaw is not controlled, so set setpoint to current yaw
|
||||||
|
|||||||
Reference in New Issue
Block a user