mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
TranslationControl: use reference insteady of by value
This commit is contained in:
parent
ded8675dae
commit
2a544cee43
@ -71,8 +71,8 @@ TranslationControl::TranslationControl()
|
||||
_setParams();
|
||||
};
|
||||
|
||||
void TranslationControl::updateState(const struct vehicle_local_position_s state, const matrix::Vector3f vel_dot,
|
||||
const matrix::Matrix<float, 3, 3> R)
|
||||
void TranslationControl::updateState(const struct vehicle_local_position_s state, const matrix::Vector3f &vel_dot,
|
||||
const matrix::Matrix<float, 3, 3> &R)
|
||||
{
|
||||
_pos = Data(&state.x);
|
||||
_vel = Data(&state.vx);
|
||||
|
||||
@ -64,8 +64,8 @@ public:
|
||||
|
||||
~TranslationControl() {};
|
||||
|
||||
void updateState(const struct vehicle_local_position_s state, const matrix::Vector3f vel_dot,
|
||||
const matrix::Matrix<float, 3, 3> R);
|
||||
void updateState(const struct vehicle_local_position_s state, const matrix::Vector3f &vel_dot,
|
||||
const matrix::Matrix<float, 3, 3> &R);
|
||||
void updateSetpoint(struct vehicle_local_position_setpoint_s setpoint);
|
||||
void updateConstraints(const Controller::Constraints &constraints);
|
||||
void generateThrustYawSetpoint(const float &dt);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user