PR #45: shooter w/o pivot (dev to main) #45

Merged
Irishumanoid merged 106 commits from develop into main 2024-03-02 14:31:31 -06:00
Irishumanoid commented 2024-03-02 11:39:50 -06:00 (Migrated from github.com)
No description provided.
awfulbananas (Migrated from github.com) approved these changes 2024-03-02 12:16:17 -06:00
awfulbananas (Migrated from github.com) left a comment

As long as those pid values are meant to be 0 this looks good to me

As long as those pid values are meant to be 0 this looks good to me
@ -14,0 +122,4 @@
public static final double kP = 0.0;
public static final double kI = 0.0;
public static final double kD = 0.0;
public static final double kTolerance = 1.0;
awfulbananas (Migrated from github.com) commented 2024-03-02 12:13:06 -06:00

Should the PID's have non-0 values?

Should the PID's have non-0 values?
@ -15,2 +14,3 @@
/** Creates a new ExampleSubsystem. */
public Intake() {
m_rollerMotor = new CANSparkMax(IntakeConstants.kMotorID, MotorType.kBrushless);
m_intakeRollerMotor = new CANSparkMax(IntakeConstants.kMotorID, MotorType.kBrushless);
awfulbananas (Migrated from github.com) commented 2024-03-02 12:14:20 -06:00

Probably best to remove this comment

Probably best to remove this comment
cdvdmackey (Migrated from github.com) approved these changes 2024-03-02 12:37:37 -06:00
cdvdmackey (Migrated from github.com) left a comment

overall it looks fine, but having unused vision code with unset constants is not good practice even though there are no triggers for it

overall it looks fine, but having unused vision code with unset constants is not good practice even though there are no triggers for it
cdvdmackey (Migrated from github.com) commented 2024-03-02 12:08:53 -06:00

remove this comment

remove this comment
cdvdmackey (Migrated from github.com) commented 2024-03-02 12:10:26 -06:00

what does this auto do? is it tested.

what does this auto do? is it tested.
@ -0,0 +55,4 @@
case SPEAKER:
desiredAngle = ShooterConfig.kSpeakerAngle;
desiredVelocity = ShooterConfig.speakerVelocity;
// getVelocity(ShooterConfig.SpeakerHeight);
cdvdmackey (Migrated from github.com) commented 2024-03-02 12:15:35 -06:00

more commented stuff we should remove this when possible

more commented stuff we should remove this when possible
@ -12,0 +87,4 @@
public static final double kShooterStowAngle = 0;
public static final long kReleaseTime = 5000;
public static final long kShieldTime = 2; // seconds
cdvdmackey (Migrated from github.com) commented 2024-03-02 12:16:52 -06:00

units, pretty obv its in ms but not the best

units, pretty obv its in ms but not the best
@ -12,0 +97,4 @@
public static final Measure<Angle> kAdjustAmountDegrees = Units.Radians.of(0.5 * Math.PI / 180);
// TODO placeholders
public static final double ampVelocity = 1500; // rpm
cdvdmackey (Migrated from github.com) commented 2024-03-02 12:18:45 -06:00

why are these so low and are they still placeholders and are they being used in the flywheel speed

why are these so low and are they still placeholders and are they being used in the flywheel speed
@ -13,0 +37,4 @@
public static final double camChassisYOffset = -1;
public static final double camChassisZOffset = -1;
public static final double kCameraHeight = -1;
cdvdmackey (Migrated from github.com) commented 2024-03-02 12:20:37 -06:00

why do we have vision files if the constants for them are not even set? if were going to implement during comp we should have these set or written down somewhere

why do we have vision files if the constants for them are not even set? if were going to implement during comp we should have these set or written down somewhere
@ -17,0 +57,4 @@
public static final int kShieldMotorId = 18;
public static final double FlywheelDiameter = 0.0762;
public static final double ShooterLength = 0.4064;
public static final double Gravity = 9.81;
cdvdmackey (Migrated from github.com) commented 2024-03-02 12:21:18 -06:00

arent using this constant anymore

arent using this constant anymore
@ -8,0 +81,4 @@
public void putAngleOnSmartDashboard() {
// display Angle PID coefficients on SmartDashboard
cdvdmackey (Migrated from github.com) commented 2024-03-02 12:24:56 -06:00

confusing method name

confusing method name
@ -17,0 +195,4 @@
} else {
return Math.abs(m_shieldEncoder.getPosition()) < ShooterConfig.kShieldRetractedPosition;
}
}
cdvdmackey (Migrated from github.com) commented 2024-03-02 12:28:31 -06:00

why do we still have both getShieldStatus() and getShieldPosition()

