Added interrupt-driven non-blocking ADC read. First step in increasing loop frequencies

This commit is contained in:
Aditya Pulipaka
2025-11-22 14:01:35 -06:00
parent 1b1e997eed
commit 5c9a67e1d3
9 changed files with 83 additions and 2 deletions

1
PseudoSensorControl/ADC.cpp Symbolic link
View File

@@ -0,0 +1 @@
../lib/ADC.cpp

1
PseudoSensorControl/ADC.hpp Symbolic link
View File

@@ -0,0 +1 @@
../lib/ADC.hpp

View File

@@ -1,6 +1,7 @@
#include <Arduino.h>
#include "IndSensorMap.hpp"
#include "PseudoSensorControl.hpp"
#include "ADC.hpp"
float refs[4] = {12.9,12.3,12.6,12};
@@ -36,6 +37,8 @@ int ON = 0;
void setup() {
Serial.begin(115200);
setupADC();
indL.alpha = alphaVal;
indR.alpha = alphaVal;
indF.alpha = alphaVal;