Vehicle Control Unit
0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
Core
Src
Sensors
Sensor.c
Go to the documentation of this file.
1
#include "../../Inc/Sensors/Sensor.h"
2
#include "../../Inc/Utils/Updateable.h"
3
4
void
initSensor
(
Sensor
* sensor,
const
char
* name,
int
hz,
SensorType
type,
void
* child) {
5
initUpdateable
(&sensor->
updateable
, name, hz,
SENSOR
, sensor);
6
sensor->
type
= type;
7
sensor->
child
= child;
8
}
initSensor
void initSensor(Sensor *sensor, const char *name, int hz, SensorType type, void *child)
Initializes a sensor with the given parameters.
Definition:
Sensor.c:4
SensorType
SensorType
Definition:
Sensor.h:9
initUpdateable
void initUpdateable(Updateable *updateable, const char *name, int hz, UpdateableType utype, void *child)
Definition:
Updateable.c:6
SENSOR
@ SENSOR
Definition:
Updateable.h:19
Sensor
Definition:
Sensor.h:14
Sensor::child
void * child
Definition:
Sensor.h:17
Sensor::type
SensorType type
Definition:
Sensor.h:16
Sensor::updateable
Updateable updateable
Definition:
Sensor.h:15
Generated by
1.9.5