View Single Post
  #4   Spotlight this post!  
Unread 22-03-2013, 20:56
joelg236 joelg236 is offline
4334 Retired Mentor & Alumni
AKA: Joel Gallant
no team
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Calgary
Posts: 733
joelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond repute
Re: Automatic 2 Speed Drivetrain Shifting Code

Quote:
Originally Posted by BradenWatling View Post
Here is how we implemented auto shifting this year. It seemed to work well but we decided we wanted to be able to manually control our shifting due to interlocking that we implemented between the chassis and other systems.

https://github.com/runnymederobotics...b232a55ebd?w=1
How did you determine Constants.AUTO_SHIFT_UP_THRESHOLD to be 0.9 and Constants.AUTO_SHIFT_DOWN_THRESHOLD to be 0.5? Just trial and error?

Also why did you multiply Constants.AUTO_SHIFT_DOWN_THRESHOLD.get() * Constants.CHASSIS_MAX_LOW_ENCODER_RATE.get() ?

The code makes sense, but I don't think it does exactly what we'd like. Thanks for sharing though.
__________________
All opinions are my own.