From 73bb37537779928ea1117bd90945a12f37519c17 Mon Sep 17 00:00:00 2001 From: Emma Broman Date: Tue, 8 Jun 2021 16:54:21 +0200 Subject: [PATCH] Solve a problem with precision errors related to the step size being too small --- modules/autonavigation/pathcurve.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/autonavigation/pathcurve.h b/modules/autonavigation/pathcurve.h index f031dbb580..4eb514a472 100644 --- a/modules/autonavigation/pathcurve.h +++ b/modules/autonavigation/pathcurve.h @@ -48,7 +48,7 @@ public: protected: void initParameterIntervals(); - double approximatedDerivative(double u, double h = 1E-7); + double approximatedDerivative(double u, double h = 0.0001); double arcLength(double limit = 1.0); double arcLength(double lowerLimit, double upperLimit);