-
Notifications
You must be signed in to change notification settings - Fork 634
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
[design-docs] Add modes design doc #7863
Open
PeterJohnson
wants to merge
15
commits into
wpilibsuite:2027
Choose a base branch
from
PeterJohnson:opmode-design-doc
base: 2027
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+721
−0
Open
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
be29384
[design-docs] Add modes design doc
PeterJohnson f16cdf9
Improve command autos example a bit
PeterJohnson 6538754
Wrap loadComplexPath function call in a runOnce
PeterJohnson f065a6d
Add some trades
PeterJohnson 40c555c
Add trade re: command-based modes
PeterJohnson 5398df7
Tweak wording
PeterJohnson 32f436d
Various text cleanups
PeterJohnson 88f4dbc
Add start of migration guides with list of key differences
PeterJohnson 80878e2
Change all "category" to "group" for consistency
PeterJohnson 2d80cbd
Uppercase XML
PeterJohnson 85d39eb
Split command-based to separate document
PeterJohnson b93df8e
Rename commandbased-modes to modes-commandbased
PeterJohnson cd3009a
Move factory functions back to CommandModes
PeterJohnson 4c83fb8
Commandbased: Refactor mode creation into functions
PeterJohnson 0e4b632
Improve/simplify non-command example code
PeterJohnson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add some trades
commit f065a6d947f07ec2b3ac712dfc826139dd462bc8
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The setting a default question is captured here as an unresolved one. One issue is it's not obvious how it will work with annotations. We'd also definitely have to work through all the same scenarios as dashboard sendable choosers re: when the default actually gets used... is it only when the DS is first started? What about if the DS is an app or a physical device?
Maybe it might be better to have an annotation option to make some options bold/highlighted? Or even allow setting a color code to make it more visually distinct?
We also might want different behavior for match vs non-match mode?
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.
The main difference between sendable choosers and integrated into the DS is that the one integrated into the DS will always be there. So does the default force change the DS? When does it do this? When the DS first starts? Every time code reboots? Every time the robot disconnects? Theres a lot more edge cases here. The only time the DS won't have a selection is the first time a project connects to the DS. Otherwise, the DS will always have something, and I feel like that being changed arbitrarily seems like it'd be more of a footgun then it should be.
Agreed that bolding/highlighting is a good idea.