quicker float operation for inductive sensor mapping

This commit is contained in:
2025-11-22 15:16:16 -06:00
parent c30a847e1f
commit f4a4e8b750
2 changed files with 27 additions and 6 deletions

View File

@@ -10,6 +10,10 @@ typedef struct IndSensorMap {
float B;
float C;
float v;
// Pre-computed constants for faster toMM()
float invB; // 1.0 / B
float K_minus_A; // K - A
} IndSensorMap;
class IndSensor {