mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 09:19:18 +02:00
build 180830. minor bug fixes
This commit is contained in:
@@ -6474,7 +6474,7 @@ TDynamicObject::powertrain_sounds::render( TMoverParameters const &Vehicle, doub
|
|||||||
default: {
|
default: {
|
||||||
volume =
|
volume =
|
||||||
engine.m_amplitudeoffset
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -6626,7 +6626,7 @@ TDynamicObject::powertrain_sounds::render( TMoverParameters const &Vehicle, doub
|
|||||||
case TEngineType::ElectricSeriesMotor: {
|
case TEngineType::ElectricSeriesMotor: {
|
||||||
volume =
|
volume =
|
||||||
motor.m_amplitudeoffset
|
motor.m_amplitudeoffset
|
||||||
+ motor.m_amplitudefactor * ( Vehicle.EnginePower / 1000 + motorrevolutions * 60.0 );
|
+ motor.m_amplitudefactor * ( Vehicle.EnginePower + motorrevolutions * 60.0 );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
|
|||||||
@@ -250,7 +250,7 @@ double TMoverParameters::Current(double n, double U)
|
|||||||
else
|
else
|
||||||
Im = MotorCurrent;
|
Im = MotorCurrent;
|
||||||
|
|
||||||
EnginePower = abs(Itot) * (1 + RList[MainCtrlActualPos].Mn) * abs(U);
|
EnginePower = abs(Itot) * (1 + RList[MainCtrlActualPos].Mn) * abs(U) / 1000.0;
|
||||||
|
|
||||||
// awarie
|
// awarie
|
||||||
MotorCurrent = abs(Im); // zmienna pomocnicza
|
MotorCurrent = abs(Im); // zmienna pomocnicza
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ commanddescription_sequence Commands_descriptions = {
|
|||||||
{ "doortoggleright", command_target::vehicle },
|
{ "doortoggleright", command_target::vehicle },
|
||||||
{ "dooropenleft", command_target::vehicle },
|
{ "dooropenleft", command_target::vehicle },
|
||||||
{ "dooropenright", command_target::vehicle },
|
{ "dooropenright", command_target::vehicle },
|
||||||
{ "doorlcloseleft", command_target::vehicle },
|
{ "doorcloseleft", command_target::vehicle },
|
||||||
{ "doorcloseright", command_target::vehicle },
|
{ "doorcloseright", command_target::vehicle },
|
||||||
{ "doorcloseall", command_target::vehicle },
|
{ "doorcloseall", command_target::vehicle },
|
||||||
{ "departureannounce", 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 );
|
bool trimComments( std::string &String );
|
||||||
std::size_t count();
|
std::size_t count();
|
||||||
// members:
|
// 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?
|
bool LoadTraction { true }; // load traction?
|
||||||
std::shared_ptr<std::istream> mStream; // relevant kind of buffer is attached on creation.
|
std::shared_ptr<std::istream> mStream; // relevant kind of buffer is attached on creation.
|
||||||
std::string mFile; // name of the open file, if any
|
std::string mFile; // name of the open file, if any
|
||||||
|
|||||||
Reference in New Issue
Block a user