Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…Code2024 into sofie-arm
  • Loading branch information
sofiebudman committed Mar 2, 2024
2 parents 23581c6 + 26f86ef commit 8a91064
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/org/carlmontrobotics/subsystems/Arm.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class Arm extends SubsystemBase {
// a boolean meant to tell if the arm is in a forbidden posistion AKA FORBIDDEN FLAG

private final CANSparkMax armMotor1 = MotorControllerFactory.createSparkMax(ARM_MOTOR_PORT_1, MotorConfig.NEO);
private final CANSparkMax armMotor2 = MotorControllerFactory.createSparkMax(ARM_MOTOR_PORT_2, MotorConfig.NEO)
private final CANSparkMax armMotor2 = MotorControllerFactory.createSparkMax(ARM_MOTOR_PORT_2, MotorConfig.NEO);
private final RelativeEncoder armEncoder = armMotor1.getEncoder();


Expand All @@ -71,6 +71,9 @@ public Arm() {
armEncoder.setVelocityConversionFactor(rotationToRad);
armEncoder.setInverted(encoderInverted);

armMotor2.follow(armMotor1);

//armEncoder1.setZeroOffset(offsetRad);

//armPID.setTolerance(posToleranceRad, velToleranceRadPSec);

Expand Down

0 comments on commit 8a91064

Please sign in to comment.