mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-21 21:55:34 +08:00
chore: remove publishing useless local position setpoint
This commit is contained in:
@@ -573,11 +573,6 @@ FixedWingModeManager::control_auto(const float control_interval, const Vector2d
|
||||
// Course setpoints are handled directly to avoid entering hold mode
|
||||
if (PX4_ISFINITE(current_sp.course)) {
|
||||
control_auto_position(control_interval, curr_pos, ground_speed, pos_sp_prev, current_sp);
|
||||
|
||||
if (!_vehicle_status.in_transition_to_fw) {
|
||||
publishLocalPositionSetpoint(current_sp);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user