Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 5dc2d323 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

new testcase: slope change before speed change (stop) - vehicle must not stop too early!

parent 94434d21
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ namespace TUGraz.VectoCore.Tests.Integration.DriverStrategy
[TestInitialize]
public void DisableLogging()
{
LogManager.DisableLogging();
//LogManager.DisableLogging();
//GraphWriter.Disable();
}
......@@ -830,6 +830,33 @@ namespace TUGraz.VectoCore.Tests.Integration.DriverStrategy
.Run();
}
[TestMethod]
public void Truck_SlopeChangeBeforeStop()
{
var cycleData = new string[] {
// <s>,<v>,<grad>,<stop>
" 0, 60, -1.4, 0",
"198, 60, -1.7, 0",
"200, 0, -1.7, 4",
};
var cycle = SimpleDrivingCycles.CreateCycleData(cycleData);
Truck40tPowerTrain.CreateEngineeringRun(cycle, "Truck_DriverStrategy_SlopeChangeBeforeStop.vmod")
.Run();
}
[TestMethod]
public void Truck_FrequentSlopeChanges()
{
var cycleData = new string[] {
// <s>,<v>,<grad>,<stop>
" 0, 60, 0, 0",
" 10, 60, -6, 0",
"100, 55, -6, 0",
"300, 55, -6, 0"
};
}
#endregion
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment