Variable CAR_HASNT_MOVED_START_RADIUS
Defined in File constants.hpp
Variable Documentation
-
constexpr double CAR_HASNT_MOVED_START_RADIUS = 0.3
When the car is in start position, we want the path to recalculate not from car’s closest midpoint but from 0 (empty Trace). To do this we need to know if the car is in a starting position. We will recalculate path from scratch (see Trace::trimByLocal()) basically if car’s outside a radius from (0,0).