Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 9775a05f authored by Harald Martini's avatar Harald Martini
Browse files

add dummy value for LengthBetweenCentersOfAxles when calculating reference factors

parent 589c9baf
No related branches found
No related tags found
No related merge requests found
...@@ -84,6 +84,14 @@ namespace TUGraz.VectoCore.Tests.Helper.TrailerTool ...@@ -84,6 +84,14 @@ namespace TUGraz.VectoCore.Tests.Helper.TrailerTool
} }
///For the calculation of the Reference Ratio, the LengthBetweenCentresOfAxles doesn't matter because only reference trailers are simulated
var lengthBetweenCentresOfAxles = xElements.Single(xElement =>
xElement.Name.LocalName == XMLNames.Trailer_LengthBetweenCentersOfAxles);
if (numberOfTrailerAxles == NumberOfTrailerAxles.One) {
lengthBetweenCentresOfAxles.Remove();
} else {
lengthBetweenCentresOfAxles.Value = "9.999";
}
var bodyWorkElement = xElements.Single(xElement => xElement.Name.LocalName == XMLNames.Trailer_BodyCode); var bodyWorkElement = xElements.Single(xElement => xElement.Name.LocalName == XMLNames.Trailer_BodyCode);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment