FlightTasks and local setpoint: add thrust setpoint

This commit is contained in:
Dennis Mannhart
2018-04-05 07:30:12 +02:00
committed by Beat Küng
parent 44e4c12eb5
commit 76ad00497b
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -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};