diff --git a/examples/stage1/stage1b/snippets/src/main/java/sources/CommandBasedKitbot.java b/examples/stage1/stage1b/snippets/src/main/java/sources/CommandBasedKitbot.java index ead7c6ff..f98703d0 100644 --- a/examples/stage1/stage1b/snippets/src/main/java/sources/CommandBasedKitbot.java +++ b/examples/stage1/stage1b/snippets/src/main/java/sources/CommandBasedKitbot.java @@ -35,7 +35,7 @@ class MyTeleop extends PeriodicOpMode { // [triggerBindingDef] public MyTeleop(Robot robot) { - xbox.leftBumper().whileTrue(robot.intake.intake()).whileTrue(robot.feeder.intake()); + xbox.leftBumper().whileTrue(robot.intakeLauncher.intake()).whileTrue(robot.feeder.intake()); // now fill in the rest... } @@ -59,7 +59,7 @@ Command intake() { } class Robot { - ExampleMechanism intake = new ExampleMechanism(); + ExampleMechanism intakeLauncher = new ExampleMechanism(); ExampleMechanism feeder = new ExampleMechanism(); } diff --git a/src/content/docs/learning-course/stage1/stage1b/command-based-kitbot.mdx b/src/content/docs/learning-course/stage1/stage1b/command-based-kitbot.mdx index 0c76b472..bc601839 100644 --- a/src/content/docs/learning-course/stage1/stage1b/command-based-kitbot.mdx +++ b/src/content/docs/learning-course/stage1/stage1b/command-based-kitbot.mdx @@ -162,11 +162,11 @@ create a private `CommandXboxController` instance named `xbox`. In your opmode constructor, define the following behavior: 1. While the `xbox.leftBumper()` trigger is active, - run the `robot.intake.intake()` and `robot.feeder.intake()` commands. + run the `robot.intakeLauncher.intake()` and `robot.feeder.intake()` commands. 2. While the `xbox.rightBumper()` trigger is active, - run the `robot.intake.shoot()` and `robot.feeder.feed()` commands. + run the `robot.intakeLauncher.shoot()` and `robot.feeder.feed()` commands. 3. While the `xbox.a()` trigger is active, - run the `robot.intake.outtake()` and `robot.feeder.outtake()` commands. + run the `robot.intakeLauncher.outtake()` and `robot.feeder.outtake()` commands.
Hint