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* steeringColumn, int hz, int channel, float zeroOffset);
22
30
37int updateSteeringColumn(SteeringColumn* steeringColumn);
38
45float transferFunctionSteeringColumn(float rawVal);
46
47#endif // RENSSELAERMOTORSPORT_STEERINGCOLUMN_H
int updateSteeringColumn(SteeringColumn *steeringColumn)
Updates the SteeringColumn data.
float getSteeringColumnRotationAngle(SteeringColumn *steeringColumn)
Gets the current rotation angle of the steering column.
float transferFunctionSteeringColumn(float rawVal)
Converts raw steering column data to a meaningful rotation angle.
void initSteeringColumn(SteeringColumn *steeringColumn, int hz, int channel, float zeroOffset)
Initializes the SteeringColumn sensor with the given frequency, channel, and zero offset.
Definition: SteeringColumn.c:6
float rotation_angle
Definition: SteeringColumn.h:8
AnalogSensor base
Definition: SteeringColumn.h:7