Here's the GitHub page.
The code I'm talking about would be in these classes:
- Robot
- OI
- subsystems/Shooter
- commands/ShooterArcade
- commands/ShooterIdle.
Here's a part of the ShooterArcade class:
Code:
public class ShooterArcade extends Command {
OI oi;
Shooter shooter;
public ShooterArcade() {
requires(Robot.shooter);
shooter = Robot.shooter;
oi = Robot.oi;
}
// Called just before this Command runs the first time
protected void initialize() {
}
// Called repeatedly when this Command is scheduled to run
protected void execute() {
double shooterSpeed = oi.getShooterThrottle();
shooter.shooterArcade(shooterSpeed);
}
// Make this return true when this Command no longer needs to run execute()
protected boolean isFinished() {
return true;
}
If you need more info feel free to ask.
