Quote:
Originally posted by f22flyboy
p1_sw_top_prev=p1_sw_top
I see that it sets p1_sw_top_prev=0 but why not just say that?
|
The gear_count is a delay to prevent damage to the gearbox and I think the p1_sw_top_prev=p1_sw_top resets the input and as for not setting it equal to zero, the button may not have started in the zero (off) position.
Anyway, Rob will be back in an hour and explain everything.