comparison src/compass_calib.c @ 96:a4bff632e97b

auto-reset compass filtering data before calibration
author heinrichsweikamp
date Mon, 28 Apr 2014 11:33:00 +0200
parents 11d4fc797f74
children 7d9edd3b8c86
comparison
equal deleted inserted replaced
95:3dfc2b7ced6d 96:a4bff632e97b
31 compass_N = 0; 31 compass_N = 0;
32 Su = Sv = Sw = 0.0; 32 Su = Sv = Sw = 0.0;
33 Suu = Svv = Sww = Suv = Suw = Svw = 0.0; 33 Suu = Svv = Sww = Suv = Suw = Svw = 0.0;
34 Suuu = Svvv = Swww = 0.0; 34 Suuu = Svvv = Swww = 0.0;
35 Suuv = Suuw = Svvu = Svvw = Swwu = Swwv = 0.0; 35 Suuv = Suuw = Svvu = Svvw = Swwu = Swwv = 0.0;
36 compass_CX_f = compass_CY_f = compass_CZ_f = 0.0;
36 } 37 }
37 38
38 void compass_add_calibration() 39 void compass_add_calibration()
39 { 40 {
40 OVERLAY float u, v, w; 41 OVERLAY float u, v, w;