The purpose of the Onboard Computer (OBC) is to provide an functionality and interfacing to remote vehicles. The software runnning on OBC will adapt with the requirements of each years competition.
- Python3.6 or greater
- Install python3.6 or greater
- Clone repository
git clone https://github.com/uvic-aero/onboard-computer.git
- Change directory into onboard computer
cd onboard-computer
- Create Python3 virtual env
python3 -m venv env
- Activate virtual environment
source env/bin/activate
- Install python requirements
pip3 install -r requirements.txt
- Open the
config.ini
file located in the root directory of this repository - Edit the groundstation ip address to http://[address of machine runnig gcs]
- Leave groundstation port as is unless explicitly modified on gcs
Start obc by running (in the repository root)
python3 obc.py
Check that the software is running by visiting the server http://0.0.0.0:1600/status/piCam
OBC uses the Unittest framework
Tests live in the /test
directory and can be ran with
python3 -m unittest test.[test_module_name]
or
make runtest module=[test_module_name]
For example run the Vision test with:
python3 -m unittest test.test_qrcode_classification
or
make runtest module=test_qrcode_classification