mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 15:13:34 +08:00
Add const modifier
const modifier Add missing const modifier
This commit is contained in:
committed by
Mathieu Bresciani
parent
e357376797
commit
b5e1397c0f
+1
-1
@@ -268,7 +268,7 @@ void Ekf::predictState()
|
||||
|
||||
// calculate a filtered horizontal acceleration with a 1 sec time constant
|
||||
// this are used for manoeuvre detection elsewhere
|
||||
float alpha = 1.0f - _imu_sample_delayed.delta_vel_dt;
|
||||
const float alpha = 1.0f - _imu_sample_delayed.delta_vel_dt;
|
||||
_accel_lpf_NE = _accel_lpf_NE * alpha + corrected_delta_vel_ef.xy();
|
||||
|
||||
// save the previous value of velocity so we can use trapzoidal integration
|
||||
|
||||
Reference in New Issue
Block a user