Vehicle Control Unit 0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
ESCIndicator.c
Go to the documentation of this file.
1#include "../../../Inc/Sensors/DigitalSensors/ESCIndicator.h"
2
3void initECSIndicator(ESCIndicator* esc, int hz, int port) {
4 initDigitalSensor(&esc->base, "ESC Indicator", hz, port);
5 esc->alive = true;
6}
7
9 return esc->alive;
10}
void initDigitalSensor(DigitalSensor *digitalsensor, const char *name, int hz, int port)
Initializes a digital sensor with the given parameters.
Definition: DigitalSensor.c:3
bool getAlive(ESCIndicator *esc)
Getter for alive var.
Definition: ESCIndicator.c:8
void initECSIndicator(ESCIndicator *esc, int hz, int port)
Definition: ESCIndicator.c:3
DigitalSensor base
Definition: ESCIndicator.h:8