@@ -94,7 +94,7 @@ function FlightLog(logData) {
94
94
*/
95
95
this . getLogIndex = function ( ) {
96
96
return logIndex ;
97
- }
97
+ } ;
98
98
99
99
this . getLogCount = function ( ) {
100
100
return logIndexes . getLogCount ( ) ;
@@ -161,7 +161,7 @@ function FlightLog(logData) {
161
161
i ;
162
162
163
163
// Make an independent copy
164
- fieldNames = parser . frameDefs [ "I" ] . name . slice ( 0 ) ;
164
+ fieldNames = parser . frameDefs . I . name . slice ( 0 ) ;
165
165
166
166
fieldNames . push ( "heading[0]" , "heading[1]" , "heading[2]" ) ;
167
167
fieldNames . push ( "axisSum[0]" , "axisSum[1]" , "axisSum[2]" ) ;
@@ -193,7 +193,7 @@ function FlightLog(logData) {
193
193
found = false ;
194
194
195
195
//Are we even logging VBAT?
196
- if ( ! fieldNameToIndex [ ' vbatLatest' ] ) {
196
+ if ( ! fieldNameToIndex . vbatLatest ) {
197
197
numCells = false ;
198
198
} else {
199
199
for ( i = 1 ; i < 8 ; i ++ ) {
@@ -203,7 +203,7 @@ function FlightLog(logData) {
203
203
204
204
numCells = i ;
205
205
}
206
- } ;
206
+ }
207
207
208
208
this . getNumCellsEstimate = function ( ) {
209
209
return numCells ;
@@ -413,7 +413,7 @@ function FlightLog(logData) {
413
413
[ fieldNameToIndex [ "axisP[1]" ] , fieldNameToIndex [ "axisI[1]" ] , fieldNameToIndex [ "axisD[1]" ] ] ,
414
414
[ fieldNameToIndex [ "axisP[2]" ] , fieldNameToIndex [ "axisI[2]" ] , fieldNameToIndex [ "axisD[2]" ] ] ] ;
415
415
416
- if ( destChunks . length == 0 ) {
416
+ if ( destChunks . length === 0 ) {
417
417
return ;
418
418
}
419
419
@@ -471,7 +471,7 @@ function FlightLog(logData) {
471
471
}
472
472
}
473
473
}
474
- } ;
474
+ }
475
475
476
476
/**
477
477
* Add timestamps to events that getChunksInRange was unable to compute, because at the time it had trailing
@@ -537,7 +537,7 @@ function FlightLog(logData) {
537
537
this . getSmoothedChunksInTimeRange = function ( startTime , endTime ) {
538
538
var
539
539
sourceChunks ,
540
- resultChunks , resultChunk ,
540
+ resultChunks ,
541
541
chunkAlreadyDone , allDone ,
542
542
timeFieldIndex = FlightLogParser . prototype . FLIGHT_LOG_FIELD_INDEX_TIME ;
543
543
@@ -680,13 +680,13 @@ function FlightLog(logData) {
680
680
* to prime our history window. Move the left&right indexes to the left so the main loop will read
681
681
* those earlier values.
682
682
*/
683
- while ( leftFrameIndex > 0 || leftFrameIndex == 0 && leftChunkIndex > 0 ) {
683
+ while ( leftFrameIndex > 0 || leftFrameIndex === 0 && leftChunkIndex > 0 ) {
684
684
var
685
685
oldleftChunkIndex = leftChunkIndex ,
686
686
oldleftFrameIndex = leftFrameIndex ;
687
687
688
688
//Try moving it left
689
- if ( leftFrameIndex == 0 ) {
689
+ if ( leftFrameIndex === 0 ) {
690
690
leftChunkIndex -- ;
691
691
leftFrameIndex = sourceChunks [ leftChunkIndex ] . frames . length - 1 ;
692
692
} else {
@@ -773,7 +773,7 @@ function FlightLog(logData) {
773
773
}
774
774
}
775
775
776
- addMissingEventTimes ( sourceChunks , trailingROChunks == 0 ) ;
776
+ addMissingEventTimes ( sourceChunks , trailingROChunks === 0 ) ;
777
777
778
778
verifyChunkIndexes ( sourceChunks ) ;
779
779
verifyChunkIndexes ( resultChunks ) ;
0 commit comments