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
) {
5
initUpdateable
(&sensor->
updateable
, name, hz);
6
sensor->
type
=
type
;
7
}
initSensor
void initSensor(Sensor *sensor, const char *name, int hz, SensorType type)
Initializes a sensor with the given parameters.
Definition:
Sensor.c:4
SensorType
SensorType
Definition:
Sensor.h:9
type
type
Definition:
Updateable.h:17
initUpdateable
void initUpdateable(Updateable *updateable, const char *name, int hz)
Definition:
Updateable.c:6
Sensor
Definition:
Sensor.h:14
Sensor::type
SensorType type
Definition:
Sensor.h:16
Sensor::updateable
Updateable updateable
Definition:
Sensor.h:15
Generated by
1.9.5