mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 07:03:34 +08:00
FlightTasks and local setpoint: add thrust setpoint
This commit is contained in:
committed by
Beat Küng
parent
44e4c12eb5
commit
76ad00497b
@@ -130,6 +130,9 @@ protected:
|
||||
/* Put the yaw anglular rate produced by the task into the setpoint message */
|
||||
void _setYawspeedSetpoint(const float &yawspeed) { _vehicle_local_position_setpoint.yawspeed = yawspeed; }
|
||||
|
||||
/* Put the thrust setpoint produced by the task into the setpoint message */
|
||||
void _setThrustSetpoint(const matrix::Vector3f &thrust_setpoint) { thrust_setpoint.copyToRaw(&_vehicle_local_position_setpoint.thr_x);}
|
||||
|
||||
private:
|
||||
uORB::Subscription<vehicle_local_position_s> *_sub_vehicle_local_position{nullptr};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user