Skip to content

Stage 1A - Auto/Timer #269

Description

@DylanB5402

Which page?
https://frcsoftware.org/learning-course/stage1/stage1a/simple-auto/#autonomous-opmode

What's wrong?
We should add a codeblock showing how to construct a Timer object since students haven't encountered that until this part. Specify that they need to import the WPILib timer class, not any of the other Timers.

We also need to call autoTimer.restart() for the auto opmode to actually work, this isn't specified currently:

  @Override
  public void start() {
    /* Called once when the robot is enabled. */
    autoTimer.restart();
  }

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions