Hello, I am trying to get the raw readings from an accelerometer and raw readings from a gyro and combine them so they reduce the noise from the accelerometer using a kalman filter. This in turn will drive a servo much more accurately then just one accelerometer. I've been searching around the internet for the past week with no avail, It's just hard to understand. Can someone give me a barebones explanation / example code for this?
My accelerometer:
My gyro:
Really any help is much appreciated, thank you in advance.