Commit b54b5fb 1 parent 93450d3 commit b54b5fb Copy full SHA for b54b5fb
File tree 2 files changed +10
-11
lines changed
2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -45,9 +45,11 @@ public class Robot extends TimedRobot {
45
45
46
46
// subsystems
47
47
@ Logged (name = "Swerve" )
48
- private Swerve _swerve = TunerConstants .createDrivetrain ();
48
+ private final Swerve _swerve = TunerConstants .createDrivetrain ();
49
49
50
- private Command _autonomousCommand = Autos .none ();
50
+ private final Autos _autos = new Autos (_swerve );
51
+
52
+ private Command _autonomousCommand = none ();
51
53
52
54
private final NetworkTableInstance _ntInst ;
53
55
Original file line number Diff line number Diff line change 4
4
5
5
package frc .robot .commands ;
6
6
7
- import static edu . wpi . first . wpilibj2 . command . Commands .* ;
7
+ import frc . robot . subsystems . Swerve ;
8
8
9
- import edu .wpi .first .wpilibj2 .command .Command ;
9
+ public class Autos {
10
+ private final Swerve _swerve ;
10
11
11
- public final class Autos {
12
- private Autos () {
13
- throw new UnsupportedOperationException ("This is a utility class!" );
12
+ public Autos (Swerve swerve ) {
13
+ _swerve = swerve ;
14
14
}
15
15
16
- /** An auto that doesn't do anything for 15 sec. */
17
- public static Command none () {
18
- return idle ();
19
- }
16
+ // TODO: add a simple path example
20
17
}
You can’t perform that action at this time.
0 commit comments