diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs index 0683d8833c5b63eb0a19c6c705a09fcdb795349e..5a40c85b1062b0aa24370d894b7d5ee75130f692 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs @@ -753,7 +753,8 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl public bool IsOverspeedAllowed(MeterPerSecond velocity, bool prohibitOverspeed = false) => !prohibitOverspeed - && Driver.DriverData.OverSpeed.Enabled + // allow overspeed either if enabled in the driver model, or ADAS PCC option 3 is enabled in the vehicle and we are on a highway + && (Driver.DriverData.OverSpeed.Enabled || ADAS.PredictiveCruiseControl == PredictiveCruiseControlType.Option_1_2_3 && DataBus.DrivingCycleInfo.CycleData.LeftSample.Highway) && velocity > Driver.DriverData.OverSpeed.MinSpeed && ApplyOverspeed(velocity) < (DataBus.VehicleInfo.MaxVehicleSpeed ?? 500.KMPHtoMeterPerSecond()); }