so I’m trying to make a balancing robot with the matrix creator at the top, using it’s IMU.
The IMU works and I get accurate readings, I however also get wrong outputs. for example:
right output (most of the time):
wrong output (notice accel is wrong):
this is a problem cause sometimes it’s just a random number, not an integer. So the robot thinks it’s e.g. on an angle of 53.4325 while in actuality it’s standing upright and tries to correct this.
Oh yeah, I use roll to get the current angle.
But any way of fixing this problem? Or do I have to write code that recognizes true outputs but then that means it would skip the wrong output and the robot could fall before it get’s the right command to stay upright