Skip to content

Commit

Permalink
Update Hanger.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Zr6573 committed Feb 2, 2024
1 parent 74e0c39 commit d1ed868
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/main/java/frc/robot/subsystems/Hanger.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package frc.robot.subsystems;

import com.ctre.phoenix6.hardware.CANcoder;
import com.revrobotics.CANSparkMax;
import com.revrobotics.CANSparkLowLevel.MotorType;

import edu.wpi.first.wpilibj2.command.SubsystemBase;


public class Hanger extends SubsystemBase {

private final CANSparkMax hangerMotor;
private final CANcoder hangerEncoder;
int hangerMotorID;
int hangerEncoderID;

public Hanger() {
hangerMotor = new CANSparkMax(hangerMotorID, MotorType.kBrushless);
hangerEncoder = new CANcoder(hangerEncoderID);
}

@Override
public void periodic() {

}

}

0 comments on commit d1ed868

Please sign in to comment.