Now, we will write some code that will bring our smart robot to life. We will make two programs; the first is an RC program, and the second is an autonomous exploration program.
Programming
RC
This program allows the user to control the Omnilander using the EV3 infrared remote. The infrared sensor receives the commands sent by the remote. The robot is programmed to respond to each of the remote commands. Using the remote, the user can drive the Omnilander around and deploy the climbing mechanism to scale a vertical obstacle:
Although the user controls the robot, some of the robot's processes are still automated, so this can still be considered a smart program.
This is a simple tank-control RC program, which can be adapted...