mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-20 10:21:36 +08:00
FlightTasks and local setpoint: add thrust setpoint
This commit is contained in:
committed by
Beat Küng
parent
44e4c12eb5
commit
76ad00497b
@@ -12,3 +12,6 @@ float32 vz # in meters/sec
|
||||
float32 acc_x # in meters/(sec*sec)
|
||||
float32 acc_y # in meters/(sec*sec)
|
||||
float32 acc_z # in meters/(sec*sec)
|
||||
float32 thr_x # normalized
|
||||
float32 thr_y # normalized
|
||||
float32 thr_z # normalized
|
||||
|
||||
@@ -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