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:
committed by
tmj-fstate
parent
5e95d3ee50
commit
fdd00f80e9
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user