|
Re: Sine and Cosine in C++
No, our code was primarily used for autonomous period. And we did not plan to go over the bump. Like I said, if you hit the bump, the impact will probably saturate the accelerometer and render the reading inaccurate. We know the limitation of the code and only use it within its limit. In any case, the accelerometer library code will give you the accel/vel/distance for all the axes. So in theory, you could take the z-axis data and do some compensation with it. But we did not do that in our main code.
__________________
|