Source code, and wiki of the robot project of group 5 in OS, EURECOM 2018.
Team members:
Yohann Jacob Sandvik, Embla Trasti Bygland, Kaja Gausdal and Trym Sneltvedt
If you are on your own computer and want to cross compile, simply write
./crosscompile.sh
And all source files will be cross compiled for the EV3 brick. Note that docker is required for cross compilation.
The crossmake.sh file can take one argument, which it passes to the make process inside the docker container. This means you can use crossmake.sh the same way as you use make. For example if you want to make only the test files, you simply write
./crosscompile.sh tests
If you are on Kob-E and want to compile stuff there, you'll just use the
standard make
command. So to make just the main executeable, you write
make main
The options in our makefile are:
main
- make just the main executeabletests
- make just the test executeables (all of them)clean
- Remove all object files from the project
If you don't give make any arguments, it will make both the main executeable and all test executeables.
Our project has the following structure:
- lib Required libraries
- bin Compiled executeables
- src Source code
- interfaces HW/Robot specific modules
- adapters Higher lever modules
- main.c Main source file
- tests Test source files for source code
- crossmake.sh Script for cross compilation with Docker
- Makefile Project makefile