Open behrisch opened 1 week ago
proposed fix: v.setChosenSpeedFactor(type.computeChosenSpeedDeviation(nullptr, (pars.departSpeed + SPEED_EPS) / MIN2(getSpeedLimit(), type.getDesiredMaxSpeed())));
If a car departs with 10m/s on a road with speed limit 10m/s the speedFactor now gets set to 1.001 This shouldn't happen. (see failing test traci/vehicletype/save_and_load_vtype_params)
The code in MSEdge::validateDepartSpeed only uses the edge speed limit to calculate the new speed factor when it should use the minimum of edge speed limit and desired max speed