Go to the source code of this file.
◆ TORQUE_ERROR_MARGIN
#define TORQUE_ERROR_MARGIN 0.05 |
◆ checkTorquePolice()
int checkTorquePolice |
( |
void * |
tp | ) |
|
Definition at line 25 of file TorquePolice.c.
25 {
30
34 #ifdef DEBUGn
35 printf("RTD is not ready to drive, reducing torque to zero\r\n");
36 #endif
38 }
45 }
46
49 printf("Brake System is in heavy braking, reducing torque to zero\r\n");
51
52
54 }
55
58 printf(
"Desired torque (%f) is too low, reducing to zero\r\n", tc->
desiredTorque);
60 } else {
62 }
63
64 #ifdef DEBUGn
66 #endif
68}
#define TORQUE_LOW_MARGIN
BrakeSystemControl * brakeSystemControl
TorqueControl * torqueControl
◆ initTorquePolice()
Definition at line 5 of file TorquePolice.c.
5 {
12}
void initMonitorSystem(MonitorSystem *monitor, const char *name, int hz, MonitorType type, FaultType fault, int(*runMonitor)(void *self))
Initializes the Monitor System with initial settings.
int checkTorquePolice(void *tp)
◆ startTorquePolice()
Definition at line 15 of file TorquePolice.c.
15 {
17 printf("Monitor function not set for TorquePolice\n");
19 }
22}
int(* runMonitor)(void *self)