Skip to content

Session4 - #6

Open
npatrick04 wants to merge 4 commits into
mainfrom
session4
Open

Session4#6
npatrick04 wants to merge 4 commits into
mainfrom
session4

Conversation

@npatrick04

Copy link
Copy Markdown
Member

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.

@OwenPatrik OwenPatrik left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its good. I dont know anything about opmodes so i will assume all of that is correct

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

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;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would advocate for robot being marked final because I think that's the idiom we've generally followed for other injected parameters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants