Setup: Connect PS4 controller - Toby-eaaa/Mini_Pupper_eaaa GitHub Wiki

With the stock Mangdang Pupper image, two python programs will start at boot up. These are robot.py and joystick.py. Joystick.py will make the pupper able to connect to a PS4 controller and is ready as soon as the pupper gets eyes.

The controller will connect to the first available Pupper, which can be any Pupper in the room! That is why we color-code the controller to a specific Pupper. So Blue Pupper to Blue controller and so on.

  1. Connect to the Pupper and navigate to this folder and edit HardwareConfig.py:

    /home/ubuntu/Robotics/QuadrupedRobot/StanfordQuadruped/pupper  
    
    sudo nano HardwareConfig.py
    
  2. Create a custom color based on the 3 color parameters on both PS4_COLOR and PS4_DEACTIVATED_COLOR. Deactivated should be less bright.

[CTRL] + [o], then [Enter] to save. [CTRL] + [x] to exit.

  1. Restart robot service to see changes

     sudo systemctl stop robot
    
     sudo systemctl start robot
    

20220803_114726