Skip to content

Abstract drive gear ratio selection#11

Open
nlaverdure wants to merge 8 commits into
mainfrom
driveGearbox
Open

Abstract drive gear ratio selection#11
nlaverdure wants to merge 8 commits into
mainfrom
driveGearbox

Conversation

@nlaverdure

@nlaverdure nlaverdure commented Jun 10, 2026

Copy link
Copy Markdown
Member

Closes #10

Summary

  • Replaced the hardcoded DRIVE_MOTOR_REDUCTION and COUPLE_RATIO constants with a DriveGearRatio enum whose variants (R1, R2, R3) each encode the per-stage reductions for the SDS MK5i gearbox
  • Drive Motor Reduction and Couple Ratio are now derived from SELECTED_RATIO, so changing the gear ratio only requires updating the one SELECTED_RATIO field
  • Stage reductions are stored as a double[] via varargs, keeping the constructor concise and accommodating gearboxes with a different number of stages

🤖 Generated with Claude Code

@nlaverdure nlaverdure requested a review from BenGamer3 June 10, 2026 13:02
…stages

Add chassisStages parameter to explicitly separate chassis-frame gear
reduction stages (whose product is the couple ratio) from azimuth-frame
stages. Add Javadoc to constructor, getDriveMotorReduction, and getCoupleRatio.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

Abstract gear ratio setting

2 participants