Void Sentry
An AI-driven, real-time Sentry Turret platform leveraging asynchronous I/O and computer vision to deliver high-precision autonomous motion tracking on resource-constrained embedded hardware.
Loading...
Searching...
No Matches
calibration_session.h File Reference

Two-point joystick calibration as a state machine (pure C++20, natively tested). More...

#include "aim_map.h"
#include <cstdint>
#include <optional>

Go to the source code of this file.

Classes

class  aiming::CalibrationSession
 

Enumerations

enum class  CalState : uint8_t {
  Idle , WaitPoint1 , WaitPoint2 , Done ,
  Failed
}
 

Detailed Description

Two-point joystick calibration as a state machine (pure C++20, natively tested).

start() -> WaitPoint1 -> WaitPoint2 -> Done (result() holds the fitted map) or Failed (failure() says why). record() ignores presses while no target is visible (the point is meaningless) and while Idle; in Failed the next record() restarts at point 1 without recording. cancel() returns to Idle from any state.