Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds Mk4i configurations #9

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

ZachOrr
Copy link
Contributor

@ZachOrr ZachOrr commented Jan 28, 2022

Hey y'all - added some configurations for the Mk4i modules. I think I got the important bits - the 14T -> 50T on the steer reduction, and flipping the steer motor inversion.

@ZachOrr ZachOrr force-pushed the zorr/mk4i branch 2 times, most recently from 28b8d1b to fb5da64 Compare February 1, 2022 16:28
@ZachOrr ZachOrr marked this pull request as ready for review February 1, 2022 16:54
Comment on lines +125 to +126
motor.setSensorPhase(true);
motor.setInverted(moduleConfiguration.isSteerInverted() ? TalonFXInvertType.CounterClockwise : TalonFXInvertType.Clockwise);
Copy link
Contributor Author

@ZachOrr ZachOrr Feb 1, 2022

Choose a reason for hiding this comment

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

This bit should be confirmed as correct. The motors need to be flipped for the Mk4i modules - but it makes sense to me that you'd invert the motor as opposed to inverting the sensor phase. Is there a reason to invert the sensor phase instead of the motor direction?

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.

1 participant