Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Upload a new code version
The car sorce to compile and run needs both the folders "car_src" and "util". If you write a new version of the code and you want to upload it on the cars with sftp, you must upload both those folders. Of course you can avoid updating both if the changes affect only the code in one of the two folders.

Compilation and execution
The compilation and the execution of the new code does not differ from the previous versions. Just type make (or make new in case you have used make clean before) in the project folder. Make sure that the constant CODE_IN_CAR in file "car_src/const_car.h" is set to 1 and then type on the console

Code Block

cd /Desktop/brainstem/aProject/Andrea
make clean
make new

in case you do not want to recompile the whole project but only the changed files you can simply type

Code Block
make

instead of make clean followed by make new. PathsTo run the code type

Code Block

cd /Desktop/brainstem/aDebug/aUnix/i686
./ca2 figX_precise.txt

The path specification files I have used with have the suffix "_precise" in their name in the same way of the simulator. As usual, you can find these files in the foflder folder "/Desktop/brainstem/aDebug/aUnix/i686".

...