Illustrated C/C++ source sheets, symbol index, API relationship graph, compiler console and debug trace

LIVE AI / FLEXIBLE SENSING / FLIGHT CONTEXT

Sensoraia API

Live AI and sensing, connected to the flight.
See, listen, inspect and return supported results while airborne.

Loading...
Searching...
No Matches
dipla_ipc.h
Go to the documentation of this file.
1/*
2 * Copyright 2026 OpenUAS
3 * SPDX-License-Identifier: Apache-2.0
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
24#ifndef SENSORAIA_DIPLA_IPC_H
25#define SENSORAIA_DIPLA_IPC_H
26#include "dipla_contract.h"
27#define DIPLA_IPC_VERSION 1U
28#define DIPLA_IPC_START 1U
29#define DIPLA_IPC_STOP 2U
30#define DIPLA_IPC_SHOT 3U
31#define DIPLA_IPC_PLAN 4U
32#define DIPLA_IPC_CREDIT_SHOT 5U
33#define DIPLA_IPC_POINT 6U
34#define DIPLA_IPC_ASSIMILATED_METRIC (-1)
35#define DIPLA_CAMERA_ID 5U
36#define DIPLA_CAMERA_MASK 0x10U
37#define DIPLA_POINT_MAX_AGE_MS 5000U
38#define DIPLA_CYCLE_TIMEOUT_MS 1500U
56 int32_t lat, lon, alt_mm, agl_q8;
57};
58
75 int32_t lat, lon, alt_mm, agl_mm, metric;
76};
77
107#ifdef __cplusplus
108static_assert(sizeof(dipla_request) == 32 && sizeof(dipla_reply) == 36 && sizeof(dipla_plan_reply) == 124,
109 "Diplacam local IPC layout changed");
110#else
111_Static_assert(sizeof(struct dipla_request) == 32 && sizeof(struct dipla_reply) == 36 &&
112 sizeof(struct dipla_plan_reply) == 124, "Diplacam local IPC layout changed");
113#endif
114#endif
Fixed model geometry and C/C++ local transport units, not runtime settings.
#define DIPLA_WAYPOINT_COUNT
Ordered route slots; changing this requires a new model and transport contract.
Definition dipla_contract.h:31
Canonical model-field point; (50000,50000) is the captured anchor.
Definition dipla_ipc.h:99
int32_t height_mm
Configured physical height in millimetres; predicted Z is never forwarded.
Definition dipla_ipc.h:104
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]
Slot zero maps to P1; a copied bank is never changed mid-reply.
uint32_t version
Complete-plan layout version.
Definition dipla_ipc.h:94
uint32_t valid
One only for an entire fresh, bounded route; zero authorizes no points.
Definition dipla_ipc.h:94
uint32_t session
Exact session echo, independent of route generation.
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 count
Eight only when the complete route is valid.
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
uint32_t valid
Computational validity, never sensor confidence or field accuracy.
Definition dipla_ipc.h:66
int32_t agl_mm
Configured physical flight height in millimetres; default 2000.
Definition dipla_ipc.h:75
int32_t lon
Proposed geographic longitude in degrees times 1e7.
Definition dipla_ipc.h:75
int32_t lat
Proposed geographic latitude in degrees times 1e7.
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
int32_t metric
Packed (generation<<3)|slot, with internal slot 0..7 mapping to P1..P8.
Definition dipla_ipc.h:75
uint32_t session
Exact session echo; prevents accepting a previous sortie's completion.
Definition dipla_ipc.h:66
uint32_t version
Reply layout version, checked before accepting any result.
Definition dipla_ipc.h:66
Pose/control request; session and observation number have separate lifetimes.
Definition dipla_ipc.h:42
uint32_t operation
START, STOP, SHOT or complete PLAN operation.
Definition dipla_ipc.h:49
int32_t alt_mm
Owner-supplied FC altitude in millimetres; echoed by the legacy point reply.
Definition dipla_ipc.h:56
uint32_t number
Positive observation identifier for SHOT/PLAN; unused for control packets.
Definition dipla_ipc.h:49
uint32_t session
Nonzero chunk token; STOP, not active START, ends survey belief.
Definition dipla_ipc.h:49
int32_t agl_q8
Actual reported AGL in metres times 256, not an MSL ground elevation.
Definition dipla_ipc.h:56
uint32_t version
Layout version; reject before interpreting the remaining packet.
Definition dipla_ipc.h:49
int32_t lat
Reported latitude in degrees times 1e7.
Definition dipla_ipc.h:56
int32_t lon
Reported longitude in degrees times 1e7.
Definition dipla_ipc.h:56