PositionControl: use constant references instead of pass-by-value for structs

This commit is contained in:
Beat Küng
2018-06-13 16:19:34 +02:00
committed by Lorenz Meier
parent 5cc450c7cb
commit 76c94b08f1
2 changed files with 4 additions and 4 deletions
@@ -64,8 +64,8 @@ public:
~PositionControl() {};
void updateState(const struct vehicle_local_position_s state, const matrix::Vector3f &vel_dot);
void updateSetpoint(struct vehicle_local_position_setpoint_s setpoint);
void updateState(const vehicle_local_position_s &state, const matrix::Vector3f &vel_dot);
void updateSetpoint(const vehicle_local_position_setpoint_s &setpoint);
void updateConstraints(const Controller::Constraints &constraints);
void generateThrustYawSetpoint(const float &dt);