Example #1
0
 public void TestTrainModel1()
 {
     var(a, v1, mode) = TrainModel.AccelerationToFullyStopAfter2(
         v: 0.46089262f, distToGoal: 0.08170131f, accelMax: 1.0f, decelNom: 1.3f, maxVelocity: 80.0f / 3.6f, dt: 0.1f);
     Assert.Equal(0.46089414, v1, 6);
     Assert.Equal(-1.3f, a, 3);
 }