We will now use the compass sensor so we can score in the right goal!
First, watch the video to install the sensor on the robot.
Next, watch the video to learn about the calibration step that is needed when you plug in the compass sensor.
You will learn that the calibration step always runs when the robot first turns on. After the calibration is done, your main program will execute.
Now we will make the robot always try to face a single direction using the compass sensor!
The compass sensor always set North as 0, but we don’t always want to be scoring towards North.
To be able to set a desired scoring direction, we need to modify our program to change the desired socring direction when we press a button.