16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 04:39:18 +02:00

Inicjacja wszystkich zapomnianych zmiennych w hamulcach

This commit is contained in:
firleju
2016-12-10 21:59:52 +01:00
parent 0659256619
commit df2365f353
6 changed files with 90 additions and 37 deletions

View File

@@ -113,6 +113,12 @@ bool iSetFlag(int &Flag, int Value)
return false;
}
bool UnSetFlag(int &Flag, int Value)
{
Flag &= ~Value;
return true;
}
bool FuzzyLogic(double Test, double Threshold, double Probability)
{
if ((Test > Threshold) && (!DebugModeFlag))