mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-01 04:00:35 +08:00
PositionControl: fix attitude setpoint timestamp
The plot of the attitude setpoint in the log did not show any values because the message timestamp that the position control module sets was overwritten by the PositionControl attitude generation.
This commit is contained in:
@@ -51,7 +51,8 @@ namespace ControlMath
|
||||
* @param yaw_sp the desired yaw
|
||||
* @return vehicle_attitude_setpoints_s structure
|
||||
*/
|
||||
vehicle_attitude_setpoint_s thrustToAttitude(const matrix::Vector3f &thr_sp, const float yaw_sp);
|
||||
void thrustToAttitude(const matrix::Vector3f &thr_sp, const float yaw_sp,
|
||||
vehicle_attitude_setpoint_s &attitude_setpoint);
|
||||
|
||||
/**
|
||||
* Outputs the sum of two vectors but respecting the limits and priority.
|
||||
|
||||
Reference in New Issue
Block a user