Joystick Controller

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

We use 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 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 <robot_name>

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