#ifndef CALIBRATION_H #define CALIBRATION_H #include #include "encoder.hpp" class Calibration { public: static void init(); static bool beginDownwardCalib(Encoder& topEnc); static bool completeCalib(Encoder& topEnc); static int32_t convertToTicks(uint8_t appPos); static uint8_t convertToAppPos(int32_t ticks); static bool getCalibrated() {return calibrated;} static bool clearCalibrated(); static std::atomic DownTicks; static std::atomic UpTicks; private: static std::atomic calibrated; }; #endif