Skip to content

Commit

Permalink
fix doppler plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAF committed Dec 26, 2024
1 parent 10bb992 commit e2472fe
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions receiver/doppler/doppler.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ Plugins.doppler.init = async function () {
}
$("#satellite-name").text(data.name);
$("#satellite-track").addClass('highlighted').text("STOP");
var demodulator = $('#openwebrx-panel-receiver').demodulatorPanel().getDemodulator();
startFreq = demodulator.get_offset_frequency() + center_freq;
Plugins.doppler.intervalId = setInterval(() => {
var demodulator = $('#openwebrx-panel-receiver').demodulatorPanel().getDemodulator();
curFreq = demodulator.get_offset_frequency() + center_freq;
newFreq = AF_GetDoppler(data.line1, data.line2, receiverPos.lat, receiverPos.lon, curFreq);
// newFreqAF = AF_GetDoppler(data.line1, data.line2, receiverPos.lat, receiverPos.lon, curFreq);
newFreq = AF_GetDoppler(data.line1, data.line2, receiverPos.lat, receiverPos.lon, startFreq);
// newFreqAF = AF_GetDoppler(data.line1, data.line2, receiverPos.lat, receiverPos.lon, startFreq);
// console.log(`NewFreq: Sergey's: ${newFreq}, AF: ${newFreqAF}`);
demodulator.set_offset_frequency(newFreq - center_freq);
}, 1000);
Expand Down Expand Up @@ -112,7 +112,3 @@ Plugins.doppler.init = async function () {

return true;
}




0 comments on commit e2472fe

Please sign in to comment.