Skip to content

Conversation

@Tejshah88
Copy link
Contributor

No description provided.

@Tejshah88 Tejshah88 requested a review from a team as a code owner August 16, 2025 23:14
@TaylerUva TaylerUva linked an issue Aug 17, 2025 that may be closed by this pull request

driveTrainPitch = Units.Degrees.of(
subDrivetrain.pigeon.getPitch().getValueAsDouble());
redAllianceMultiplier = constField.isRedAlliance() ? -1 : 1;
Copy link
Member

Choose a reason for hiding this comment

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

Is this necessary?

Comment on lines 47 to 55
driveTrainPitch = Units.Degrees.of(
subDrivetrain.pigeon.getPitch().getValueAsDouble());
redAllianceMultiplier = constField.isRedAlliance() ? -1 : 1;
if (driveTrainPitch.gte(constDrivetrain.MAX_DRIVETAIN_PITCH)
|| driveTrainPitch.lte(constDrivetrain.MIN_DRIVETRAIN_PITCH)) {

globalMotion.setLiftPosition(constDrivetrain.RETRACT_LIFT_PITCH);

}
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to have this in both initialize and in execute? why or why not

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You need to do it constantly to make sure the robot isn't tilted too far, because its tilt can change at any moment.

if (driveTrainPitch.gte(constDrivetrain.MAX_DRIVETAIN_PITCH)
|| driveTrainPitch.lte(constDrivetrain.MIN_DRIVETRAIN_PITCH)) {

globalMotion.setLiftPosition(constDrivetrain.RETRACT_LIFT_PITCH);
Copy link
Member

Choose a reason for hiding this comment

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

Do set positions with the NONE group as the position

@TaylerUva
Copy link
Member

How do we deal with our mechanism position no longer matching our state desired position?

@TaylerUva TaylerUva enabled auto-merge (squash) August 19, 2025 00:59
}

private void setLiftPosition(Distance height) {
public void setLiftPosition(Distance height) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
public void setLiftPosition(Distance height) {
private void setLiftPosition(Distance height) {

}

private void setLiftPosition(Distance height) {
public void setLiftPosition(Distance height) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
public void setLiftPosition(Distance height) {
private void setLiftPosition(Distance height) {

@TaylerUva
Copy link
Member

@Tejshah88 can you address the requested changes when you get the chance?

@TaylerUva
Copy link
Member

TaylerUva commented Sep 2, 2025

@BrodyKarr can you pull from main, resolve conflicts, and make sure its applied to both manual drive and pose driving?

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.

Implement anti-tipping functionality

4 participants