1#include "../Inc/Systems/Controller/BrakeSystemControl.h"
23 if (status != desiredStatus){
39 if (status != desiredStatus){
49int testTemperature(
int maxTemp,
int brakeLightActivationPoint,
int heavyBrakingActivationPoint,
float temperature,
BrakeSystemStatus desiredStatus,
const char* testName){
55 if (status != desiredStatus){
80 if (tests_failed == 0) {
int testRearPressure(int maxTemp, int brakeLightActivationPoint, int heavyBrakingActivationPoint, float pressure, BrakeSystemStatus desiredStatus, const char *testName)
int testBrakeSystemControlInit(int maxTemp, int brakeLightActivationPoint, int heavyBrakingActivationPoint, const char *testName)
int testFrontPressure(int maxTemp, int brakeLightActivationPoint, int heavyBrakingActivationPoint, float pressure, BrakeSystemStatus desiredStatus, const char *testName)
int testTemperature(int maxTemp, int brakeLightActivationPoint, int heavyBrakingActivationPoint, float temperature, BrakeSystemStatus desiredStatus, const char *testName)
void setFrontPressure(BrakeSystemControl *bsc, float pressure)
void initBrakeSystemControl(BrakeSystemControl *bsc, int hz, int maxTemp, int brakeLightActivationPoint, int heavyBrakingActivationPoint, int fbp_channel, int rbp_channel, int temp_channel, int light_port)
Initializes the Braking System with initial settings.
void setTemperature(BrakeSystemControl *bsc, float temperature)
void setRearPressure(BrakeSystemControl *bsc, float pressure)
@ TEMPERATURE_SENSOR_ERROR
BrakeSystemStatus checkSensorLimits(BrakeSystemControl *bsc)
Checks if the brake system is within the defined limits and desired ranges.