...
A Python script runs each project and can access the state of each driver
E.g. pedal project, it reads an ADC for throttle and sends CAN messages based on the project
We can set readings for the ADS1259 ADC from MPXE tests! Changing the values that the C reads in memory! That way we can fully test pedal
...
MPXE project (C-side) components:
...
Prereq: have protobuf installed (probably already installed from codegen-tooling)
See mpxe requirements installation for more setup info
Code Block |
---|
# You might need to do this in the box:
sudo apt-get install libprotoc-dev |
Install protobuf-c: github.com/protobuf-c/protobuf-c
Clone that repo to ~/shared, cd into it, run
./autogen.sh && ./configure && make && make install
Code Block |
---|
cd ~/shared git clone https://github.com/protobuf-c/protobuf-c cd protobuf-c ./autogen.sh && ./configure && make && make install |
...
Code Block |
---|
make mpxe # runs all the integration tests in mpxe/integration_tests
make mpxe INT_TEST=pedal # runs mpxe/integration_tests/test_pedal.py |
...