Skip to content

Comments

Added Aim and Shoot Command#37

Open
amukh0 wants to merge 5 commits intomainfrom
anshu-commands
Open

Added Aim and Shoot Command#37
amukh0 wants to merge 5 commits intomainfrom
anshu-commands

Conversation

@amukh0
Copy link
Contributor

@amukh0 amukh0 commented Feb 14, 2026

Tested in simulator and seems to work

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;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants