Implemented 31kHz PWM output

This commit is contained in:
Aditya Pulipaka
2025-11-22 14:44:25 -06:00
parent 5c9a67e1d3
commit 28e33651a3
12 changed files with 51 additions and 14 deletions

View File

@@ -2,6 +2,7 @@
#include "IndSensorMap.hpp"
#include "Controller.hpp"
#include "ADC.hpp"
#include "FastPWM.hpp"
// K, Ki, Kd Constants
Constants repelling = {1000, 0, 10000};
@@ -50,6 +51,7 @@ int ON = 0;
void setup() {
Serial.begin(115200);
setupADC();
setupFastPWM();
indL.alpha = alphaVal;
indR.alpha = alphaVal;

View File

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

View File

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