Add agent ACARS f00b4r0 support and UI state sync

- Agent: Add _detect_acarsdec_fork() for f00b4r0/DragonOS support
- Agent: Use --output json:file, --rtlsdr, -m 256 for f00b4r0 fork
- UI: Add setAcarsRunning() to sync button state with agent
- UI: Add 'acars' to syncModeUI uiSetters map
This commit is contained in:
cemaxecuter
2026-01-27 10:20:53 -05:00
parent d3cb20cdae
commit 717dec4e54
3 changed files with 75 additions and 5 deletions

View File

@@ -3763,6 +3763,30 @@ sudo make install</code>
});
}
// Sync ACARS UI state (called by syncModeUI in agents.js)
function setAcarsRunning(running, agentId = null) {
isAcarsRunning = running;
const btn = document.getElementById('acarsToggleBtn');
const indicator = document.getElementById('acarsPanelIndicator');
if (running) {
acarsCurrentAgent = agentId;
btn.textContent = '■ STOP ACARS';
btn.classList.add('active');
if (indicator) indicator.classList.add('active');
// Start stream if not already running
if (!acarsEventSource && !acarsPollTimer) {
startAcarsStream(agentId !== null);
}
} else {
btn.textContent = '▶ START ACARS';
btn.classList.remove('active');
if (indicator) indicator.classList.remove('active');
}
}
// Expose to global scope for syncModeUI
window.setAcarsRunning = setAcarsRunning;
function startAcarsStream(isAgentMode = false) {
if (acarsEventSource) acarsEventSource.close();