Skip to content

Latest commit

 

History

History

ps4

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Custom linux ps4 bldc motor controller library

Dependancies

  1. jstest is what i've used to decode input from a PS4 controller. I tried pyPS4Controller but could not get it to work so built a parser for jstest output
    • sudo apt-get install joystick
  2. pyserial is a library for sending command via usb to the teensy 4.0
    • (sudo [for global usage]) pip3 install -r pip.freeze

How to run

  1. cd ./control/ps4
  2. Start sending commands from ps4 controller to remote: python remoteCommand.py
  3. Starting the teensy command server python commandServer.py
  4. Open SerialPlot select ttyACM0 and click open. FIXME
  5. Press triangle on the PS4 controller to startup.
  6. Press square on the PS4 controller to stop.
  7. Squeeze right trigger to control thrust setting (WARNING as this is not working currently you could burn out hardware by using the throttle )