TKJElectronics / KalmanFilter

This is a Kalman filter used to calculate the angle, rate and bias from from the input of an accelerometer/magnetometer and a gyroscope.
http://blog.tkjelectronics.dk/2012/09/a-practical-approach-to-kalman-filter-and-how-to-implement-it
1.77k stars 733 forks source link

Values not showing #11

Closed prahastagiri closed 6 years ago

prahastagiri commented 6 years ago

Hi, i'am trying to run your code but after i uploaded it on my NodeMCU and my question is is the code already been calibrated? how to make it to show values around 0?

i am using arduinoIDE ver.1.8.9 NodeMCU 1.0 esp8266

Lauszus commented 6 years ago

Check out how I do it with for my flight controller: https://github.com/Lauszus/LaunchPadFlightController/blob/91611708c9f801f9d66b73085ac6c465818907ff/src/MPU6500.c#L109-L169.