You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Go () method calculates the speed of the left and right axes, if the left goes to the full (1), and the right one stands (0), then the robot simply turns to the right;
The Compass class is used to communicate with the compass via the I2C protocol;
To calibrate the compass so that 0 is straight, and 90 is right, the CurrentDegree () method is written, the Calibration enumeration is added to the beginning of the code for convenience;