Vehicle Control Unit 0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
BrakePolice.h
Go to the documentation of this file.
1#ifndef RENSSELAERMOTORSPORT_BRAKE_POLICE_H
2#define RENSSELAERMOTORSPORT_BRAKE_POLICE_H
3
4#include "../MonitorSystem.h"
5#include "../Controller/BrakeSystemControl.h"
6
7typedef struct {
13
14/*
15* @brief Initializes the Brake Police with initial settings.
16*
17* @param bp A pointer to the BrakePolice structure.
18* @param bsc A pointer to the BrakeSystemControl structure.
19* @param hz Rate at which the system operates (in Hz).
20* @param maxTemp The maximum temperature limit set for the system (in Fahrenheit) for the brakediscs.
21*/
22void initBrakePolice(BrakePolice* bp, BrakeSystemControl *bsc, int hz, int maxTemp);
23
24/*
25* @brief Starts the Brake Police system.
26*
27* @param bp A pointer to the BrakePolice structure.
28* @return int _SUCCESS or _FAILURE.
29*/
31
32/*
33* @brief Updates the Brake Police system based on the brake system control.
34*
35* @param bp A pointer to the BrakePolice structure.
36* @return int _SUCCESS or _FAILURE.
37*/
38int checkBrakePolice(void* bp);
39
40#endif // RENSSELAERMOTORSPORT_BRAKE_POLICE_H
int startBrakePolice(BrakePolice *bp)
Definition: BrakePolice.c:13
void initBrakePolice(BrakePolice *bp, BrakeSystemControl *bsc, int hz, int maxTemp)
Definition: BrakePolice.c:5
int checkBrakePolice(void *bp)
Definition: BrakePolice.c:23
BrakeSystemStatus
BrakeSystemStatus status
Definition: BrakePolice.h:10
MonitorSystem base
Definition: BrakePolice.h:8
BrakeSystemControl * bsc
Definition: BrakePolice.h:11
int maxTemperatureAllowed
Definition: BrakePolice.h:9