Module code
The CISSROV Code module. All python code for CISSROV is found here, divied up into 4 groups.
cgi-bin holds scripts that can be run remotely using the Apache server on surface pi.
core holds the code for controlling the motors of the ROV and the communication required between the pis to make it happen
mini-rov is like core, but for the mini rov that was part of the 2019 MATE Competition. It likely has no more use.
sensors contains code for collecting sensor data from the ROV, like the gyroscope and thermometer, and then sending it on to webpages that connect to the sensor websocket server with javascript.
The code heavily relies on the
libraries autobahn and twisted
for websocket communication.
Except for cgi-bin, all
communication happens with websockets.
The libaries have to be installed on surface pi
and motor pi.
The python version used for all code is python3.4, because it was the newest version on the raspberry pis used.
Author: Jonathan Rotter except when specified otherwise. Then it is Danny or Yilou's code.
Expand source code
'''
The CISSROV Code module.
All python code for CISSROV is found here, divied up into 4 groups.
cgi-bin holds scripts that can be run remotely
using the Apache server on surface pi.
core holds the code for controlling the motors
of the ROV and the communication required between
the pis to make it happen
mini-rov is like core, but for the mini rov
that was part of the 2019 MATE Competition.
It likely has no more use.
sensors contains code for collecting sensor
data from the ROV, like the gyroscope and
thermometer, and then sending it on
to webpages that connect to the sensor
websocket server with javascript.
The code heavily relies on the
libraries `autobahn` and `twisted`
for websocket communication.
Except for cgi-bin, all
communication happens with websockets.
The libaries have to be installed on surface pi
and motor pi.
The python version used for all code is python3.4, because
it was the newest version on the raspberry pis used.
Author: Jonathan Rotter except when specified otherwise.
Then it is Danny or Yilou's code.
'''
import sys
sys.path.append(sys.path[0] + '/code/core')
sys.path.append(sys.path[0] + '/code/mini-rov')
sys.path.append(sys.path[0] + '/code/cgi-bin')
sys.path.append(sys.path[0] + '/code/sensors')
Sub-modules
code.cgi-bin-
cgi-bin is for fetching data for the webserver hosted on surface pi. It contains a collection of scripts that are accessed and executed by going to …
code.core-
The core part of the ROV software, connecting the XBox controller of the base station to the motors of the ROV. All movement control and …
code.mini-rov-
mini-rov contains the code for controlling the mini-rov that was part of the 2019 MATE competition. It is likely no longer of use.
code.sensors-
Sensors is the module for communicating with the ROV's sensor, collecting the information, and passing it on so that the operators of the ROV can view …