mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
build 180830. minor bug fixes
This commit is contained in:
@@ -6474,7 +6474,7 @@ TDynamicObject::powertrain_sounds::render( TMoverParameters const &Vehicle, doub
|
||||
default: {
|
||||
volume =
|
||||
engine.m_amplitudeoffset
|
||||
+ engine.m_amplitudefactor * ( Vehicle.EnginePower / 1000 + std::fabs( Vehicle.enrot ) * 60.0 );
|
||||
+ engine.m_amplitudefactor * ( Vehicle.EnginePower + std::fabs( Vehicle.enrot ) * 60.0 );
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -6626,7 +6626,7 @@ TDynamicObject::powertrain_sounds::render( TMoverParameters const &Vehicle, doub
|
||||
case TEngineType::ElectricSeriesMotor: {
|
||||
volume =
|
||||
motor.m_amplitudeoffset
|
||||
+ motor.m_amplitudefactor * ( Vehicle.EnginePower / 1000 + motorrevolutions * 60.0 );
|
||||
+ motor.m_amplitudefactor * ( Vehicle.EnginePower + motorrevolutions * 60.0 );
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
|
||||
@@ -250,7 +250,7 @@ double TMoverParameters::Current(double n, double U)
|
||||
else
|
||||
Im = MotorCurrent;
|
||||
|
||||
EnginePower = abs(Itot) * (1 + RList[MainCtrlActualPos].Mn) * abs(U);
|
||||
EnginePower = abs(Itot) * (1 + RList[MainCtrlActualPos].Mn) * abs(U) / 1000.0;
|
||||
|
||||
// awarie
|
||||
MotorCurrent = abs(Im); // zmienna pomocnicza
|
||||
|
||||
@@ -144,7 +144,7 @@ commanddescription_sequence Commands_descriptions = {
|
||||
{ "doortoggleright", command_target::vehicle },
|
||||
{ "dooropenleft", command_target::vehicle },
|
||||
{ "dooropenright", command_target::vehicle },
|
||||
{ "doorlcloseleft", command_target::vehicle },
|
||||
{ "doorcloseleft", command_target::vehicle },
|
||||
{ "doorcloseright", command_target::vehicle },
|
||||
{ "doorcloseall", command_target::vehicle },
|
||||
{ "departureannounce", command_target::vehicle },
|
||||
|
||||
2
parser.h
2
parser.h
@@ -91,7 +91,7 @@ class cParser //: public std::stringstream
|
||||
bool trimComments( std::string &String );
|
||||
std::size_t count();
|
||||
// members:
|
||||
bool m_autoclear { true }; // not retrieved tokens are discarded when another read command is issued (legacy behaviour)
|
||||
bool m_autoclear { true }; // unretrieved tokens are discarded when another read command is issued (legacy behaviour)
|
||||
bool LoadTraction { true }; // load traction?
|
||||
std::shared_ptr<std::istream> mStream; // relevant kind of buffer is attached on creation.
|
||||
std::string mFile; // name of the open file, if any
|
||||
|
||||
Reference in New Issue
Block a user