This is a massive refactoring of our fault system. In short, it:
created a fault struct that holds all necessary data for a fault
created an array of these structs to tabulate all faults
created a generalized function that runs fault checks based on this data
moved all fault data structs (new & old) into datastructs.h
created a separate function for prefault checks that are mostly left alone as they had previously been implemented
lmk if you disagree with any structure choices, if its too complicated, or if u think I should adjust more stuff with prefaults (I wasn't even sure if we were keeping these)
Also, the fault table looks really messed up in github code viewer so may need to open up in vscode
This is a massive refactoring of our fault system. In short, it:
created a fault struct that holds all necessary data for a fault
created an array of these structs to tabulate all faults
created a generalized function that runs fault checks based on this data
moved all fault data structs (new & old) into datastructs.h
created a separate function for prefault checks that are mostly left alone as they had previously been implemented
lmk if you disagree with any structure choices, if its too complicated, or if u think I should adjust more stuff with prefaults (I wasn't even sure if we were keeping these)
Also, the fault table looks really messed up in github code viewer so may need to open up in vscode