feat: Compass initial commit

This commit is contained in:
2026-07-03 12:23:41 -04:00
commit 72dcfeb315
26 changed files with 2551 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
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'