/// <summary> /// When you're over the speed limit, this will return a percentage value indicating /// how far over you are, taking current speed limit + over speed margin as 100% over. /// </summary> private float OverSpeedLimitPercentage() { float SpeedLimit = (float)Base.GetProp("Job.SpeedLimitMph"); float CurrentSpeed = (float)Base.GetProp("Drivetrain.SpeedMph"); return(SpeedLimit > 0 ? Base.InputAsPercentageOfRange(CurrentSpeed, SpeedLimit, SpeedLimit + Base.Settings.OverSpeedMargin) : 0); }