Skip to content

Commit

Permalink
changed constants values for testing, remove turret rotate encoder li…
Browse files Browse the repository at this point in the history
…mit and changed to half of forward rotate limit for intake
  • Loading branch information
CooperNelson16 authored and mray190 committed Sep 14, 2022
1 parent f26bab3 commit fdfcc6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Competition/src/main/cpp/subsystems/Shooter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ void Shooter::assessInputs()
}

//Turret
if (feederTable->GetNumber("Intake Encoder Value", 0) > ShooterConstants::turretRotateIntakeThreshold) {
if (feederTable->GetNumber("Intake Encoder Value", 0) < FeederConstants::rotateForwardLimit / 2) {
if (turretEncoder.GetPosition() > ShooterConstants::homePositionMid) {
state.turretState = TurretState::TURRET_HOME_LEFT;
}
Expand Down
3 changes: 1 addition & 2 deletions Competition/src/main/include/Constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ namespace ShooterConstants{
constexpr static double turretLimitRight = 0 - 7;

constexpr static double turretRotateLiftThreshold = 20000; // lowered from 64500
constexpr static double turretRotateIntakeThreshold = 829.63; //set to intake rotate up threshold

constexpr static double hubX = 0;
constexpr static double hubY = 0;
Expand Down Expand Up @@ -270,7 +269,7 @@ namespace FeederConstants{
constexpr static double main_KI = 0.0;
constexpr static double main_KP = 0.1;

constexpr static double MAIN_MOTION_CRUISE_VELOCITY = 50;
constexpr static double MAIN_MOTION_CRUISE_VELOCITY = 4000;
constexpr static double MAIN_MOTION_ACCELERATION = MAIN_MOTION_CRUISE_VELOCITY * 1;


Expand Down

0 comments on commit fdfcc6e

Please sign in to comment.