# gps-denied-onboard — environment variables
# See _docs/02_document/module-layout.md and AZ-263_initial_structure.md § Environment Variables.

# Required: selects the FC adapter at the composition root.
# One of: ardupilot_plane | inav
GPS_DENIED_FC_PROFILE=ardupilot_plane

# Required: runtime tier gate; 1=workstation/CI, 2=Jetson production
GPS_DENIED_TIER=1

# Required: Postgres connection used by C6 (tile cache + descriptor index)
DB_URL=postgresql://gps_denied:dev@db:5432/gps_denied

# Required (dev/operator only): satellite-provider base URL for tile download
# Not set in flight (no egress)
SATELLITE_PROVIDER_URL=http://mock-sat:5100

# Required: path to JSON camera calibration loaded at startup
CAMERA_CALIBRATION_PATH=/fixtures/calibration/adti26.json

# Required: structured log level (DEBUG | INFO | WARNING | ERROR)
LOG_LEVEL=DEBUG

# Required: structured log sink (console | journald | fdr)
LOG_SINK=console

# Required (production): per-flight MAVLink 2.0 signing key path
# Dev key from tests/fixtures/mavlink_signing/dev_key in dev-tier1.
MAVLINK_SIGNING_KEY=tests/fixtures/mavlink_signing/dev_key

# CMake build flags (per-binary; honoured at compile time)
BUILD_VINS_MONO=OFF
BUILD_SALAD=OFF
BUILD_C11_TILE_MANAGER=OFF

# Required: C7 inference backend (tensorrt | pytorch_fp16 | onnx_trt_ep)
INFERENCE_BACKEND=pytorch_fp16

# Required: filesystem paths for runtime artifacts
FDR_PATH=/var/lib/gps-denied/fdr
TILE_CACHE_PATH=/var/lib/gps-denied/tiles
