function displaytext() { return '[' + ab[I-1][0] + ', ' + ab[I-1][1] + '], midpoint = ' + midpts[I-1]; } fstr = {'@(t) t', '@(t) f(ab[I-1][0]) + (f(ab[I-1][1]) - f(ab ...
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 ...