Joystick Controller

Before reading this page, make sure you are familiar with Running Your Code.

We use joystick_control.py for controlling Junior with a game controller. Here, note again that you need python with a package called pygame and [[[Dynamism:Main|Dynamism]] robot control library in order to run this script. If you are not ready, yet, you better refer to OCU Setup.

Once you have a copy of joystick_control.py which will be provided through Blackboard, you will connect the controller provided in the class to your machine and run the following command at the same folder with the file:

python joystick_control.py <robot_name>

Here, <robot_name> represents the same naming convention as we used in hosts file; for instance, junior1 is a valid robot name.