AP_Mount: pass vector by const reference

This commit is contained in:
Pierre Kancir 2018-12-20 10:12:12 +01:00 committed by Randy Mackay
parent 3b96794fb5
commit f1aa4f3f87
2 changed files with 2 additions and 2 deletions

View File

@ -373,7 +373,7 @@ Vector3f SoloGimbal::get_ang_vel_dem_body_lock()
return gimbalRateDemVecBodyLock;
}
void SoloGimbal::update_target(Vector3f newTarget)
void SoloGimbal::update_target(const Vector3f &newTarget)
{
// Low-pass filter
_att_target_euler_rad.y = _att_target_euler_rad.y + 0.02f*(newTarget.y - _att_target_euler_rad.y);

View File

@ -56,7 +56,7 @@ public:
AP_AccelCal::register_client(this);
}
void update_target(Vector3f newTarget);
void update_target(const Vector3f &newTarget);
void receive_feedback(mavlink_channel_t chan, const mavlink_message_t *msg);
void update_fast();