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
lwir_features.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
18#ifndef SENSORAIA_LWIR_FEATURES_H
19#define SENSORAIA_LWIR_FEATURES_H
20/** @file lwir_features.h
21 * @brief Positive opt-ins shared by the worker and its USHER adapter.
22 * @details Undefined switches mean imagery-only, including standalone compilation.
23 * The root build records these values so changing profile rebuilds dependent code.
24 * Defaults are 0 so a missing build flag can never silently enable optional code.
25 */
26#ifndef LWIR_ENABLE_ANALYSIS
27/** @brief 1 builds the optional ONNX analysis of saved photos (lwir_inference). */
28#define LWIR_ENABLE_ANALYSIS 0
29#endif
30#ifndef LWIR_ENABLE_MOCK
31/** @brief 1 builds the development replay/synthetic-temperature adapter (lwir_mock). */
32#define LWIR_ENABLE_MOCK 0
33#endif
34/* Only 0 and 1 are meaningful; fail the build early on anything else. */
35#if (LWIR_ENABLE_ANALYSIS != 0 && LWIR_ENABLE_ANALYSIS != 1) || \
36 (LWIR_ENABLE_MOCK != 0 && LWIR_ENABLE_MOCK != 1)
37#error "LWIR feature switches must be 0 or 1"
38#endif
39#endif