> For the complete documentation index, see [llms.txt](https://guides.mccaskeyrobotics.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guides.mccaskeyrobotics.org/fusion/remote-control-guide.md).

# Remote Control Guide

Go to the Python Editor and choose Help--> Examples --> Fusion --> USBGamepad--> usbMixerDrive

![](https://3423273789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjRgHmD322MUgRPOyqMLh%2Fuploads%2FF0GI93GgE1EQtrnQqjEj%2FUSBGamepadPic.png?alt=media\&token=1a5645ff-6b74-4a9b-b777-af7c2b76cd19)

Next plug a wireless USB receiver into your Fusion controller like this:

<figure><img src="https://3423273789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjRgHmD322MUgRPOyqMLh%2Fuploads%2FN4yMNAWG60AhkjfWuX3y%2F20230623_145748%5B1%5D.jpg?alt=media&amp;token=057ccb14-9f2f-47b4-8908-cc7ff3d8e8f7" alt=""><figcaption></figcaption></figure>

Run the program and try to drive your robot around with the left joystick.

You should also try the usbTwoStickDrive example program. This will drve like a tank...the left joystick will control the left wheel and the right joystick will control the right wheel.&#x20;

<figure><img src="https://3423273789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjRgHmD322MUgRPOyqMLh%2Fuploads%2Fpq28XW8K7pq5pyUvnr3w%2FUSBGamepadPic.jpg?alt=media&amp;token=0e444b36-1cc8-4f26-8f3d-47ae87f7de74" alt=""><figcaption></figcaption></figure>

You may also wish to try the code below. It should drive the robot forward and backward with the y axis of the left stick and make the robot spin with the x-axis of the right stick. Some might call this video game drive.

```python
import Fusion

f = Fusion.driver()
usb = Fusion.usbGamepad(0)

while True:
    y = usb.readAxis(1)
    spin = usb.readAxis(2)
    d = max(abs(y)+abs(spin),100)/100
    f.motorSpeed(f.M0, (y - spin)/d)
    f.motorSpeed(f.M1, (y + spin)/d)

```

### More Details

Official Fusion Documentation Link: <https://modernroboticsinc.com/fusion_docs/Py_usbGamepad/#readbuttonbutton>&#x20;

<figure><img src="https://3423273789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjRgHmD322MUgRPOyqMLh%2Fuploads%2FcRhnOmJEZq2Z2z4JAy22%2Fimage.png?alt=media&amp;token=68605e0e-0347-45d7-983c-382a4513a602" alt=""><figcaption></figcaption></figure>
