Skip to content

Armaan cooler branch for climb - #14

Open
armaanwithadouble-a wants to merge 51 commits into
mainfrom
armaanCoolerBranch_forClimb
Open

Armaan cooler branch for climb#14
armaanwithadouble-a wants to merge 51 commits into
mainfrom
armaanCoolerBranch_forClimb

Conversation

@armaanwithadouble-a

Copy link
Copy Markdown
Collaborator

added talonfx code for telescopic arm

methods:

moveToScoringHeight, moveToTarget, isNearTarget,

dcao6668 and others added 30 commits October 10, 2025 21:46
AND ALSO FIXED PID TO POSE FOR REALS WOOHOO

@github-0-0 github-0-0 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

So we're going to eventually add END_EFFECTOR_HEIGHT back, bc the height of the climber is a variable we want to control

null, // Default step voltage (7 V)
null, // Use default timeout (10 s)
// Log state with SignalLogger class
state -> SignalLogger.writeString("SysIdElevator_State", state.toString())

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Remove this

Suggested change
state -> SignalLogger.writeString("SysIdElevator_State", state.toString())

),
new SysIdRoutine.Mechanism(
output -> request.withOutput(output),
null,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
null,
log -> {
log.motor("climbMotor")
.voltage(Volts.of(request.Output))
.linearPosition(
Meters.of(
rotationsToMeters(
climbMotor.getPosition().getValueAsDouble())))
.linearVelocity(
MetersPerSecond.of(
rotationsToMeters(climbMotor.getVelocity().getValueAsDouble())));
},

Correct sysid code


public static final double SPROCKET_RADIUS = 0.0412; // Effective pitch radius
public static final double GEAR_RATIO = 9;
public static final double SPROCKET_CIRCUMFERENCE = SPROCKET_RADIUS * Constants.TAU;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lowk this is kinda annoying to work with btw we're going to change this in the future once i get around to it

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.

7 participants