Northeastern-Electric-Racing / Shepherd-BMS

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

Export Faults to a Config file #109

Open dyldonahue opened 2 months ago

dyldonahue commented 2 months ago

Current Features

Right now, our fault table is written in c in statemachine.c, and its overwhelming.

Desired Additional Features

To improve the sophistication of our code, we should look to improve this by moving it to a better location. I would like this ticket to investigate and possibly implement some sort of config file (JSON, YAML) or scripting language (Python) or even something like Calypso to store our faults. The c code would then pull the data from this source.

One thing I would like to avoid however is introducing massive overhead. I don't really know what the time and space considerations of any of the above would entail, so lets make sure were not handicapping ourselves with this.

If for whatever reason, this is deemed not viable, lets atleast move our fault table to its own file; faults are a big enough module that they justify their own file instead of being buried in statemachine

Screenshots (as needed)

No response