From 879280bcf7abb2f21c6d4886bbb89ce640e478ae Mon Sep 17 00:00:00 2001 From: Veyrdite Date: Fri, 23 Jul 2021 18:18:29 +1000 Subject: [PATCH] Add comment about cause of throttle pulsing when reversing. --- src/vehicles/Transmission.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vehicles/Transmission.cpp b/src/vehicles/Transmission.cpp index 1aeabfe0..1dff2b30 100644 --- a/src/vehicles/Transmission.cpp +++ b/src/vehicles/Transmission.cpp @@ -55,6 +55,8 @@ cTransmission::CalculateGearForSimpleCar(float speed, uint8 &gear) } } +/* This function causes 'pulsing' of throttle when reversing at max speed. You + * can most easily observe this when the framelimiter is enabled.*/ float cTransmission::CalculateDriveAcceleration(const float &gasPedal, uint8 &gear, float &time, const float &velocity, bool cheat) {