SXXXXXXX_ControlPanel/VideoReceiverSFP/core/config.py

35 lines
1.2 KiB
Python

"""Configuration for VideoReceiverSFP local behavior."""
from __future__ import annotations
import os
# Directory to store dumps (relative to repo root by default)
DUMPS_DIR = os.path.join(os.getcwd(), "dumps")
# Number of latest files to keep per type (png, bin)
DUMP_KEEP_COUNT = 100
# Debug save flags for payload types
# Set these to True/False to control saving of raw payloads
SAVE_RAW_MFD = False
SAVE_RAW_SAR = False
SAVE_RAW_UNKNOWN = True
# Flags to also save decoded previews for quick inspection
# MFD: save BMP; SAR/UNKNOWN: save BMP by default for lossless grayscale
SAVE_BMP_MFD = False
# By default do not automatically save decoded SAR previews; leave saving
# under user control via the UI checkboxes. Previously this was True and
# caused SAR previews to be written even when the user only enabled video
# recording. Set to False to avoid unexpected saves.
SAVE_BMP_SAR = False
SAVE_BMP_UNKNOWN = True
# Video recording defaults
# Set RECORD_MFD_VIDEO/RECORD_SAR_VIDEO to True to enable automatic
# recording of MFD/SAR streams into the `dumps` folder using DumpManager.
RECORD_MFD_VIDEO = True
RECORD_SAR_VIDEO = False
# Default FPS used when creating videos (can be overridden at runtime)
VIDEO_FPS = 20