Skip to content

Commit c398e3d

Browse files
committed
List.push() call is optimized
1 parent e0fbe88 commit c398e3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/flightlog.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,8 @@ export function FlightLog(logData) {
285285
fieldNames.push("axisError[0]", "axisError[1]", "axisError[2]"); // Custom calculated error field
286286
}
287287
if (!that.isFieldDisabled().GPS) {
288-
fieldNames.push("gpsCartesianCoords[0]", "gpsCartesianCoords[1]", "gpsCartesianCoords[2]", "gpsDistance", "gpsHomeAzimuth"); // GPS coords in cartesian system
289-
fieldNames.push("gpsTrajectoryTiltAngle"); // trajectory tilt angle
288+
// GPS coords in cartesian system, trajectory tilt angle
289+
fieldNames.push("gpsCartesianCoords[0]", "gpsCartesianCoords[1]", "gpsCartesianCoords[2]", "gpsDistance", "gpsHomeAzimuth", "gpsTrajectoryTiltAngle");
290290
}
291291

292292
fieldNameToIndex = {};

0 commit comments

Comments
 (0)