View Single Post
  #7   Spotlight this post!  
Unread 12-12-2012, 22:58
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: Implementing a switchable control scheme

If you want that sort of functionality (on-the-fly) there are three options I can think of.

1. Update scheme periodically (lots of bandwidth - we did this last year and it was a bad idea)

2. Making a dashboard static widget that sends data through NetworkTable to the code and have your code adjust only when that data is sent. (I wouldn't know where to start on this kind of implementation - if you figure it out, PM me. We're looking at doing this)

3. Have a button on the joystick change schemes (ex. back button on xbox controller). No extra bandwidth required. (well, minute compared to smartdashboard)

My recommendation for less work though it to have it update every time teleop starts. It may cause some frustrations testing, but during competition I would hope you don't switch schemes mid-match.
__________________
All opinions are my own.