Added basic calibration framework: pending servo integration and tying of encoders.

This commit is contained in:
2025-12-28 20:52:11 -06:00
parent 2a79df3050
commit b43c918c57
7 changed files with 398 additions and 178 deletions

View File

@@ -1,11 +1,12 @@
#ifndef ENCODER_H
#define ENCODER_H
#include "driver/gpio.h"
#include <atomic>
class Encoder {
public:
// Shared between ISR and main code
volatile int32_t count;
std::atomic<int32_t> count;
// ISR-only state
uint8_t last_state_a;