- Sun May 25, 2014 9:32 pm
#171467
I am currently using this accelerometer to measure the angle of incline while riding a bike. Basically I slightly modified the given code to calculate atan(x-measurement/z-measuement), and this is giving out the correct angle when the bike is stationary, at least in the -89 to 89 degree range. However, when I am riding the bike, the measurements are way off, the angle jumps all around the place. Is there a way I can phase out the effects of linear motion in my code?