Open
Conversation
e-bauman
reviewed
Dec 16, 2025
| .with_neutral_mode(signals.NeutralModeValue.BRAKE) | ||
| ).with_feedback( | ||
| configs.FeedbackConfigs() | ||
| .with_feedback_remote_sensor_id(signals.FeedbackSensorSourceValue.FUSED_CANCODER) |
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) |
Contributor
There was a problem hiding this comment.
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 |
Contributor
There was a problem hiding this comment.
if you include the gear ratio in the config you don't need to do it here
subsystem/intake.py
Outdated
| @@ -138,33 +169,21 @@ def set_pivot_angle(self, angle: radians) -> None: | |||
| """ | |||
|
|
|||
| ff = config.intake_max_ff * math.cos(config.intake_ff_offset - angle) | |||
Contributor
There was a problem hiding this comment.
if the gear ratio is done above you don't need to do the gravity feedforward here
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.