-
Notifications
You must be signed in to change notification settings - Fork 2
Anthony and avery #75
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
base: dev
Are you sure you want to change the base?
Conversation
| .with_neutral_mode(signals.NeutralModeValue.BRAKE) | ||
| ).with_feedback( | ||
| configs.FeedbackConfigs() | ||
| .with_feedback_remote_sensor_id(signals.FeedbackSensorSourceValue.FUSED_CANCODER) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
include the gear ratio
subsystem/intake.py
Outdated
| self.pivot_motor.set_sensor_position( | ||
| self.pivot_angle * constants.intake_pivot_gear_ratio / (2 * math.pi) | ||
| ) | ||
| pos = self.pivot_angle * constants.intake_pivot_gear_ratio / (2 * math.pi) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
include the gear ratio in the feedback config so that you don't need to here
subsystem/intake.py
Outdated
| / constants.intake_pivot_gear_ratio | ||
| * math.pi | ||
| * 2 | ||
| self.pivot_motor_pos.value / constants.intake_pivot_gear_ratio * math.pi * 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you include the gear ratio in the config you don't need to do it here
subsystem/intake.py
Outdated
| setting the angle of the pivot | ||
| """ | ||
|
|
||
| ff = config.intake_max_ff * math.cos(config.intake_ff_offset - angle) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if the gear ratio is done above you don't need to do the gravity feedforward here
No description provided.