# Arcade Style TeleOp - Blocks

The time has come to program our robot to respond to our gamepad inputs so we can drive it around! To start we will be focusing on controlling our drivetrain.&#x20;

Think back to the very start of [Part 2](https://docs.revrobotics.com/duo-control/hello-robot-blocks/part-2) for a moment. We will be programming our robot using the Arcade Style of TeleOp. This means our forward and back movements will be controlled using the y-axis of the joystick while turning will be controlled by the x-axis.

This section will introduce the use of **variables** as we create our program. This will allow us to set up calculations in our program that will determine what power the motors should receive based on our gamepad's input. How much **power** each motor receives changes how the robot will **move,** so it is important to also review this relationship will establishing our code!

Below is a sneak peek at our final program:

<figure><img src="https://1359443677-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUOOiQ4S2QcMWmVoSmeQ8%2Fuploads%2F6sw3sipOOHwEkXFJ5PJg%2Fdrivefull.png?alt=media&#x26;token=c152f62b-7f19-4d00-81ca-65794cc693b4" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Right Stick vs. Left?

Which joystick is used for driving the robot is largely based on driver preference.&#x20;

For Hello Robot, we will be referencing using the right stick due to the arm control using the Dpad. This can be changed at any time by selecting your preferred option from the dropdown menu on the ![](https://1359443677-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUOOiQ4S2QcMWmVoSmeQ8%2Fuploads%2Fyqa6bCTA7irBr1jrZzGT%2Fimage.png?alt=media\&token=ba53ddb0-dfbe-4efd-9873-7d8cc7af80ff) blocks!
{% endhint %}

## Quick Links

<table data-header-hidden><thead><tr><th width="261"></th><th width="232"></th><th></th></tr></thead><tbody><tr><td><a href="arcade-style-teleop-blocks/establishing-variables-in-blocks">Establishing Variables in Blocks</a></td><td><a href="arcade-style-teleop-blocks/motor-power-vs.-robot-movement">Motor Power vs. Robot Movement</a></td><td><a href="arcade-style-teleop-blocks/programming-arcade-drive">Programming Arcade Drive</a></td></tr></tbody></table>
