Skip to content

Commit

Permalink
mc_pos_control - Publish trajectory setpoint directly after the Fligh…
Browse files Browse the repository at this point in the history
…tTask update
  • Loading branch information
bresch committed Feb 13, 2019
1 parent c0dab47 commit 197ddd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/mc_pos_control/mc_pos_control_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 197ddd3

Please sign in to comment.