Skip to content

Software

hydrogen602 edited this page Apr 23, 2019 · 17 revisions

Software

Motor Control Software

Takes data from Xbox controllers and transfers it to motor pi. On motor pi the inputs are mixed into motor drive values which are written to the motors using pyfirmata.

Sensor Data Software

Collects data from gyroscope and temperature probe on camera pi and makes it available to devices on the network using Web Sockets.

Web Server Software

Apache server that serves pages that get the sensor data using Web Sockets connected to the sensor data software.

How to boot the ROV

Startup Checklist

Starting up dataCollection.py

use /var/www/scripts/search.sh to hunt down any leftover processes
also looks like pgrep -f "sudo python3.4 data" can be used to figure out if its running right now or if it crashed

This program is started with the bash script dataCollection.sh. Use ./dataCollection.sh start to start it and ./dataCollection.sh stop to stop it.
Location: /var/www/scripts/dataCollection.sh

Location on the Pi

/var/www
Note: sensors in the Pi is called scripts but otherwise the folder names are the same

IP addresses

192.168.1.2 Surface Pi
192.168.1.3 Camera Pi
192.168.1.4 Motor Pi

Clone this wiki locally