Skip to navigation

Driving model: SetRevsNoTorque

Name: SetRevsNoTorque [Show more] Type: Subroutine Category: Driving model Summary: Set the rev counter and zero the engine torque Deep dive: Modelling the engine
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * CalcRevsNoTorque calls SetRevsNoTorque * ProcessEngineStart calls SetRevsNoTorque

Set the following: * revCount = A * revsOnGearChange = revCount * engineTorque = 0 * soundRevTarget = revTarget + 25
.SetRevsNoTorque STA revCount \ Set revCount = A STA revsOnGearChange \ Set revsOnGearChange = A \ Fall through into ZeroEngineTorque to zero \ engineTorque and set soundRevTarget