mirror of
https://github.com/OpenSquawk/OpenSquawk
synced 2026-08-05 08:55:54 +08:00
feat(pm): auto-tune radio from SimBridge telemetry via ?token
When /pm is opened with ?token=<bridge-token>, poll /api/bridge/live for fresh telemetry. While the bridge keeps posting, mirror the sim's COM1 active frequency into the radio (only on actual sim change, so manual/flow tuning isn't clobbered) and show a "Bridge connected" badge in the HUD. Telemetry now carries COM_ACTIVE_FREQUENCY/COM_STANDBY_FREQUENCY from the bridge's com_active_frequency/com_standby_frequency fields. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -38,6 +38,8 @@ export interface FlightLabTelemetryState {
|
||||
TRANSPONDER_CODE: number // squawk code (0-7777 octal)
|
||||
ADF_ACTIVE_FREQUENCY: number // Hz
|
||||
ADF_STANDBY_FREQUENCY: number // Hz
|
||||
COM_ACTIVE_FREQUENCY?: number // MHz (e.g. 121.900), COM1 active radio
|
||||
COM_STANDBY_FREQUENCY?: number // MHz, COM1 standby radio
|
||||
timestamp?: number
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user