motorcycle 6MT(rotary&return)
A microcontroller and sample vehicle for a 6-speed MT with gear animation for motorcycles.
Gears are 6 forward speeds and neutral.
There are two sets of sample vehicles.
Red... Rotary type. N-1-2-3-4-5-6-N-1-2...
Green... Return type. 1-N-2-3-4-5-6
AD... Handle
W... Throttle
S... Engine brake
Space... Brake
↑↓... Shift operation
←+W... Half-clutch
anime offsetx,offsety: Moves the gear animation display position
gear anime speed: Gear rotation speed
3rd gear Reduction ratio: Reduction ratio in 3rd gear (Sample vehicle is 2)
Within LUA:
① Line 56 ssC(255,60,0) sets the color of the active gear's teeth
② Line 58 ssC(255,40,0) sets the color of the active dog clutch
You can set it to any color by changing the RGB values.
if x==301 then--active gear
ssC(255,60,0)←①
elseif x==302 then--dog clutch
ssC(255,40,0)←②
else
end