Skip to content

fix: CollisionControlUnit should be allowed to leave lane

Dominik Jantschar requested to merge djansch-fix-leave-lane-ccu into main

Description:

Before we just checked for is it a TPM? If not it can only be a VehicleModelControllerUnit but now with the addition of a new externalControlUnits there was an uncovered case for isALlowedToLeaveLane. WIth this MR every Entity is allowed to leave lane after a collision happens. As CollisionControllUnits has same expectation as the TPMUnit we reversed the logic to check if its an VehicleModelControllUnit.

Edited by Dominik Jantschar

Merge request reports

Loading