Northeastern-Electric-Racing / Shepherd-BMS

Our from-scratch Battery Management Application
4 stars 0 forks source link

Add Can message with Git info #142

Open dyldonahue opened 5 days ago

dyldonahue commented 5 days ago

Current Features

nothing

Desired Additional Features

Create a new CAN message that utilizes the Git information and broadcast over CAN

The git information invovles 5 different integer values, accesible by MACROS defined in the Makefile :

CFLAGS += -DGIT_MAJOR_VERSION=$(GIT_MAJOR_VERSION) \ -DGIT_MINOR_VERSION=$(GIT_MINOR_VERSION) \ -DGIT_PATCH_VERSION=$(GIT_PATCH_VERSION) \ -DGIT_IS_UPSTREAM_CLEAN=$(GIT_IS_UPSTREAM_CLEAN) \ -DGIT_IS_LOCAL_CLEAN=$(GIT_IS_LOCAL_CLEAN)

     ( the macro u cna access is the word on the left with the "D" removed, ie GIT_MAJOR_VERSION )

the first 3 values are integers (can be 8 bit), and the next 2 are booleans.

Screenshots (as needed)

No response