Make sure we only count turns as UTurns for the turn_function

This commit is contained in:
Patrick Niklaus
2017-12-22 23:39:49 +00:00
committed by Patrick Niklaus
parent 84b6ef4340
commit e45d44cb8e
3 changed files with 7 additions and 2 deletions
@@ -77,7 +77,11 @@ struct TurnInstruction
TurnType::Enum type : 5;
DirectionModifier::Enum direction_modifier : 3;
// the lane tupel that is used for the turn
bool IsUTurn() const
{
return type == TurnType::Turn && direction_modifier == DirectionModifier::UTurn;
}
static TurnInstruction INVALID() { return {TurnType::Invalid, DirectionModifier::UTurn}; }