Skip to content
Snippets Groups Projects
Commit 197ddd3e authored by bresch's avatar bresch
Browse files

mc_pos_control - Publish trajectory setpoint directly after the FlightTask update

parent c0dab475
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment