Open
Conversation
blaze-developer
requested changes
Feb 15, 2026
Comment on lines
30
to
59
| public static final double shooterkP = 0.5; | ||
| public static final double shooterkI = 0.0; | ||
| public static final double shooterkD = 0.0; | ||
| public static final double shooterkV = 0.0; | ||
| public static final double shooterkA = 0.0; | ||
| public static final double shooterkG = 0.0; | ||
| public static final double shooterkS = 0.0; | ||
|
|
||
| public class MotionMagic { | ||
| // hood | ||
| public static final double hoodkP = 0.0; | ||
| public static final double hoodkI = 0.0; | ||
| public static final double hoodkD = 0.0; | ||
| public static final double hoodkV = 0.0; | ||
| public static final double hoodkA = 0.0; | ||
| public static final double hoodkG = 0.0; | ||
| public static final double hoodkS = 0.0; | ||
| } | ||
|
|
||
| // shooter | ||
| public static final double shooterkMaxVelocity = 1000.0; | ||
| public static final double shooterkMaxAcceleration = 3000.0; | ||
| public static final double shooterkJerk = 0.0; | ||
| } | ||
| public class MotionMagic { | ||
|
|
||
| // shooter | ||
| public static final double shooterkMaxVelocity = 0.0; | ||
| public static final double shooterkMaxAcceleration = 300.0; | ||
| public static final double shooterkJerk = 0.0; | ||
|
|
||
| // hood | ||
| public static final double hoodkMaxVelocity = 0.0; | ||
| public static final double hoodkMaxAcceleration = 300.0; | ||
| public static final double hoodkJerk = 0.0; | ||
| } |
Collaborator
There was a problem hiding this comment.
Why do these change? The shooter has been tuned based on the real life shooter, did you accidentally leave in some constants?
| ? ShooterConstants.Positions.blueHubPose | ||
| : ShooterConstants.Positions.redHubPose; | ||
|
|
||
| var hubTranslation = drivebase_.getPose().getTranslation().minus(hub); |
Collaborator
There was a problem hiding this comment.
Right now the simulator seems to point in the exact opposite direction of the hub, you can try it out to check this, but maybe you could fix it by swapping the direction of this subtraction, and subtracting the drivebase pose from the hub pose, making the transformation be from the robot to the hub, not from the hub to the robot.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tested in simulator and seems to work