vehicle local position setpoint: use array for thrust setpoint

This commit is contained in:
Dennis Mannhart
2018-04-05 07:30:12 +02:00
committed by Beat Küng
parent a74c1116ee
commit 85a263c7bd
3 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ protected:
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);}
void _setThrustSetpoint(const matrix::Vector3f &thrust_setpoint) { thrust_setpoint.copyTo(_vehicle_local_position_setpoint.thr);}
private:
uORB::Subscription<vehicle_local_position_s> *_sub_vehicle_local_position{nullptr};