mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 08:38:36 -04:00
AP_AHRS: use const reference
save a bit of stack and CPU
This commit is contained in:
parent
c31522c2c3
commit
33a84624c6
@ -93,7 +93,7 @@ void AP_AHRS_NavEKF::update(void)
|
|||||||
|
|
||||||
// push gyros if optical flow present
|
// push gyros if optical flow present
|
||||||
if (hal.opticalflow) {
|
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);
|
hal.opticalflow->push_gyro_bias(exported_gyro_bias.x, exported_gyro_bias.y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user