diff --git a/src/main/java/com/spartronics4915/frc/Constants.java b/src/main/java/com/spartronics4915/frc/Constants.java index 9e22c12..4d3c02d 100644 --- a/src/main/java/com/spartronics4915/frc/Constants.java +++ b/src/main/java/com/spartronics4915/frc/Constants.java @@ -12,4 +12,5 @@ public final class Constants { public static final int kTestMotorId = 1; + public static final double kTestMotorSpeed = 0.3; } diff --git a/src/main/java/com/spartronics4915/frc/commands/ExampleCommand.java b/src/main/java/com/spartronics4915/frc/commands/ExampleCommand.java index 4796a87..e82b193 100644 --- a/src/main/java/com/spartronics4915/frc/commands/ExampleCommand.java +++ b/src/main/java/com/spartronics4915/frc/commands/ExampleCommand.java @@ -1,5 +1,6 @@ package com.spartronics4915.frc.commands; +import com.spartronics4915.frc.Constants; import com.spartronics4915.frc.subsystems.ExampleSubsystem; import edu.wpi.first.wpilibj2.command.CommandBase; @@ -25,7 +26,7 @@ public ExampleCommand(ExampleSubsystem subsystem) // Called when the command is initially scheduled. @Override public void initialize() { - mExampleSubsystem.startTestMotor(1); + mExampleSubsystem.startTestMotor(Constants.kTestMotorSpeed); } // Called every time the scheduler runs while the command is scheduled.