mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-21 16:18:29 -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
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user