Vehicle Control Unit
0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
Core
Inc
Systems
Monitor
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
7
typedef
struct
{
8
MonitorSystem
base
;
9
int
maxTemperatureAllowed
;
10
BrakeSystemStatus
status
;
11
BrakeSystemControl
*
bsc
;
12
}
BrakePolice
;
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
*/
22
void
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
*/
30
int
startBrakePolice
(
BrakePolice
* bp);
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
*/
38
int
checkBrakePolice
(
void
* bp);
39
40
#endif
// RENSSELAERMOTORSPORT_BRAKE_POLICE_H
startBrakePolice
int startBrakePolice(BrakePolice *bp)
Definition:
BrakePolice.c:13
initBrakePolice
void initBrakePolice(BrakePolice *bp, BrakeSystemControl *bsc, int hz, int maxTemp)
Definition:
BrakePolice.c:5
checkBrakePolice
int checkBrakePolice(void *bp)
Definition:
BrakePolice.c:23
BrakeSystemStatus
BrakeSystemStatus
Definition:
BrakeSystemControl.h:9
BrakePolice
Definition:
BrakePolice.h:7
BrakePolice::status
BrakeSystemStatus status
Definition:
BrakePolice.h:10
BrakePolice::base
MonitorSystem base
Definition:
BrakePolice.h:8
BrakePolice::bsc
BrakeSystemControl * bsc
Definition:
BrakePolice.h:11
BrakePolice::maxTemperatureAllowed
int maxTemperatureAllowed
Definition:
BrakePolice.h:9
BrakeSystemControl
Definition:
BrakeSystemControl.h:18
MonitorSystem
Definition:
MonitorSystem.h:26
Generated by
1.9.5