mc_pos_control - Publish trajectory setpoint directly after the FlightTask update

This commit is contained in:
bresch 2019-02-13 13:04:44 +01:00
parent c0dab47554
commit 197ddd3e46
1 changed files with 2 additions and 1 deletions

View File

@ -686,6 +686,8 @@ MulticopterPositionControl::run()
}
}
publish_trajectory_sp(setpoint);
/* desired waypoints for obstacle avoidance:
* point_0 contains the current position with the desired velocity
* point_1 contains _pos_sp_triplet.current if valid
@ -758,7 +760,6 @@ MulticopterPositionControl::run()
// Generate desired thrust and yaw.
_control.generateThrustYawSetpoint(_dt);
publish_trajectory_sp(setpoint);
// Fill local position, velocity and thrust setpoint.
// This message contains setpoints where each type of setpoint is either the input to the PositionController