16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 00:09:19 +02:00

New function for speed comparisons based on Min0R.

Working LimitVelocity.
This commit is contained in:
firleju
2015-11-09 06:52:02 +01:00
parent 70f1f7bcad
commit 584d063f54
4 changed files with 67 additions and 16 deletions

View File

@@ -839,4 +839,14 @@ AnsiString Global::Bezogonkow(AnsiString str, bool _)
return str;
}
double Global::Min0RSpeed(double vel1, double vel2)
{ // rozszerzenie funkcji Min0R o wartoœci -1.0
if (vel1 == -1.0)
vel1 = std::numeric_limits<double>::max();
if (vel2 == -1.0)
vel2 = std::numeric_limits<double>::max();
return Min0R(vel1, vel2);
}
#pragma package(smart_init)