commit for the morning before implementing 4 yoke
This commit is contained in:
22
IndSensorMap.hpp
Normal file
22
IndSensorMap.hpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef IND_SENSOR_MAP_HPP
|
||||
#define IND_SENSOR_MAP_HPP
|
||||
|
||||
// Inductive Sensor Mapping Struct
|
||||
typedef struct IndSensorMap {
|
||||
double A;
|
||||
double K;
|
||||
double B;
|
||||
double C;
|
||||
double v;
|
||||
} IndSensorMap;
|
||||
|
||||
// Predefined sensor calibrations
|
||||
extern IndSensorMap ind0Map;
|
||||
extern IndSensorMap ind1Map;
|
||||
extern IndSensorMap ind2Map;
|
||||
extern IndSensorMap ind3Map;
|
||||
|
||||
// Convert raw analog reading to millimeters using sensor calibration
|
||||
float ind2mm(IndSensorMap ind, unsigned int raw);
|
||||
|
||||
#endif // IND_SENSOR_MAP_HPP
|
||||
Reference in New Issue
Block a user