Nucleo-64 version
Dependents: particle_filter_test read_sensor_data Bike_Sensor_Fusion Encoder ... more
Diff: LSM9DS0.cpp
- Revision:
- 12:916e91f73bc0
- Parent:
- 11:9f14f399d569
- Child:
- 13:2a88692b1525
--- a/LSM9DS0.cpp Thu Apr 11 11:54:51 2019 +0000 +++ b/LSM9DS0.cpp Thu Jun 27 13:30:53 2019 +0000 @@ -881,7 +881,8 @@ pitch = pitch * 0.9f + pitchAcc * 0.1f;//0.95 // if(pitch < 0)// = (pitch > 0 )? pitch:pitch; // pitch = -1*pitch; - - roll = roll * 0.95f + rollAcc * 0.05f; +// roll = roll * 0.9f + rollAcc * 0.1f; + + roll = roll * 0.94f + rollAcc * 0.06f; // roll = (roll > 0 )? roll:180.0f+roll; } \ No newline at end of file