Vehicle Control Unit
0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
Core
Inc
Sensors
DigitalSensors
ESCIndicator.h
Go to the documentation of this file.
1
#ifndef RENSSELAERMOTORSPORT_ESCINDICATOR_H
2
#define RENSSELAERMOTORSPORT_ESCINDICATOR_H
3
4
#include "../DigitalSensor.h"
5
#include "stdbool.h"
6
7
typedef
struct
{
8
DigitalSensor
base
;
9
bool
alive
;
10
}
ESCIndicator
;
11
12
/*
13
* @brief Initialization function for a Electronic stability control indicator sensor.
14
*
15
* @param esc A pointer to the ESCIndicator structure.
16
* @pram hz Rate at which the sensor is called (in hz)
17
* @pram port Location of sensor
18
*/
19
void
initECSIndicator
(
ESCIndicator
* esc,
int
hz,
int
port);
20
28
void
updateECSInicator
(
void
* esc);
29
36
bool
getAlive
(
ESCIndicator
* esc);
37
38
#endif
// RENSSELAERMOTORSPORT_ESCINDICATOR_H
getAlive
bool getAlive(ESCIndicator *esc)
Getter for alive var.
Definition:
ESCIndicator.c:8
initECSIndicator
void initECSIndicator(ESCIndicator *esc, int hz, int port)
Definition:
ESCIndicator.c:3
updateECSInicator
void updateECSInicator(void *esc)
Updated for this sensor.
DigitalSensor
Definition:
DigitalSensor.h:6
ESCIndicator
Definition:
ESCIndicator.h:7
ESCIndicator::alive
bool alive
Definition:
ESCIndicator.h:9
ESCIndicator::base
DigitalSensor base
Definition:
ESCIndicator.h:8
Generated by
1.9.5