Includes all RPI functionality for the project. Utilizes python 3 development version.
- Python 3 Development Version: https://www.python.org/downloads/
- ds4drv: https://github.com/chrippa/ds4drv
- picamera: https://picamera.readthedocs.io/en/release-1.13/
- pygame: https://www.pygame.org/news
- Install Git:
apt-get install git- Clone Repository onto Raspberry Pi:
git clone https://github.com/ECEw18T01/RaspberryPi- Run configuration script:
chmod +x RaspberryPi/utilities/setup.sh
RaspberryPi/utilities/setup.sh- Open RaspberryPi Configuration:
sudo raspi-config- Navigate to Peripherals and enable camera interface: Ensure the camera module is working by running camera_preview() available in test.py.
- Run the Dualshock 4 Driver Utility Setup.
chmod +x RaspberryPi/utilities/setup.sh
RaspberryPi/utilities/setup.sh- Next start ds4drv:
sudo ds4drvAs daemon:
sudo ds4drv &- Pair bluetooth controller to the device: You can test that the device is properly connected by running utilities/joystick.py
- Run drive.py from the RaspberryPi directory:
python drive.pyCurrently the main program is broken up into two seperate processes drive.py and stream.py. These two files will be combined into the main program once testing is complete.