DCM: fixed an uninitialised variable warning

This commit is contained in:
Andrew Tridgell 2012-03-03 22:19:50 +11:00
parent d8234882d4
commit c73c55aa90
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ AP_DCM::drift_correction(void)
float integrator_magnitude;
Vector3f accel;
Vector3f error;
float error_norm;
float error_norm = 0;
const float gravity_squared = (9.80665*9.80665);
accel = _accel_vector;