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