Vehicle Control Unit 0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
AccelerometerWrapper.c
Go to the documentation of this file.
1#include "../../../Inc/Sensors/AnalogSensors/AccelerometerWrapper.h"
2
6 Accelerometer* az) {
7 if (wrapper != NULL && ax != NULL && ay != NULL && az != NULL) {
8 wrapper->x = *ax;
9 wrapper->y = *ay;
10 wrapper->z = *az;
11 }
12}
void initAccelerometerWrapper(AccelerometerWrapper *wrapper, Accelerometer *ax, Accelerometer *ay, Accelerometer *az)
Initializes the AccelerometerWrapper with the given accelerometers.