skyspy: fix whitespace, counting time with sat view should now work
parent
7161aac53e
commit
e78f566e96
|
|
@ -638,7 +638,7 @@ let sky = {
|
|||
|
||||
// Return the SNR of the n-th strongest satellite
|
||||
return sortedSats[n - 1].snr;
|
||||
},
|
||||
},
|
||||
qualest: function() {
|
||||
// Sort the satellites by snr in descending order
|
||||
let sortedSats = this.snrSort();
|
||||
|
|
@ -669,7 +669,7 @@ let sky = {
|
|||
}
|
||||
}
|
||||
this.satVisibility = newVisibility;
|
||||
},
|
||||
},
|
||||
getnthLowestStartTimeSat: function(n) {
|
||||
// Collect all satellites from visibility
|
||||
let satellites = Object.values(this.satVisibility);
|
||||
|
|
@ -683,10 +683,12 @@ let sky = {
|
|||
|
||||
// Return the satellite with the 5th lowest start time
|
||||
return satellites[n-1]; // 0-based index, so 5th is index 4
|
||||
},
|
||||
},
|
||||
goodest: function () {
|
||||
let s = this.getnthLowestStartTimeSat(5);
|
||||
let t = getTime() - s;
|
||||
if (s==-1)
|
||||
return "none";
|
||||
let t = getTime() - s.start;
|
||||
return "" + t;
|
||||
},
|
||||
messageEnd: function() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue