|
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.
|