Two-point joystick calibration as a state machine (pure C++20, natively tested).
Read-only view of the controller state for the HUD and stats line.
const char * speed_name(uint8_t speed)
Wire name of ControlStatus::speed: slow (0), normal (1) or fast (2); anything else reads as normal.
Definition reply_json.cpp:126
constexpr size_t kReplySize
Buffer size that always holds a full reply.
Definition reply_json.h:27
const char * cal_state_name(aiming::CalState st)
Wire name of a calibration state: idle, point1, point2, done or failed.
Definition reply_json.cpp:108
size_t format_reply(const ReplyInput &in, char *out, size_t size)
Writes the NUL-terminated JSON reply into out and returns its length (without the NUL).
Definition reply_json.cpp:86
Snapshot of the controller, published once per control pass.
Definition control_status.h:17
Definition track_snapshot.h:14
Plain copies of the tracker output and detection timings, safe to hand across tasks.