Go to the source code of this file.
◆ checkRTD()
| int checkRTD |
( |
void * |
rtd | ) |
|
Checks if RTD is in ready to drive state.
- Parameters
-
| rtd | A pointer to the RTD structure. |
- Returns
- _SUCCESS if the RTD is ready to drive, _FAILURE otherwise.
Definition at line 80 of file RTD.c.
◆ initRTD()
Initializes the RTD Actuator with initial settings.
- Parameters
-
| rtd | A pointer to the RTD structure. |
| hz | Rate at which the sensor is called (in hz). |
Definition at line 6 of file RTD.c.
6 {
11
15
21}
void initControllerSystem(ControllerSystem *controller, const char *name, int hz, ControllerType type, int(*updateController)(ControllerSystem *controller), void *child)
Initializes the Controller System with initial settings.
void initDigitalOutput(DigitalOutput *digitaloutput, const char *name, int hz, int port)
Initializes a digital output with the given parameters.
int updateRTD(ControllerSystem *controller)
Updates the RTD Actuator.
◆ startRTD()
| int startRTD |
( |
RTD * |
rtd | ) |
|
Starts the RTD Actuator.
- Parameters
-
| rtd | A pointer to the RTD structure. |
- Returns
- _SUCCESS if the actuator was started, _FAILURE otherwise.
Definition at line 23 of file RTD.c.
23 {
25
27 }
29
31 }
35}
int(* safety)(struct ControllerSystem *controller)
◆ updateRTD()
Updates the RTD Actuator.
- Parameters
-
- Returns
- _SUCCESS if the actuator was updated, _FAILURE otherwise.
Definition at line 37 of file RTD.c.
37 {
39
41
43
45 }
46
48
50 }
51
54
56 }
57
60 }
61
64
66 } else {
67
69 }
70
72
73 #ifdef DEBUGn
74
75 #endif
76
78}
float getAppsPosition(Apps *apps)
Averages app sensors to get pedal position.
#define MIN_BRAKE_PRESSURE
#define MAX_A_PEDAL_POSITION
int writeDigitalOutputData(DigitalOutput *output, int data)
Writes data to the buffer of the digital output.
BrakePressure * rearPressure
BrakePressure * frontPressure