mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-20 10:19:19 +02:00
UniversalControl is connected with BrakeCtrl
This commit is contained in:
committed by
tmj-fstate
parent
85d810b330
commit
bc0267dca6
11
Driver.cpp
11
Driver.cpp
@@ -3646,10 +3646,13 @@ void TController::CheckTimeControllers()
|
||||
NeutralPos = i;
|
||||
break;
|
||||
}
|
||||
if ((DizelActualPercentage >= DizelPercentage_Speed) && (mvControlling->MainCtrlPos > NeutralPos))
|
||||
while (mvControlling->MainCtrlPos > NeutralPos) mvControlling->DecMainCtrl(1);
|
||||
if ((DizelActualPercentage <= DizelPercentage_Speed) && (mvControlling->MainCtrlPos < NeutralPos))
|
||||
while (mvControlling->MainCtrlPos < NeutralPos) mvControlling->IncMainCtrl(1);
|
||||
if (BrakeCtrlPosition < 0.1) //jesli nie hamuje
|
||||
{
|
||||
if ((DizelActualPercentage >= DizelPercentage_Speed) && (mvControlling->MainCtrlPos > NeutralPos))
|
||||
while (mvControlling->MainCtrlPos > NeutralPos) mvControlling->DecMainCtrl(1);
|
||||
if ((DizelActualPercentage <= DizelPercentage_Speed) && (mvControlling->MainCtrlPos < NeutralPos))
|
||||
while (mvControlling->MainCtrlPos < NeutralPos) mvControlling->IncMainCtrl(1);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user