Session4 - #6
Open
npatrick04 wants to merge 4 commits into
Open
Conversation
OwenPatrik
approved these changes
Sep 6, 2026
OwenPatrik
left a comment
There was a problem hiding this comment.
Its good. I dont know anything about opmodes so i will assume all of that is correct
drewwhis
reviewed
Sep 8, 2026
| - a control button/axis map is coordinated with the team (drive team if available) | ||
|
|
||
| Each op mode will be defined in an individual file. | ||
| To create an OpMode, create a class that *implements* `OpMode`, and place one of the following decorators on the line before the class definition: `@Teleop`, `@Autonomous`, or `@Utility`. |
Member
There was a problem hiding this comment.
the last time I tried an OpMode that implemented OpMode, I couldn't get it to show in the DS. I had to do an OpMode that extended OpModePeriodic - I can double check that today
drewwhis
reviewed
Sep 8, 2026
| We will add a counter that increments when the UtilityTest mode is enabled, and resets to zero any time the op mode is not enabled. | ||
| First, we add some variables inside the UtilityTest class: | ||
| ```java | ||
| private Robot robot; |
Member
There was a problem hiding this comment.
I would advocate for robot being marked final because I think that's the idiom we've generally followed for other injected parameters
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
I added session 4 content.
I noticed that Alerts have a prominent position in the 2027 driver station, however setting Alerts doesn't seem to do anything. There are some feature requests out for 2027 to improve that, though perhaps I just haven't found the right API.