Vehicle Control Unit 0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
Classes | Functions
AccelerometerWrapper.h File Reference
#include "Accelerometer.h"
Include dependency graph for AccelerometerWrapper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  AccelerometerWrapper
 

Functions

void initAccelerometerWrapper (AccelerometerWrapper *wrapper, Accelerometer *ax, Accelerometer *ay, Accelerometer *az)
 Initializes the AccelerometerWrapper with the given accelerometers. More...
 

Function Documentation

◆ initAccelerometerWrapper()

void initAccelerometerWrapper ( AccelerometerWrapper wrapper,
Accelerometer ax,
Accelerometer ay,
Accelerometer az 
)

Initializes the AccelerometerWrapper with the given accelerometers.

Parameters
wrapperPointer to the AccelerometerWrapper structure to initialize.
axPointer to the x-axis Accelerometer.
ayPointer to the y-axis Accelerometer.
azPointer to the z-axis Accelerometer.

Definition at line 3 of file AccelerometerWrapper.c.

6 {
7 if (wrapper != NULL && ax != NULL && ay != NULL && az != NULL) {
8 wrapper->x = *ax;
9 wrapper->y = *ay;
10 wrapper->z = *az;
11 }
12}