fix: Pass bias-T setting to ADS-B and AIS dashboards

The bias-T checkbox on the main dashboard was not being passed to the
ADS-B and AIS tracking start requests. Added getBiasTEnabled() helper
to each dashboard that reads from shared localStorage, and updated all
start request bodies to include bias_t parameter.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Smittix
2026-01-29 12:51:28 +00:00
parent 0cf73b1234
commit 0a6effccae
4 changed files with 25 additions and 7 deletions
+1 -1
View File
@@ -45,7 +45,7 @@
fetch('/ais/start', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ device, gain })
body: JSON.stringify({ device, gain, bias_t: typeof getBiasTEnabled === 'function' ? getBiasTEnabled() : false })
})
.then(r => r.json())
.then(data => {