# Field Testing

## Controller Configuration

One of the first testing methods investigated was the remote control operation with the available joystick controller.&#x20;

In Arduino: buttons\[] is a vector of the whole list of button indexes and the numbers in the map below correspond to each index

![Ipega Extendable Controller Button Indexes](https://lh5.googleusercontent.com/yPw546PDuXJ-2J6vnQVyUo7Mz6VnsLxKk3VL0Kubw01Xvr3Dx5mjQqjK-aipB6oCCYpkRebxfFeAtKO3Gae7-Y37tFZGT0eosyRxjbJSBIYPMcEZTvvYlkzPyTzzDsPVY4jbxk0l)

### Test Drive&#x20;

A short clip of a test drive trial is listed below. During this test drive, the controller was used with the tank. The objective of this trial was to determine if the tank could travel in a straight line when compared to a tape measure. As pictured in the video, the tank was not able to travel in a straight direction. The Sabertooth motor controller splits the same amount of power to two motors, but the two motors have different levels of internal resistance, which resulted in outputting different amounts of speed when provided the same amount of input. This is what caused the tank to not be able to travel in a straight direction.&#x20;

{% file src="/files/zXpejWHLsss32S7DGXeq" %}
Test driving tank using controller to determine if it can stay on a straight path.&#x20;
{% endfile %}

### Process to Run Program:

1. Run command roscore in a new terminal.
2. Connect bluetooth controller with Home+X buttons (make sure it has enough battery).&#x20;
3. Run command rosrun joy joy\_node in new terminal.&#x20;
4. Open Arduino IDE Compile TankStyleSweepWithJoystick script to reflect any changes.
5. Run command rosrun rosserial\_python serial\_node.py /dev/ttyACM1 \_baud:=9600 in a new terminal.&#x20;
6. Test joystick inputs.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://clemson-autonomous-systems.gitbook.io/clemson-university-autonomous-systems/ground-vehicle-development/milieu-tank/field-testing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
