-
Notifications
You must be signed in to change notification settings - Fork 63
[choreolib] AutoChooser Fixes and Sim behavior changes #1057
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
Conversation
|
The |
Going from disconnected to auto in sim will quick load the auto
selected getter and added .instance for elastic|
|
||
| // private final StringEntry selected, active; | ||
| // private final StringArrayEntry options; | ||
| private int allianceId = -1; |
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.
Why use a number here?
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.
For easier comparison
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.
What is wrong with using .equals() with the return value of DriverStation.getAlliance()? As per Optional's documentation:
Indicates whether some other object is "equal to" this Optional. The other object is considered equal if:
- it is also an Optional and;
- both instances have no value present or;
- the present values are "equal to" each other via equals().
Makes changing alliance while disabled re-evaluate command creator
Makes going from disconnect->auto in sim quick load the auto then run it
Prevents a crash from composition going between enabled and disconnected
Fix an issue with
selectedin the sendables api being set when it shouldn'tAdded
.instanceto work with elastic