Vehicle Control Unit
0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
Core
Inc
Systems
Controller
RTD.h
Go to the documentation of this file.
1
#ifndef __RENNSSELAERMOTORSPORT_RTD_H
2
#define __RENNSSELAERMOTORSPORT_RTD_H
3
4
#include "
Apps.h
"
5
#include "
BrakeSystemControl.h
"
6
#include "../ControllerSystem.h"
7
#include "../../Outputs/DigitalOutput.h"
8
#include "../../Sensors/DigitalSensors/Button.h"
9
#include "../../Utils/Common.h"
10
11
typedef
struct
{
12
ControllerSystem
base
;
13
uint8_t
readyToDrive
;
14
uint8_t
precharged
;
15
uint8_t
counter
;
16
Button
*
button
;
17
DigitalOutput
*
piezo
;
18
Apps
*
apps
;
19
BrakeSystemControl
*
bsc
;
20
}
RTD
;
21
28
void
initRTD
(
RTD
* rtd,
Apps
* apps,
BrakeSystemControl
* bsc,
int
hz,
int
buttonPort,
int
piezoPort);
29
36
int
startRTD
(
RTD
* rtd);
37
44
int
updateRTD
(
ControllerSystem
* controller);
45
52
int
checkRTD
(
void
* rtd);
53
#endif
// __RENNSSELAERMOTORSPORT_RTD_H
Apps.h
: Contains the logic for the two app sensors.
BrakeSystemControl.h
checkRTD
int checkRTD(void *rtd)
Checks if RTD is in ready to drive state.
Definition:
RTD.c:77
startRTD
int startRTD(RTD *rtd)
Starts the RTD Actuator.
Definition:
RTD.c:23
updateRTD
int updateRTD(ControllerSystem *controller)
Updates the RTD Actuator.
Definition:
RTD.c:37
initRTD
void initRTD(RTD *rtd, Apps *apps, BrakeSystemControl *bsc, int hz, int buttonPort, int piezoPort)
Initializes the RTD Actuator with initial settings.
Definition:
RTD.c:6
Apps
Definition:
Apps.h:22
BrakeSystemControl
Definition:
BrakeSystemControl.h:18
Button
Definition:
Button.h:6
ControllerSystem
Definition:
ControllerSystem.h:29
DigitalOutput
Definition:
DigitalOutput.h:11
RTD
Definition:
RTD.h:11
RTD::bsc
BrakeSystemControl * bsc
Definition:
RTD.h:19
RTD::apps
Apps * apps
Definition:
RTD.h:18
RTD::base
ControllerSystem base
Definition:
RTD.h:12
RTD::precharged
uint8_t precharged
Definition:
RTD.h:14
RTD::readyToDrive
uint8_t readyToDrive
Definition:
RTD.h:13
RTD::piezo
DigitalOutput * piezo
Definition:
RTD.h:17
RTD::button
Button * button
Definition:
RTD.h:16
RTD::counter
uint8_t counter
Definition:
RTD.h:15
Generated by
1.9.5