Vehicle Control Unit 0.01
This is the c library for controlling the car.
|
#include "../AnalogSensor.h"
Go to the source code of this file.
Classes | |
struct | SteeringColumn |
Functions | |
void | initSteeringColumn (SteeringColumn *sc, int hz, int channel, float zeroOffset) |
Initializes the SteeringColumn sensor with the given frequency, channel, and zero offset. More... | |
float | getSteeringColumnRotationAngle (SteeringColumn *sc) |
Gets the current rotation angle of the steering column. More... | |
void | updateSteeringColumn (void *sc) |
Updates the SteeringColumn data. More... | |
float | transferFunctionSteeringColumn (float rawVal) |
Converts raw steering column data to a meaningful rotation angle. More... | |
float getSteeringColumnRotationAngle | ( | SteeringColumn * | sc | ) |
Gets the current rotation angle of the steering column.
sc | Pointer to the SteeringColumn structure to query. |
Definition at line 12 of file SteeringColumn.c.
void initSteeringColumn | ( | SteeringColumn * | sc, |
int | hz, | ||
int | channel, | ||
float | zeroOffset | ||
) |
Initializes the SteeringColumn sensor with the given frequency, channel, and zero offset.
sc | Pointer to the SteeringColumn structure to initialize. |
hz | The frequency in Hertz at which the sensor operates. |
channel | The analog channel the sensor is connected to. |
zeroOffset | The zero offset value for the steering column. |
Definition at line 5 of file SteeringColumn.c.
float transferFunctionSteeringColumn | ( | float | rawVal | ) |
Converts raw steering column data to a meaningful rotation angle.
rawVal | The raw data from the steering column sensor. |
Definition at line 24 of file SteeringColumn.c.
void updateSteeringColumn | ( | void * | sc | ) |
Updates the SteeringColumn data.
sc | Pointer to the SteeringColumn structure to update. |
Definition at line 16 of file SteeringColumn.c.