@@ -205,13 +205,13 @@ GraphSpectrumCalc._dataLoadFrequencyVsX = function(vsFieldNames, minValue = Infi
205
205
// blur algorithm to the heat map image
206
206
207
207
const fftData = {
208
- fieldIndex : this . _dataBuffer . fieldIndex ,
209
- fieldName : this . _dataBuffer . fieldName ,
210
- fftLength : fftChunkLength ,
211
- fftOutput : matrixFftOutput ,
212
- maxNoise : maxNoise ,
213
- blackBoxRate : this . _blackBoxRate ,
214
- vsRange : { min : flightSamples . minValue , max : flightSamples . maxValue } ,
208
+ fieldIndex : this . _dataBuffer . fieldIndex ,
209
+ fieldName : this . _dataBuffer . fieldName ,
210
+ fftLength : fftChunkLength ,
211
+ fftOutput : matrixFftOutput ,
212
+ maxNoise : maxNoise ,
213
+ blackBoxRate : this . _blackBoxRate ,
214
+ vsRange : { min : flightSamples . minValue , max : flightSamples . maxValue } ,
215
215
} ;
216
216
217
217
return fftData ;
@@ -330,7 +330,7 @@ GraphSpectrumCalc._getFlightSamplesFreq = function(scaled = true) {
330
330
}
331
331
332
332
return {
333
- samples : samples . slice ( 0 , samplesCount ) ,
333
+ samples : samples ,
334
334
count : samplesCount ,
335
335
} ;
336
336
} ;
@@ -410,14 +410,13 @@ GraphSpectrumCalc._getFlightSamplesFreqVsX = function(vsFieldNames, minValue = I
410
410
for ( const vsValueArray of vsValues ) {
411
411
slicedVsValues . push ( vsValueArray . slice ( 0 , samplesCount ) ) ;
412
412
}
413
-
414
413
return {
415
- samples : samples . slice ( 0 , samplesCount ) ,
416
- vsValues : slicedVsValues ,
417
- count : samplesCount ,
418
- minValue : minValue ,
419
- maxValue : maxValue ,
420
- } ;
414
+ samples : samples . slice ( 0 , samplesCount ) ,
415
+ vsValues : slicedVsValues ,
416
+ count : samplesCount ,
417
+ minValue : minValue ,
418
+ maxValue : maxValue ,
419
+ } ;
421
420
} ;
422
421
423
422
GraphSpectrumCalc . _getFlightSamplesPidErrorVsSetpoint = function ( axisIndex ) {
@@ -446,8 +445,8 @@ GraphSpectrumCalc._getFlightSamplesPidErrorVsSetpoint = function(axisIndex) {
446
445
}
447
446
448
447
return {
449
- piderror : piderror . slice ( 0 , samplesCount ) ,
450
- setpoint : setpoint . slice ( 0 , samplesCount ) ,
448
+ piderror,
449
+ setpoint,
451
450
maxSetpoint,
452
451
count : samplesCount ,
453
452
} ;
0 commit comments