-
Notifications
You must be signed in to change notification settings - Fork 1
feat: dynamic controller switching #88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
not the linting 💀 |
I gotta admit, this feels a little excessive. I think all that we really need is changing the controller checking to default to an xbox controller in sim. In a case where we need to use test mode, I expect that we'll likely be changing code as well, so it's not a big deal to need to redeploy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking pretty good. I'd like to see some testing where we determine that there aren't going to be any edge cases, and I want to see that if we have a random disconnect it'll automatically pick the controllers back up. Also, merge main into this. After I see that testing, this should be good to go.
if (Constants.IOConstants.kTestMode) { | ||
System.out.println("Test Mode Enabled\nNot for competition use"); | ||
} | ||
this.m_robotContainer.updateControllerConnections(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idk how I feel about this calling every single control loop. That feels maybe excessive.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you can demonstrate it doesn't make an impact tho I'm fine with it.
if (Constants.IOConstants.kTestMode) { | ||
System.out.println("Test Mode Enabled\nNot for competition use"); | ||
} | ||
this.m_robotContainer.updateControllerConnections(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you can demonstrate it doesn't make an impact tho I'm fine with it.
No description provided.