Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
added driveStraight procedure to demonstrate for programming rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
qntmcube committed Sep 25, 2024
1 parent a65527c commit e110a3a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ public class AutonomousModes {
// define one or more different autonomous modes with it like this:
// new AutonomousMode("DriveFast", () -> new DriveStraight(1.0)),
// new AutonomousMode("DriveSlow", () -> new DriveStraight(0.4)),


new AutonomousMode("DriveStraight", () -> new DriveStraight()),
new AutonomousMode("DoNothing", () -> new DoNothing()),
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.team766.robot.burro_arm.procedures;

import com.team766.framework.Context;
import com.team766.framework.Procedure;
import com.team766.robot.burro_arm.Robot;

public class DriveStraight extends Procedure {
public void run(Context context) {
Robot.drive.drive(0.5, 0);
context.waitForSeconds(3);
Robot.drive.stopDrive();
}
}

0 comments on commit e110a3a

Please sign in to comment.