KSU-MS / KS6e-VCU-firmware

CURRENT KS6E VCU code
1 stars 0 forks source link

Dash light if any NOT main code is on the car #7

Open jstri114 opened 1 year ago

jstri114 commented 1 year ago

Could include a single parameter for each board which would sent out a CAN packet indicating if any code currently running on the car is untested. Whenever code has been tested and verified to not break the car, the CAN packet would be enabled, broadcasting a "code is MAIN" message. Would just be a unique ID for each board, with all of the boards on CAN 1 being sent to VCU to get repeated onto CAN 2. The dash would then turn a light OFF if any message is being received, indicating that the code is current. This would also allow us to see which board has untested code on it, and save time instead of having to reupload code onto every single board each time the car goes out.

The OK message must be received to turn the light off, which keeps false "OK" messages being interpreted (i.e. the code being tested kills the CANBUS and thus no message would get to the dash)

mathbrook commented 1 year ago

this could probably be done with a build flag in platformio so its automatically decided based on the branch name at compile time 🥸