Make uturn detection a little less sensitive.
This commit is contained in:
+1
-1
@@ -124,7 +124,7 @@ template <class DataFacadeT> class MapMatchingPlugin : public BasePlugin
|
|||||||
input_coords[current_coordinate + 1]);
|
input_coords[current_coordinate + 1]);
|
||||||
|
|
||||||
// sharp turns indicate a possible uturn
|
// sharp turns indicate a possible uturn
|
||||||
if (turn_angle < 100.0 || turn_angle > 260.0)
|
if (turn_angle <= 90.0 || turn_angle >= 270.0)
|
||||||
{
|
{
|
||||||
allow_uturn = true;
|
allow_uturn = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user