We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cb0221 commit e0fbe88Copy full SHA for e0fbe88
src/flightlog.js
@@ -913,7 +913,7 @@ export function FlightLog(logData) {
913
const Vn = srcFrame[gpsVelNED[0]],
914
Ve = srcFrame[gpsVelNED[1]],
915
Vd = srcFrame[gpsVelNED[2]];
916
- const velocity = Math.sqrt(Vn * Vn + Ve * Ve + Vd * Vd);
+ const velocity = Math.hypot(Vn, Ve, Vd);
917
const minVelo = 5; // 5cm/s limit to prevent division by zero and miss tiny noise values
918
let trajectoryTiltAngle = 0;
919
if (velocity > minVelo) {
0 commit comments