mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-25 18:18:49 -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:
|
case 2:
|
||||||
_accel_vector = _accel_sum / _accel_sum_count;
|
_accel_vector = _accel_sum / _accel_sum_count;
|
||||||
_accel_sum_count = 0;
|
_accel_sum_count = 0;
|
||||||
|
_accel_sum.zero();
|
||||||
drift_correction(); // Normalize the DCM matrix
|
drift_correction(); // Normalize the DCM matrix
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user