commit for the morning before implementing 4 yoke

This commit is contained in:
Aditya Pulipaka
2025-11-16 10:31:46 -06:00
parent 2ccc6b48f9
commit 1702a2c734
3 changed files with 51 additions and 34 deletions

22
IndSensorMap.hpp Normal file
View 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