mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 22:09:19 +02:00
Fixed ventilators for ESM when going backwards
This commit is contained in:
@@ -2058,8 +2058,8 @@ void TMoverParameters::MotorBlowersCheck( double const Timestep ) {
|
|||||||
// activation check
|
// activation check
|
||||||
for( auto &blower : MotorBlowers ) {
|
for( auto &blower : MotorBlowers ) {
|
||||||
auto disable = blower.is_disabled;
|
auto disable = blower.is_disabled;
|
||||||
auto const start { ( Vel >= blower.min_start_velocity && Im > 0.5 ) };
|
auto const start { ( Vel >= blower.min_start_velocity && std::abs(Im) > 0.5 ) };
|
||||||
auto const stop { ( Vel < 0.5 && Im < 0.5 ) };
|
auto const stop { ( Vel < 0.5 && std::abs(Im) < 0.5 ) };
|
||||||
if (blower.min_start_velocity >= 0)
|
if (blower.min_start_velocity >= 0)
|
||||||
{
|
{
|
||||||
if ( stop )
|
if ( stop )
|
||||||
|
|||||||
Reference in New Issue
Block a user