mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 00:13:33 +08:00
PositionControl: use constant references instead of pass-by-value for structs
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user