why do we still have both `getShieldStatus()` and `getShieldPosition()`
TurtleMeds (Migrated from github.com) approved these changes 2024-03-02 13:01:29 -06:00
@ -8,0 +29,4 @@
public Vision() {
camera = new PhotonCamera("picam");
TurtleMeds (Migrated from github.com) commented 2024-03-02 12:57:49 -06:00

Why are we messing with vision code right now if we aren't using it?

Why are we messing with vision code right now if we aren't using it?
ChainedGCH (Migrated from github.com) reviewed 2024-03-02 13:07:32 -06:00
@ -0,0 +1,67 @@
package frc.robot.commands;
ChainedGCH (Migrated from github.com) commented 2024-03-02 12:53:44 -06:00

Do we not have a vision commands folder?

Do we not have a vision commands folder?
@ -12,0 +38,4 @@
// top Flywheel controller PID coefficients
public static final double kTopFlywheelP = 0.2;
public static final double kTopFlywheelI = 0;
ChainedGCH (Migrated from github.com) commented 2024-03-02 13:03:02 -06:00

Are these values tuned?

Are these values tuned?
cdvdmackey (Migrated from github.com) reviewed 2024-03-02 13:09:36 -06:00
@ -14,0 +122,4 @@
public static final double kP = 0.0;
public static final double kI = 0.0;
public static final double kD = 0.0;
public static final double kTolerance = 1.0;
cdvdmackey (Migrated from github.com) commented 2024-03-02 13:09:36 -06:00

yep

yep
continuumsrc (Migrated from github.com) reviewed 2024-03-02 13:20:36 -06:00
@ -14,0 +122,4 @@
public static final double kP = 0.0;
public static final double kI = 0.0;
public static final double kD = 0.0;
public static final double kTolerance = 1.0;
continuumsrc (Migrated from github.com) commented 2024-03-02 13:20:36 -06:00

Anything related to vision is unused so 0 pid constants on those is probably fine.

Anything related to vision is unused so 0 pid constants on those is probably fine.
Irishumanoid (Migrated from github.com) reviewed 2024-03-02 13:30:01 -06:00
@ -12,0 +38,4 @@
// top Flywheel controller PID coefficients
public static final double kTopFlywheelP = 0.2;
public static final double kTopFlywheelI = 0;
Irishumanoid (Migrated from github.com) commented 2024-03-02 13:30:01 -06:00

yes

yes
Irishumanoid (Migrated from github.com) reviewed 2024-03-02 13:30:21 -06:00
@ -0,0 +1,67 @@
package frc.robot.commands;
Irishumanoid (Migrated from github.com) commented 2024-03-02 13:30:21 -06:00

not necessary, but could add later

not necessary, but could add later
Irishumanoid (Migrated from github.com) reviewed 2024-03-02 13:32:28 -06:00
Irishumanoid (Migrated from github.com) commented 2024-03-02 13:32:28 -06:00

none are tested but this one just leaves

none are tested but this one just leaves
cdvdmackey (Migrated from github.com) reviewed 2024-03-02 14:18:45 -06:00
@ -15,2 +14,3 @@
/** Creates a new ExampleSubsystem. */
public Intake() {
m_rollerMotor = new CANSparkMax(IntakeConstants.kMotorID, MotorType.kBrushless);
m_intakeRollerMotor = new CANSparkMax(IntakeConstants.kMotorID, MotorType.kBrushless);
cdvdmackey (Migrated from github.com) commented 2024-03-02 14:18:45 -06:00

yep we should but as long as its commented were keeping it

yep we should but as long as its commented were keeping it
cdvdmackey (Migrated from github.com) reviewed 2024-03-02 14:26:19 -06:00
@ -12,0 +87,4 @@
public static final double kShooterStowAngle = 0;
public static final long kReleaseTime = 5000;
public static final long kShieldTime = 2; // seconds
cdvdmackey (Migrated from github.com) commented 2024-03-02 14:26:18 -06:00

It doesn't affect the functionality of the code so it should be fine right now

It doesn't affect the functionality of the code so it should be fine right now
cdvdmackey (Migrated from github.com) reviewed 2024-03-02 14:27:39 -06:00
@ -12,0 +97,4 @@
public static final Measure<Angle> kAdjustAmountDegrees = Units.Radians.of(0.5 * Math.PI / 180);
// TODO placeholders
public static final double ampVelocity = 1500; // rpm
cdvdmackey (Migrated from github.com) commented 2024-03-02 14:27:39 -06:00

These are the correct values. Although they are pretty weird.

These are the correct values. Although they are pretty weird.
Sign in to join this conversation.
No description provided.