Skip to content

Commit

Permalink
renamed constants
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonS09 committed Mar 3, 2024
1 parent 94e9c83 commit ee7d0b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/carlmontrobotics/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public static final class Arm {
public static final int ARM_MOTOR_PORT_MASTER = 7;
public final static int ARM_MOTOR_PORT_FOLLOWER = 8;
//Config for motors
public static final boolean MOTOR_INVERTED_1 = true; //Todo: find all these (they are definetely wrong)
public static final boolean MOTOR_INVERTED_2 = false;
public static final boolean MOTOR_INVERTED_MASTER = true; //Todo: find all these (they are definetely wrong)
public static final boolean MOTOR_INVERTED_FOLLOWER = false;
public static final double ROTATION_TO_RAD = 2 * Math.PI;
public static final boolean ENCODER_INVERTED = false;
public static final double ARM_TELEOP_MAX_GOAL_DIFF_FROM_CURRENT_RAD = 0;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/carlmontrobotics/subsystems/Arm.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ public class Arm extends SubsystemBase {

public Arm() {
// weird math stuff
armMotorMaster.setInverted(MOTOR_INVERTED_1);
armMotorMaster.setInverted(MOTOR_INVERTED_MASTER);
armMotorMaster.setIdleMode(IdleMode.kBrake);
armMotorFollower.setInverted(MOTOR_INVERTED_2);
armMotorFollower.setInverted(MOTOR_INVERTED_FOLLOWER);
armMotorFollower.setIdleMode(IdleMode.kBrake);

armMasterEncoder.setPositionConversionFactor(ROTATION_TO_RAD);
Expand Down

0 comments on commit ee7d0b7

Please sign in to comment.