Skip to content

Commit c0089f8

Browse files
committed
The segmentLenghtPSD variables name is changed to segmentLengthPSD
1 parent 5ee8dfb commit c0089f8

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/graph_spectrum.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -299,29 +299,29 @@ export function FlightLogAnalyser(flightLog, canvas, analyserCanvas) {
299299
})
300300
.val(analyserMinPSD.val());
301301

302-
let segmentLenghtPSD = DEFAULT_PSD_SEGMENT_LENGTH;
303-
GraphSpectrumCalc.setPointsPerSegmentPSD(segmentLenghtPSD);
302+
let segmentLengthPSD = DEFAULT_PSD_SEGMENT_LENGTH;
303+
GraphSpectrumCalc.setPointsPerSegmentPSD(segmentLengthPSD);
304304
analyserSegmentLengthPSD
305305
.on(
306306
"input",
307307
function () {
308308
const currentValue = parseInt($(this).val());
309-
if (currentValue > segmentLenghtPSD) {
310-
segmentLenghtPSD *= 2;
311-
} else if (currentValue < segmentLenghtPSD){
312-
segmentLenghtPSD /= 2;
309+
if (currentValue > segmentLengthPSD) {
310+
segmentLengthPSD *= 2;
311+
} else if (currentValue < segmentLengthPSD){
312+
segmentLengthPSD /= 2;
313313
}
314-
$(this).val(segmentLenghtPSD);
314+
$(this).val(segmentLengthPSD);
315315
// Recalculate PSD with updated samples per segment count
316-
GraphSpectrumCalc.setPointsPerSegmentPSD(segmentLenghtPSD);
316+
GraphSpectrumCalc.setPointsPerSegmentPSD(segmentLengthPSD);
317317
dataLoad();
318318
GraphSpectrumPlot.setData(fftData, userSettings.spectrumType);
319319
that.refresh();
320320
},
321321
)
322322
.dblclick(function (e) {
323323
if (e.ctrlKey) {
324-
segmentLenghtPSD = DEFAULT_PSD_SEGMENT_LENGTH;
324+
segmentLengthPSD = DEFAULT_PSD_SEGMENT_LENGTH;
325325
$(this).val(DEFAULT_PSD_SEGMENT_LENGTH).trigger("input");
326326
}
327327
})

0 commit comments

Comments
 (0)