-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from LakotaRobotics1038/10-acquire-all-sides-c…
…ommand-skeleton Acquire all sides command skeleton complete
- Loading branch information
Showing
3 changed files
with
47 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package frc.robot.commands; | ||
|
||
import edu.wpi.first.wpilibj2.command.Command; | ||
import frc.robot.subsystems.Acquisition; | ||
|
||
public class AcquireCommand extends Command { | ||
private static Acquisition acquisition = Acquisition.getInstance(); | ||
|
||
private double speed; | ||
|
||
public AcquireCommand(double speed) { | ||
addRequirements(acquisition); | ||
this.speed = speed; | ||
} | ||
|
||
@Override | ||
public void execute() { | ||
acquisition.acquire(speed); | ||
} | ||
|
||
@Override | ||
public boolean isFinished() { | ||
// TODO: update with sensors | ||
return false; | ||
} | ||
|
||
@Override | ||
public void end(boolean interrupted) { | ||
acquisition.stop(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
package frc.robot.constants; | ||
|
||
public class AcquisitionConstants { | ||
public static final int rearMotorPort = -1; | ||
public static final int frontMotorPort = -1; | ||
public static final int motorPort = -1; | ||
|
||
public static final double motorSpeed = 0.0; | ||
public static final double reverseMotorSpeed = 0.0; | ||
public static final double maxMotorSpeed = 1; | ||
public static final double minMotorSpeed = -1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters