Vehicle Control Unit 0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
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
7typedef struct {
9 bool alive;
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 */
19void initECSIndicator(ESCIndicator* esc, int hz, int port);
20
28void updateECSInicator(void* esc);
29
36bool getAlive(ESCIndicator* esc);
37
38#endif // RENSSELAERMOTORSPORT_ESCINDICATOR_H
bool getAlive(ESCIndicator *esc)
Getter for alive var.
Definition: ESCIndicator.c:8
void initECSIndicator(ESCIndicator *esc, int hz, int port)
Definition: ESCIndicator.c:3
void updateECSInicator(void *esc)
Updated for this sensor.
DigitalSensor base
Definition: ESCIndicator.h:8