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
remote::RemoteInbox Class Reference

Stores the latest Move (with timeout), the jog speed and the pending mode, calibration and aim requests. More...

#include <remote_inbox.h>

Public Member Functions

void submit (const Command &cmd, uint32_t now_ms)
 Applies a command. Move stores direction and time, Stop ends the jog, Mode, Calibrate and Aim store a one-shot request (latest wins; Aim also ends an active jog), Speed sets the persistent jog speed.
 
bool jog_active (uint32_t now_ms) const
 True if a Move arrived and less than kJogTimeoutMs have passed since.
 
Jog jog (uint32_t now_ms) const
 The magnitude of the current speed setting times the direction while active, else {0, 0}.
 
std::optional< RemoteMode > take_mode_request ()
 The latest Mode command, returned once.
 
std::optional< CalAction > take_cal_request ()
 The latest Calibrate action, returned once.
 
std::optional< AimPixel > take_aim_request ()
 The latest Aim pixel, returned once.
 
JogSpeed speed () const
 The persistent jog speed setting (default Normal).
 

Detailed Description

Stores the latest Move (with timeout), the jog speed and the pending mode, calibration and aim requests.


The documentation for this class was generated from the following files: