# autopilot — development profile.
# Reads mock endpoints; tracing emits JSON to stdout (overridable via RUST_LOG).
# Reference: _docs/02_document/deployment/containerization.md §6.

[health]
# Bind address for the HTTP /health endpoint.
bind = "127.0.0.1:8080"

[observability]
# Log format: "json" for structured stdout (production), "pretty" for dev shells.
log_format = "pretty"
# Override via RUST_LOG env var; this is the floor if RUST_LOG is unset.
default_log_filter = "info,autopilot=debug"

[storage]
# Persistent state root (creates mapobjects/, audit/, pending_pushes/ subdirs).
state_dir = "./.dev_state"

[rtsp]
# Mock source — replaced in AZ-657 by the real ViewPro A40 RTSP stream.
url = "rtsp://127.0.0.1:8554/mock"

[gimbal]
# Mock A40 control endpoint. Replaced in AZ-653.
endpoint = "127.0.0.1:6000"

[mavlink]
# SITL endpoint when run alongside ArduPilot in compose; real airframe uses serial.
connection = "udp://127.0.0.1:14550"

[missions_api]
# Mock missions HTTPS endpoint.
endpoint = "http://127.0.0.1:8443"
auth_env = "MISSIONS_API_TOKEN"

[ground_station]
# Mock Ground Station endpoint.
endpoint = "http://127.0.0.1:8444"
auth_env = "GROUND_STATION_TOKEN"

[detections]
# Bi-directional gRPC to ../detections. Mock host:port for compose.
endpoint = "http://127.0.0.1:50051"

[vlm]
# Runtime VLM flag. The binary must also be built with `--features vlm`
# for the real VLM path to be linked in. See architecture.md §7.6 Optionality.
enabled = false
ipc_socket = "/var/run/vila/ipc.sock"
