mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 20:39:18 +02:00
SpeedCntrl affects also first vehicle now
This commit is contained in:
committed by
tmj-fstate
parent
cf91f7e031
commit
3de04fdb67
@@ -2705,6 +2705,7 @@ bool TDynamicObject::Update(double dt, double dt1)
|
|||||||
MoverParameters->CheckSpeedCtrl();
|
MoverParameters->CheckSpeedCtrl();
|
||||||
|
|
||||||
auto eimic = Min0R(MoverParameters->eimic, MoverParameters->eimicSpeedCtrl);
|
auto eimic = Min0R(MoverParameters->eimic, MoverParameters->eimicSpeedCtrl);
|
||||||
|
MoverParameters->eimic = eimic;
|
||||||
MoverParameters->SendCtrlToNext("EIMIC", Max0R(0, eimic), MoverParameters->CabNo);
|
MoverParameters->SendCtrlToNext("EIMIC", Max0R(0, eimic), MoverParameters->CabNo);
|
||||||
auto LBR = Max0R(-eimic, 0);
|
auto LBR = Max0R(-eimic, 0);
|
||||||
|
|
||||||
|
|||||||
@@ -5055,7 +5055,6 @@ double TMoverParameters::TractionForce( double dt ) {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PosRatio = static_cast<double>( MainCtrlPos ) / static_cast<double>( MainCtrlPosNo );
|
|
||||||
PosRatio = Max0R(eimic, 0);
|
PosRatio = Max0R(eimic, 0);
|
||||||
eimv[eimv_Fzad] = PosRatio;
|
eimv[eimv_Fzad] = PosRatio;
|
||||||
if ((Flat) && (eimc[eimc_p_F0] * eimv[eimv_Fful] > 0))
|
if ((Flat) && (eimc[eimc_p_F0] * eimv[eimv_Fful] > 0))
|
||||||
|
|||||||
Reference in New Issue
Block a user