Loading...
Searching...
No Matches
dipla_ipc.h
Go to the documentation of this file.
27#define DIPLA_IPC_VERSION 1U /**< Reject incompatible packet layouts before interpreting payload. */
28#define DIPLA_IPC_START 1U /**< Request a chunk; retain an active belief, reset after STOP. No reply packet. */
32#define DIPLA_IPC_CREDIT_SHOT 5U /**< SHOT with a separate assimilation acknowledgement before the next new observation. */
33#define DIPLA_IPC_POINT 6U /**< Retrieve a retained point without admitting another observation. */
34#define DIPLA_IPC_ASSIMILATED_METRIC (-1) /**< Invalid local completion credit after assimilation or rejection, never a camera point. */
37#define DIPLA_POINT_MAX_AGE_MS 5000U /**< Assimilated observation lease, not retained-route creation age. */
38#define DIPLA_CYCLE_TIMEOUT_MS 1500U /**< Broken one-point cycles restart rather than mixing snapshots. */
49 uint32_t version, operation, session, number; /**< Positive observation identifier for SHOT/PLAN; unused for control packets. */
66 uint32_t version, session, number, valid; /**< Computational validity, never sensor confidence or field accuracy. */
94 uint32_t version, session, number, valid, generation, age_ms, count; /**< Eight only when the complete route is valid. */
108static_assert(sizeof(dipla_request) == 32 && sizeof(dipla_reply) == 36 && sizeof(dipla_plan_reply) == 124,
Fixed model geometry and C/C++ local transport units, not runtime settings.
Canonical model-field point; (50000,50000) is the captured anchor.
Definition dipla_ipc.h:99
int32_t east_mm
Flight-padded model X times 1000; default bounds 4000..96000.
Definition dipla_ipc.h:104
int32_t north_mm
Flight-padded model Y times 1000; default bounds 4000..96000.
Definition dipla_ipc.h:104
Complete immutable route reply on the local worker socket, not the FC bus.
Definition dipla_ipc.h:81
uint32_t generation
Monotonically increasing completed-route identity within this session.
Definition dipla_ipc.h:94
struct dipla_plan_reply::dipla_plan_point points[DIPLA_WAYPOINT_COUNT]
uint32_t valid
One only for an entire fresh, bounded route; zero authorizes no points.
Definition dipla_ipc.h:94
uint32_t age_ms
Milliseconds since the latest assimilated active-chunk pose was received.
Definition dipla_ipc.h:94
uint32_t number
Exact request echo; route data may originate from an earlier admitted pose.
Definition dipla_ipc.h:94
Legacy one-point retrieval from a generation pinned across eight slots.
Definition dipla_ipc.h:59
uint32_t number
Exact observation echo; a retry must not consume another slot.
Definition dipla_ipc.h:66
int32_t agl_mm
Configured physical flight height in millimetres; default 2000.
Definition dipla_ipc.h:75
int32_t alt_mm
Unchanged owner-supplied FC altitude in millimetres, not predicted model Z.
Definition dipla_ipc.h:75
uint32_t session
Exact session echo; prevents accepting a previous sortie's completion.
Definition dipla_ipc.h:66
Pose/control request; session and observation number have separate lifetimes.
Definition dipla_ipc.h:42
int32_t alt_mm
Owner-supplied FC altitude in millimetres; echoed by the legacy point reply.
Definition dipla_ipc.h:56
uint32_t session
Nonzero chunk token; STOP, not active START, ends survey belief.
Definition dipla_ipc.h:49
uint32_t version
Layout version; reject before interpreting the remaining packet.
Definition dipla_ipc.h:49