mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 22:09:19 +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)
|
void TMoverParameters::CheckSpeedCtrl(double dt)
|
||||||
{
|
{
|
||||||
|
if (EIMCtrlType == 0)
|
||||||
|
{
|
||||||
|
SpeedCtrlUnit.DesiredPower = std::max(eimic, 0.0);
|
||||||
|
}
|
||||||
double accfactor = SpeedCtrlUnit.DesiredPower;
|
double accfactor = SpeedCtrlUnit.DesiredPower;
|
||||||
if (EIMCtrlType >= 2) {
|
if (EIMCtrlType >= 2) {
|
||||||
if (MainCtrlPos < MainCtrlPosNo - 2) {
|
if (MainCtrlPos < MainCtrlPosNo - 2) {
|
||||||
|
|||||||
Reference in New Issue
Block a user