> For the complete documentation index, see [llms.txt](https://play.robobattles.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://play.robobattles.com/tutorial/controls/controlling-your-bot.md).

# Controlling Your Bot

{% stepper %}
{% step %}

### Turn on your hub

{% tabs %}
{% tab title="Technic™ Hub" %}

<div align="left"><figure><img src="https://content.gitbook.com/content/3lMcmYNZwepJ8VBzSDr1/blobs/VdNGcUuDtNu1GWTyTOaJ/Technic%20Hub.jpg" alt="" width="188"><figcaption></figcaption></figure></div>

Press the green button. Your hub will light up.

When finished, press the button again to turn your hub off.

<details>

<summary>Troubleshooting</summary>

### The hub won't light up.

Make sure you've installed **all six** AA batteries, and that they are fully charged and facing the right direction.

</details>
{% endtab %}

{% tab title="SPIKE™ Prime Hub" %}

<div align="left"><figure><img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FPlRjFM38YOUjgssmKeey%2FHub%20Spike%20Prime.jpg?alt=media&amp;token=03c4773f-602d-497a-b0dd-8115b6ddbb3d" alt="" width="188"><figcaption></figcaption></figure></div>

Press and hold the large button until your hub lights up.

When finished, press the button to turn your hub off.

<details>

<summary>Troubleshooting</summary>

### The hub won't light up.

Make sure the battery is fully charged.

</details>
{% endtab %}
{% endtabs %}
{% endstep %}

{% step %}

### Turn on your controller

Press and hold the Xbox button <img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FrEkrM7CCv61kyjHu3x2W%2FXbox%20Button%20xbox.png?alt=media&amp;token=59fb9a25-2019-4706-9bc1-3155af384908" alt="" data-size="line"> until it lights up. Release the button.

After a few seconds, the lights on your hub and controller will stop flashing and turn solid white. They are now connected.

<details>

<summary>Troubleshooting</summary>

### The controller won't turn on.

Make sure it has fresh batteries and that they're facing the correct direction.

### The controller won't connect.

Turn your hub and controller off. Now turn them both on again.

If they still won't connect, they might have lost their pairing. Follow the instructions in [First-Time Setup](https://play.robobattles.com/tutorial/controls/first-time-setup.md#pair-your-controller) to re-pair them. Ensure all other hubs and controllers in your space are turned off.

### The controller appears to connect, but after a moment it turns off and the hub starts flashing blue.

You have a bug in your custom control program which is causing the program to crash.

</details>
{% endstep %}

{% step %}

### Steer your bot

Use the left joystick <img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2FagLZmCHERo0jjgdVQiWF%2FXbox%20Button%20left-joystick-press.png?alt=media&amp;token=ec97bb36-6e55-4048-a421-84268a69ea12" alt="" data-size="line"> to drive. Use the triggers <img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2Fiyki4M97Nj7zBntlnysj%2FXbox%20Button%20left-trigger.png?alt=media&amp;token=2eec09ee-0ba3-46e5-a00f-a21bfefb5b4d" alt="" data-size="line"> <img src="https://1320923231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3lMcmYNZwepJ8VBzSDr1%2Fuploads%2Fi2NBSagNdyxHLgrEW5Kc%2FXbox%20Button%20right-trigger.png?alt=media&amp;token=765ed17e-46f9-4f6d-8f24-5746e33365da" alt="" data-size="line"> to control your weapon.
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://play.robobattles.com/tutorial/controls/controlling-your-bot.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
