mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 19:49:19 +02:00
Another change in turbocharger sound, added rpm in engine ui panel.
This commit is contained in:
@@ -6625,7 +6625,7 @@ TDynamicObject::powertrain_sounds::render( TMoverParameters const &Vehicle, doub
|
|||||||
if( Vehicle.TurboTest > 0 ) {
|
if( Vehicle.TurboTest > 0 ) {
|
||||||
// udawanie turbo:
|
// udawanie turbo:
|
||||||
auto const pitch_diesel { Vehicle.EngineType == TEngineType::DieselEngine ? Vehicle.enrot / Vehicle.dizel_nmax : 0 };
|
auto const pitch_diesel { Vehicle.EngineType == TEngineType::DieselEngine ? Vehicle.enrot / Vehicle.dizel_nmax : 0 };
|
||||||
auto const goalpitch { std::max( 0.025, ( engine_volume + pitch_diesel + engine_turbo.m_frequencyoffset ) * engine_turbo.m_frequencyfactor ) };
|
auto const goalpitch { std::max( 0.025, ( engine_volume * pitch_diesel + engine_turbo.m_frequencyoffset ) * engine_turbo.m_frequencyfactor ) };
|
||||||
auto const goalvolume { (
|
auto const goalvolume { (
|
||||||
( ( Vehicle.MainCtrlPos >= Vehicle.TurboTest ) && ( Vehicle.enrot > 0.1 ) ) ?
|
( ( Vehicle.MainCtrlPos >= Vehicle.TurboTest ) && ( Vehicle.enrot > 0.1 ) ) ?
|
||||||
std::max( 0.0, ( engine_turbo_pitch + engine_turbo.m_amplitudeoffset ) * engine_turbo.m_amplitudefactor ) :
|
std::max( 0.0, ( engine_turbo_pitch + engine_turbo.m_amplitudeoffset ) * engine_turbo.m_amplitudefactor ) :
|
||||||
|
|||||||
@@ -717,7 +717,8 @@ debug_panel::update_section_engine( std::vector<text_line> &Output ) {
|
|||||||
|
|
||||||
std::string parameterstext = "param value";
|
std::string parameterstext = "param value";
|
||||||
std::vector< std::pair <std::string, double> > const paramvalues {
|
std::vector< std::pair <std::string, double> > const paramvalues {
|
||||||
{ "efill: ", mover.dizel_fill },
|
{ " rpm: ", mover.enrot * 60.0 },
|
||||||
|
{ "efill: ", mover.dizel_fill },
|
||||||
{ "etorq: ", mover.dizel_Torque },
|
{ "etorq: ", mover.dizel_Torque },
|
||||||
{ "creal: ", mover.dizel_engage },
|
{ "creal: ", mover.dizel_engage },
|
||||||
{ "cdesi: ", mover.dizel_engagestate },
|
{ "cdesi: ", mover.dizel_engagestate },
|
||||||
|
|||||||
Reference in New Issue
Block a user