Skip to content

Commit

Permalink
added new ticks
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver-Cushman committed Jan 27, 2024
1 parent 5c2c722 commit 2a05d40
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
9 changes: 8 additions & 1 deletion src/main/java/frc/robot/subsystems/Shooter.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,16 @@ public void configMotors() {

}

public void tick() {
motorLeft.tick();
motorRight.tick();
}

@Override
public void periodic() {
// This method will be called once per scheduler run
if (FieldConstants.IS_SIMULATION) {
tick();
}
}

public Command shoot(Pose2d position, boolean shootingAtSpeaker) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/util/MAXSwerveModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import frc.robot.util.Constants.FieldConstants;
import frc.robot.util.Constants.ModuleConstants;

public class MAXSwerveModule extends Flex{
public class MAXSwerveModule {
private final Neo drivingSpark;
private final Neo turningSpark;

Expand Down
1 change: 0 additions & 1 deletion src/main/java/frc/robot/util/Neo.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public class Neo extends CANSparkMax {
private double targetVelocity = 0;
private double targetPercent = 0;

private boolean isFlex;
/**
* Creates a new Neo motor
* @param id CANID of the SparkMax the Neo is connected to.
Expand Down

0 comments on commit 2a05d40

Please sign in to comment.