SmartDashboard.putNumber("CRT thing out", Units.rotationsToDegrees(turretRotations));
double motorRotations = turretRotations * TurretConstants.TURRET_GEAR_RATIO;
- // motor.setPosition(motorRotations);
+ motor.setPosition(motorRotations);
// Position extrapolation
public static double TURRET_RADIUS = TURRET_WIDTH / 2;
public static double TURRET_TEETH_COUNT = 140.0; // the turret teeth count
- public static double TURRET_GEAR_RATIO = 38.81818182;
+ public static double TURRET_GEAR_RATIO = 30.545454;
public static int LEFT_ENCODER_TEETH = 15; // gear teeth
public static int RIGHT_ENCODER_TEETH = 22; // read above
public static int ENCODER_COUNT_TOTAL = 8192; // how many intervals it can have, like clicks on a clock chat gpt explained to me