mirror of
https://github.com/smittix/intercept.git
synced 2026-04-24 06:40:00 -07:00
Fix weather sat handoff: remove defunct METEOR-M2, fire change event
- Remove 'METEOR-M2' (NORAD 40069) from WEATHER_SAT_KEYS — it has no entry in WEATHER_SATELLITES and no dropdown option, so the Capture button was silently scheduling against the wrong satellite - Dispatch a 'change' event after setting satSelect.value in preSelect() and startPass() so any UI listeners (frequency display, mode info) update correctly when the satellite is set programmatically Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -332,7 +332,10 @@ const WeatherSat = (function() {
|
|||||||
*/
|
*/
|
||||||
function preSelect(satellite) {
|
function preSelect(satellite) {
|
||||||
const satSelect = document.getElementById('weatherSatSelect');
|
const satSelect = document.getElementById('weatherSatSelect');
|
||||||
if (satSelect) satSelect.value = satellite;
|
if (satSelect) {
|
||||||
|
satSelect.value = satellite;
|
||||||
|
satSelect.dispatchEvent(new Event('change'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -342,6 +345,7 @@ const WeatherSat = (function() {
|
|||||||
const satSelect = document.getElementById('weatherSatSelect');
|
const satSelect = document.getElementById('weatherSatSelect');
|
||||||
if (satSelect) {
|
if (satSelect) {
|
||||||
satSelect.value = satellite;
|
satSelect.value = satellite;
|
||||||
|
satSelect.dispatchEvent(new Event('change'));
|
||||||
}
|
}
|
||||||
start();
|
start();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2194,7 +2194,7 @@
|
|||||||
|
|
||||||
// Satellites that can be handed off to the weather-satellite capture mode
|
// Satellites that can be handed off to the weather-satellite capture mode
|
||||||
const WEATHER_SAT_KEYS = new Set([
|
const WEATHER_SAT_KEYS = new Set([
|
||||||
'METEOR-M2', 'METEOR-M2-3', 'METEOR-M2-4'
|
'METEOR-M2-3', 'METEOR-M2-4'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
function renderPassList() {
|
function renderPassList() {
|
||||||
|
|||||||
Reference in New Issue
Block a user