Files
Compass/config.py
T
2026-07-03 12:23:41 -04:00

16 lines
583 B
Python

SERIAL_PORTS = [
{'port': '/dev/ttyUSB0', 'baud': 4800, 'name': 'NMEA Primary'},
{'port': '/dev/ttyUSB1', 'baud': 38400, 'name': 'NMEA Fast'},
]
# Windows example:
# {'port': 'COM3', 'baud': 4800, 'name': 'NMEA Primary'}
HEADING_SMOOTHING = 0.18 # 0=no smoothing, 1=instant snap
UI_REFRESH_MS = 80 # ~12 fps — smooth animation, low CPU
COMPASS_SPLIT = 0.60 # fraction of width for compass rose
# Vessel type — controls silhouettes in the attitude panel
# Options: 'motor_cruiser' | 'cargo' | 'offshore' | 'cruise' | 'superyacht'
VESSEL_TYPE = 'cargo'