mirror of
https://github.com/smittix/intercept.git
synced 2026-07-07 17:18:11 -07:00
style: apply ruff-format to entire codebase
First-time run of ruff-format via pre-commit hook normalises quote style, trailing commas, and whitespace across 188 Python files. No logic changes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+38
-32
@@ -20,17 +20,17 @@ STREAM_CHUNK_SAMPLES = 4800
|
||||
# ---------------------------------------------------------------------------
|
||||
# SSTV tone frequencies (Hz)
|
||||
# ---------------------------------------------------------------------------
|
||||
FREQ_VIS_BIT_1 = 1100 # VIS logic 1
|
||||
FREQ_SYNC = 1200 # Horizontal sync pulse
|
||||
FREQ_VIS_BIT_0 = 1300 # VIS logic 0
|
||||
FREQ_BREAK = 1200 # Break tone in VIS header (same as sync)
|
||||
FREQ_LEADER = 1900 # Leader / calibration tone
|
||||
FREQ_BLACK = 1500 # Black level
|
||||
FREQ_WHITE = 2300 # White level
|
||||
FREQ_VIS_BIT_1 = 1100 # VIS logic 1
|
||||
FREQ_SYNC = 1200 # Horizontal sync pulse
|
||||
FREQ_VIS_BIT_0 = 1300 # VIS logic 0
|
||||
FREQ_BREAK = 1200 # Break tone in VIS header (same as sync)
|
||||
FREQ_LEADER = 1900 # Leader / calibration tone
|
||||
FREQ_BLACK = 1500 # Black level
|
||||
FREQ_WHITE = 2300 # White level
|
||||
|
||||
# Pixel luminance mapping range
|
||||
FREQ_PIXEL_LOW = 1500 # 0 luminance
|
||||
FREQ_PIXEL_HIGH = 2300 # 255 luminance
|
||||
FREQ_PIXEL_LOW = 1500 # 0 luminance
|
||||
FREQ_PIXEL_HIGH = 2300 # 255 luminance
|
||||
|
||||
# Frequency tolerance for tone detection (Hz)
|
||||
FREQ_TOLERANCE = 50
|
||||
@@ -38,13 +38,13 @@ FREQ_TOLERANCE = 50
|
||||
# ---------------------------------------------------------------------------
|
||||
# VIS header timing (seconds)
|
||||
# ---------------------------------------------------------------------------
|
||||
VIS_LEADER_MIN = 0.200 # Minimum leader tone duration
|
||||
VIS_LEADER_MAX = 0.500 # Maximum leader tone duration
|
||||
VIS_LEADER_NOMINAL = 0.300 # Nominal leader tone duration
|
||||
VIS_BREAK_DURATION = 0.010 # Break pulse duration (10 ms)
|
||||
VIS_BIT_DURATION = 0.030 # Each VIS data bit (30 ms)
|
||||
VIS_LEADER_MIN = 0.200 # Minimum leader tone duration
|
||||
VIS_LEADER_MAX = 0.500 # Maximum leader tone duration
|
||||
VIS_LEADER_NOMINAL = 0.300 # Nominal leader tone duration
|
||||
VIS_BREAK_DURATION = 0.010 # Break pulse duration (10 ms)
|
||||
VIS_BIT_DURATION = 0.030 # Each VIS data bit (30 ms)
|
||||
VIS_START_BIT_DURATION = 0.030 # Start bit (30 ms)
|
||||
VIS_STOP_BIT_DURATION = 0.030 # Stop bit (30 ms)
|
||||
VIS_STOP_BIT_DURATION = 0.030 # Stop bit (30 ms)
|
||||
|
||||
# Timing tolerance for VIS detection
|
||||
VIS_TIMING_TOLERANCE = 0.5 # 50% tolerance on durations
|
||||
@@ -53,22 +53,22 @@ VIS_TIMING_TOLERANCE = 0.5 # 50% tolerance on durations
|
||||
# VIS code → mode name mapping
|
||||
# ---------------------------------------------------------------------------
|
||||
VIS_CODES: dict[int, str] = {
|
||||
8: 'Robot36',
|
||||
12: 'Robot72',
|
||||
44: 'Martin1',
|
||||
40: 'Martin2',
|
||||
60: 'Scottie1',
|
||||
56: 'Scottie2',
|
||||
95: 'PD120',
|
||||
97: 'PD180',
|
||||
8: "Robot36",
|
||||
12: "Robot72",
|
||||
44: "Martin1",
|
||||
40: "Martin2",
|
||||
60: "Scottie1",
|
||||
56: "Scottie2",
|
||||
95: "PD120",
|
||||
97: "PD180",
|
||||
# Less common but recognized
|
||||
4: 'Robot24',
|
||||
36: 'Martin3',
|
||||
52: 'Scottie3',
|
||||
76: 'ScottieDX',
|
||||
96: 'PD240',
|
||||
99: 'PD90',
|
||||
98: 'PD160',
|
||||
4: "Robot24",
|
||||
36: "Martin3",
|
||||
52: "Scottie3",
|
||||
76: "ScottieDX",
|
||||
96: "PD240",
|
||||
99: "PD90",
|
||||
98: "PD160",
|
||||
}
|
||||
|
||||
# Reverse mapping: mode name → VIS code
|
||||
@@ -78,8 +78,14 @@ MODE_TO_VIS: dict[str, int] = {v: k for k, v in VIS_CODES.items()}
|
||||
# Common SSTV modes list (for UI / status)
|
||||
# ---------------------------------------------------------------------------
|
||||
SSTV_MODES = [
|
||||
'PD120', 'PD180', 'Martin1', 'Martin2',
|
||||
'Scottie1', 'Scottie2', 'Robot36', 'Robot72',
|
||||
"PD120",
|
||||
"PD180",
|
||||
"Martin1",
|
||||
"Martin2",
|
||||
"Scottie1",
|
||||
"Scottie2",
|
||||
"Robot36",
|
||||
"Robot72",
|
||||
]
|
||||
|
||||
# ISS SSTV frequency
|
||||
|
||||
Reference in New Issue
Block a user