Open
Conversation
Reordered burn flashing and encoder syncing. Now it will completely finish doing the encoder syncing and then call burn flash on the sparkmaxes. Seems calling burnFlash on the sparkmax was holding up the sparkmax while the encoder syncing was trying to be done.
Reducing speed for outreaches mainly.
|
|
||
| public static final double TOP_NEO_GEAR_RATIO = Config.robotSpecific(23.5, 0.0, 0.0, 0.0, 0.0, 60.0, 60.0); //comp --> 23.5 | ||
| public static final double BOTTOM_NEO_GEAR_RATIO = 62.5; | ||
| public static final double TOP_NEO_GEAR_RATIO = Config.robotSpecific(1.0, 0.0, 0.0, 0.0, 0.0, 60.0, 60.0); // NEO Encoder gear ratio is 23.5; |
Contributor
There was a problem hiding this comment.
- Suggest to have a different name to avoid confusion, i.e., don't use NEO_GEAR_RATIO.
- Why original top and bottom gear ratios are different?
weizhang-2706
approved these changes
Dec 11, 2023
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.
Software asked Hardware to rewire the through bore arm encoders in order to practice/test to make sure we can it.
Previously we had the through bore encoders wired directly into the roborio, and used that absolute encoder to set the NEO internal encoder.
With the new wiring, the through bore encoder is directly plugged into the sparkmax, eliminating the need for syncing encoders all together. Also, we can now run the PID on the arm directly through the absolute encoder which has more resolution. The absolute encoder also has less slop than the NEO encoder because it's 1:1 with the output shaft.
I wanted to quickly get this working on 2023 main because too many students are dependent on it, and in case we have outreaches with poseidon.