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 45e2ece1 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

remove no longer used method

parent 0a4e43e6
No related branches found
No related tags found
No related merge requests found
...@@ -52,19 +52,6 @@ namespace TUGraz.VectoCore.Utils ...@@ -52,19 +52,6 @@ namespace TUGraz.VectoCore.Utils
return power / angularVelocity; return power / angularVelocity;
} }
public static Meter DecelerationDistance(MeterPerSecond v1, MeterPerSecond v2,
MeterPerSquareSecond deceleration)
{
if (deceleration >= 0) {
throw new VectoException("Deceleration must be negative! a: {0}", deceleration);
}
if (v2 > v1) {
throw new VectoException("v2 must not be greater than v1 v1: {0} v2: {1}", v1.Value(), v2.Value());
}
return ((v2.Value() - v1.Value()) * (v1.Value() + v2.Value()) / deceleration.Value() / 2.0).SI<Meter>();
}
/// <summary> /// <summary>
/// Calculates power loss caused by inertia. /// Calculates power loss caused by inertia.
/// https://en.wikipedia.org/wiki/Angular_acceleration /// https://en.wikipedia.org/wiki/Angular_acceleration
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment