AP_AHRS: use const reference

save a bit of stack and CPU
This commit is contained in:
Andrew Tridgell 2017-01-23 21:36:34 +11:00
parent c31522c2c3
commit 33a84624c6

View File

@ -93,7 +93,7 @@ void AP_AHRS_NavEKF::update(void)
// push gyros if optical flow present
if (hal.opticalflow) {
Vector3f exported_gyro_bias = get_gyro_drift();
const Vector3f &exported_gyro_bias = get_gyro_drift();
hal.opticalflow->push_gyro_bias(exported_gyro_bias.x, exported_gyro_bias.y);
}
}