|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#5
|
|||
|
|||
|
Re: Shifting Transmission: Auto or Manual?
We (1024) used auto-shifting successfully this year.
We used super-shifters. I'm fairly certain that they were modified somehow, but I'm not sure. Anyway, about the programming: I set a threshold to shift up (4 ft/s), and a threshold to shift down (3 ft/s). The purpose of having 2 different thresholds was to avoid flickering if we were driving right about at the threshold. To handle any static/outliers (which were a problem) I took an average of the last 10 readings on a 20ms interval. Now, I was taking these readings on both the left and the right side. At different times I used either
The average has the advantage that it implicitly handles the condition of turning; since the signs of each are switched they average to something close to 0. However, early in the season we had problems with one of the encoders failing, dragging the average down, and keeping the bot in low gear. So I took the maximum of the two. Now, I also had buttons for the driver to force low, or force high. They were used, but most of the time the autoshifter did the right thing. Code:
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|