Skip to content

Commit

Permalink
add constant for motor speed
Browse files Browse the repository at this point in the history
  • Loading branch information
ss0g committed Jan 13, 2022
1 parent d7f0f34 commit 11fcec6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/java/com/spartronics4915/frc/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
public final class Constants
{
public static final int kTestMotorId = 1;
public static final double kTestMotorSpeed = 0.3;
}
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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.
Expand Down

0 comments on commit 11fcec6

Please sign in to comment.