Closed va3wam closed 5 years ago
Currently the robot shows gyro angle of 0 when it is lying on his right side. Our goal is to have gyro angle 0 when he is standing upright. The new board orients the IMU so that positive Y points forward and positive X points to the robot's left. This means that we need to change the code to use the Y axis instead of the X axis.
Version 2.2.2 now has the gyro and accelerometer registers changed to accommodate the new orientation of the IMU in the robot chassis.
With the new version of TWIPi the axis which we need to use to balance the robot has changed. At present the balancing logic triggers when the robot is turned side to side rather than front to back. We just need to change which axis we are using to sense the robots balance.