|
Re: Automatic 2 Speed Drivetrain Shifting Code
Quote:
Originally Posted by BradenWatling
The way that we were able to distinguish between driving straight and rotating was by taking the average encoder rate. This way when you turn, rate will be around 0 and would shift to low gear.
|
Makes sense. I'm curious, how long / how many samples did you use for calculating the average?
__________________
All opinions are my own.
|