Skip to content

Commit

Permalink
change simplification turn rate
Browse files Browse the repository at this point in the history
  • Loading branch information
derGraph committed Sep 14, 2024
1 parent 1e96420 commit 662e8b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workers/simplifyGps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export async function simplifyGps(trip: string, amount: number) {
{ lat: Number(lastPoint.lat), lng: Number(lastPoint.long) }
);

if (crosstrackError < 10 && Math.abs(turnRate) < 40 && distFromLastPoint < 100) {
if (crosstrackError < 10 && Math.abs(turnRate) < 10 && distFromLastPoint < 100) {
// Delete Datapoint
deletedPoints.push(inputData[i].id);
} else {
Expand Down

0 comments on commit 662e8b1

Please sign in to comment.