diff --git a/modules/autonavigation/pathsegment.cpp b/modules/autonavigation/pathsegment.cpp index 85dec829ab..f0e3ef776d 100644 --- a/modules/autonavigation/pathsegment.cpp +++ b/modules/autonavigation/pathsegment.cpp @@ -48,10 +48,8 @@ PathSegment::PathSegment(Waypoint start, Waypoint end, CurveType type, _duration = duration.value(); } else { - // TODO: compute default duration based on curve length - // Also, when compensatng for simulation time later we need to make a guess for - // the duration, based on the current position of the target. - _duration = 5; + _duration = std::log(pathLength()); + //LINFO(fmt::format("Default duration: {}", _duration)); } }