1#include "../../../Inc/Utils/Constants.h"
2#include "../../../Inc/Systems/Controller/RTD.h"
3#include "../../../Inc/Systems/ControllerSystem.h"
4#include "../../../Inc/Utils/Common.h"
float getAppsPosition(Apps *apps)
Averages app sensors to get pedal position.
#define MIN_BRAKE_PRESSURE
#define MAX_A_PEDAL_POSITION
void initControllerSystem(ControllerSystem *controller, const char *name, int hz, ControllerType type, int(*updateController)(ControllerSystem *controller), void *child)
Initializes the Controller System with initial settings.
int writeDigitalOutputData(DigitalOutput *output, int data)
Writes data to the buffer of the digital output.
void initDigitalOutput(DigitalOutput *digitaloutput, const char *name, int hz, int port)
Initializes a digital output with the given parameters.
int checkRTD(void *rtd)
Checks if RTD is in ready to drive state.
int startRTD(RTD *rtd)
Starts the RTD Actuator.
int updateRTD(ControllerSystem *controller)
Updates the RTD Actuator.
void initRTD(RTD *rtd, Apps *apps, BrakeSystemControl *bsc, int hz, int buttonPort, int piezoPort)
Initializes the RTD Actuator with initial settings.
BrakePressure * rearPressure
BrakePressure * frontPressure
int(* safety)(struct ControllerSystem *controller)