mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 03:23:33 +08:00
TranslationControl: use reference insteady of by value
This commit is contained in:
committed by
Beat Küng
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);
|
||||
|
||||
Reference in New Issue
Block a user