Vehicle Control Unit 0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
SteeringColumn.h
Go to the documentation of this file.
1#ifndef RENSSELAERMOTORSPORT_STEERINGCOLUMN_H
2#define RENSSELAERMOTORSPORT_STEERINGCOLUMN_H
3
4#include "../AnalogSensor.h"
5
6typedef struct {
11
21void initSteeringColumn(SteeringColumn* sc, int hz, int channel, float zeroOffset);
22
30
36void updateSteeringColumn(void* sc);
37
44float transferFunctionSteeringColumn(float rawVal);
45
46#endif // RENSSELAERMOTORSPORT_STEERINGCOLUMN_H
float getSteeringColumnRotationAngle(SteeringColumn *sc)
Gets the current rotation angle of the steering column.
void initSteeringColumn(SteeringColumn *sc, int hz, int channel, float zeroOffset)
Initializes the SteeringColumn sensor with the given frequency, channel, and zero offset.
Definition: SteeringColumn.c:5
float transferFunctionSteeringColumn(float rawVal)
Converts raw steering column data to a meaningful rotation angle.
void updateSteeringColumn(void *sc)
Updates the SteeringColumn data.
float rotation_angle
Definition: SteeringColumn.h:8
AnalogSensor base
Definition: SteeringColumn.h:7