Vehicle Control Unit 0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
TorquePolice.h
Go to the documentation of this file.
1#ifndef RENSSELAERMOTORSPORT_TORQUE_POLICE_H
2#define RENSSELAERMOTORSPORT_TORQUE_POLICE_H
3
4#include "../MonitorSystem.h"
5#include "../Controller/BrakeSystemControl.h"
6#include "../Controller/TorqueControl.h"
7#include "../Controller/RTD.h"
8
9#define TORQUE_ERROR_MARGIN 0.05 // TODO: Determine correct value for the margin, or change to lookup table if needed.
10
11typedef struct {
19
20void initTorquePolice(TorquePolice* tp, TorqueControl *tc, BrakeSystemControl *bsc, RTD* rtd, int hz, float maxTorque);
22int checkTorquePolice(void* tp);
23
24#endif // RENSSELAERMOTORSPORT_TORQUE_POLICE_H
TorqueStatus
Definition: TorqueControl.h:8
int checkTorquePolice(void *tp)
Definition: TorquePolice.c:25
void initTorquePolice(TorquePolice *tp, TorqueControl *tc, BrakeSystemControl *bsc, RTD *rtd, int hz, float maxTorque)
Definition: TorquePolice.c:5
int startTorquePolice(TorquePolice *tp)
Definition: TorquePolice.c:15
Definition: RTD.h:11
float maxAllowedTorque
Definition: TorquePolice.h:13
BrakeSystemControl * brakeSystemControl
Definition: TorquePolice.h:16
TorqueControl * torqueControl
Definition: TorquePolice.h:15
MonitorSystem base
Definition: TorquePolice.h:12
TorqueStatus status
Definition: TorquePolice.h:14