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

SpeedCtrl DesiredPower can be calculated also from main controller

This commit is contained in:
Królik Uszasty
2020-10-10 17:44:13 +02:00
committed by tmj-fstate
parent 5e95d3ee50
commit fdd00f80e9

View File

@@ -7075,6 +7075,10 @@ void TMoverParameters::CheckEIMIC(double dt)
void TMoverParameters::CheckSpeedCtrl(double dt)
{
if (EIMCtrlType == 0)
{
SpeedCtrlUnit.DesiredPower = std::max(eimic, 0.0);
}
double accfactor = SpeedCtrlUnit.DesiredPower;
if (EIMCtrlType >= 2) {
if (MainCtrlPos < MainCtrlPosNo - 2) {