mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 18:38:28 -04:00
DCM: fixed bug in accel averaging
sorry Randy!
This commit is contained in:
parent
73594199c8
commit
2d6680f144
@ -78,6 +78,7 @@ AP_DCM::update_DCM_fast(void)
|
||||
case 2:
|
||||
_accel_vector = _accel_sum / _accel_sum_count;
|
||||
_accel_sum_count = 0;
|
||||
_accel_sum.zero();
|
||||
drift_correction(); // Normalize the DCM matrix
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user