SHIFT_TIME=0.2 ; time in seconds for actual gears to shift, not for the gearbox to decide to shift -- This function receives current gear index (2 for first gear) and returns an index of the target ...