@@ -178,13 +178,13 @@ GraphSpectrumCalc._dataLoadFrequencyVsX = function(vsFieldNames, minValue = Infi
178
178
// blur algorithm to the heat map image
179
179
180
180
const fftData = {
181
- fieldIndex : this . _dataBuffer . fieldIndex ,
182
- fieldName : this . _dataBuffer . fieldName ,
183
- fftLength : fftChunkLength ,
184
- fftOutput : matrixFftOutput ,
185
- maxNoise : maxNoise ,
186
- blackBoxRate : this . _blackBoxRate ,
187
- vsRange : { min : flightSamples . minValue , max : flightSamples . maxValue } ,
181
+ fieldIndex : this . _dataBuffer . fieldIndex ,
182
+ fieldName : this . _dataBuffer . fieldName ,
183
+ fftLength : fftChunkLength ,
184
+ fftOutput : matrixFftOutput ,
185
+ maxNoise : maxNoise ,
186
+ blackBoxRate : this . _blackBoxRate ,
187
+ vsRange : { min : flightSamples . minValue , max : flightSamples . maxValue } ,
188
188
} ;
189
189
190
190
return fftData ;
@@ -299,7 +299,7 @@ GraphSpectrumCalc._getFlightSamplesFreq = function() {
299
299
}
300
300
301
301
return {
302
- samples : samples ,
302
+ samples : samples . slice ( 0 , samplesCount ) ,
303
303
count : samplesCount ,
304
304
} ;
305
305
} ;
@@ -379,13 +379,14 @@ GraphSpectrumCalc._getFlightSamplesFreqVsX = function(vsFieldNames, minValue = I
379
379
for ( const vsValueArray of vsValues ) {
380
380
slicedVsValues . push ( vsValueArray . slice ( 0 , samplesCount ) ) ;
381
381
}
382
+
382
383
return {
383
- samples : samples . slice ( 0 , samplesCount ) ,
384
- vsValues : slicedVsValues ,
385
- count : samplesCount ,
386
- minValue : minValue ,
387
- maxValue : maxValue ,
388
- } ;
384
+ samples : samples . slice ( 0 , samplesCount ) ,
385
+ vsValues : slicedVsValues ,
386
+ count : samplesCount ,
387
+ minValue : minValue ,
388
+ maxValue : maxValue ,
389
+ } ;
389
390
} ;
390
391
391
392
GraphSpectrumCalc . _getFlightSamplesPidErrorVsSetpoint = function ( axisIndex ) {
@@ -414,8 +415,8 @@ GraphSpectrumCalc._getFlightSamplesPidErrorVsSetpoint = function(axisIndex) {
414
415
}
415
416
416
417
return {
417
- piderror,
418
- setpoint,
418
+ piderror : piderror . slice ( 0 , samplesCount ) ,
419
+ setpoint : setpoint . slice ( 0 , samplesCount ) ,
419
420
maxSetpoint,
420
421
count : samplesCount ,
421
422
} ;
0 commit comments