diff options
author | Justin Berger <j.david.berger@gmail.com> | 2018-04-03 23:30:47 -0600 |
---|---|---|
committer | Justin Berger <j.david.berger@gmail.com> | 2018-04-03 23:30:47 -0600 |
commit | db41a20170bb7f77959b9901a31582ad2ba93db7 (patch) | |
tree | a01f0d6b95b5446bf3760ec2d8e1812151b48ad6 /src/survive_vive.c | |
parent | 75460f240c9d003e4ca2e6dda9b2146a74df7ffa (diff) | |
download | libsurvive-db41a20170bb7f77959b9901a31582ad2ba93db7.tar.gz libsurvive-db41a20170bb7f77959b9901a31582ad2ba93db7.tar.bz2 |
Madgwick code integrated
Diffstat (limited to 'src/survive_vive.c')
-rwxr-xr-x | src/survive_vive.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |