In this program we demonstrate how to use the built-in motion sensor of the SPIKE brick to program the robot to turn 90 degrees. Due to the chance of overshooting the targeted angle, the robot is programmed to stop turning if it reaches or goes above 90 degrees. Since the robot, this program was made for, is a little tilted, the angle it is programmed to turn to is changed a little to compensate for the tilt.
This program was intended for and tested on the Gazon robotDownload
- 10 Aug 2022