From db41a20170bb7f77959b9901a31582ad2ba93db7 Mon Sep 17 00:00:00 2001 From: Justin Berger Date: Tue, 3 Apr 2018 23:30:47 -0600 Subject: Madgwick code integrated --- src/survive_vive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/survive_vive.c') diff --git a/src/survive_vive.c b/src/survive_vive.c index 53f6d42..1ffb737 100755 --- a/src/survive_vive.c +++ b/src/survive_vive.c @@ -1508,7 +1508,7 @@ void survive_data_cb( SurviveUSBInterface * si ) // FLT conv = (float)((1./deg_per_sec)*(3.14159/180.)) / 8192.; FLT DEGREES_TO_RADS = 3.14159 / 180.; FLT conv = 1. / 10. * DEGREES_TO_RADS; - // calibrate_gyro(obj, agm+3); + calibrate_gyro(obj, agm + 3); agm[3] *= conv; agm[4] *= conv; agm[5] *= conv; -- cgit v1.2.3