Programming
Although the Falcon is remotely controlled by the user via a remote control, its RC program is quite intelligent because it coordinates the complex actions and decision making behind the scenes, resulting in a smooth and user-friendly program.
Control scheme
We should establish what each of the buttons on the EV3 remote will do. Earlier, we said that the driving and steering functions are independent of one another. We will program the controls accordingly: the left (red) side of the controller will control the driving, where up is forward and down is reverse; the right (blue) side will control the steering, where the up button will steer the Falcon's wheels to the right and the down button will steer them left:

MyBlocks
The EV3 programming environment has a useful feature called the MyBlock editor. It allows you to save a chunk of EV3 code as a single block, so that you can use that sequence of code multiple times in a program or in other programs without having to rewrite it....