Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
autoshift mod
01-21-2010, 06:39 AM,
#1
autoshift mod
Hey Joe,
I think I've solved the problem with blocking wheels during downshift into (first) gear.
I modified ShiftAutoClutchThrottle to apply throttle/declutch on downshift to match driveshaft rpm. Like if it's an unsynchronised gearbox.
Code:
float CAR::ShiftAutoClutchThrottle(float throttle, float dt)
{
    if(remaining_shift_time > 0.0)
    {
        const float erpm = dynamics.GetEngine().GetRPM();
        const float crpm = dynamics.CalculateDriveshaftRPM();
        if(erpm < crpm)
        {
            remaining_shift_time += dt;
           return 1.0;
        }
        else
        {
            return 0.0;
        }
    }
    return throttle;
}
Have tested it with the GT40 on Laguna Seca, had no downshift induced problems. Managed to drive a 1:52 using the keyboard. :lol:
I have to clean up the code a bit before committing.
Reply
01-21-2010, 11:57 PM,
#2
 
Sounds good. The throttle blip code that was there before was trying to do that, but obviously it wasn't doing a very good job. :-)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)