Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

Clean up RobotConfig #53

Merged
merged 4 commits into from
Jan 25, 2024
Merged

Clean up RobotConfig #53

merged 4 commits into from
Jan 25, 2024

Conversation

BD103
Copy link
Member

@BD103 BD103 commented Jan 22, 2024

This PR does a few things:

  1. It adds documentation to all of the RobotConfig properties, so it is more clear what each things does.
  2. Removes the SLOW_MULTIPLIER config ever since it was removed in Box Movement #36.
  3. Combines the ROTATE_SPEED and ROTATION_GAIN configs, since they literally both do the same thing.
  4. Make SLIDE_DOWN_POWER a positive number instead of a negative one. (It's then negated in TeleOpMain. See 9bfa02d.)

They both ended up multiplying their values against the joystick x. I multiplied their values and opted to keep the ROTATE_SPEED config.
I feel it is better to treat the power as a percentage. The negative sign is more of an implementation detail which I thought fit better in TeleOpMain.
@BD103 BD103 added the chore A chore that is not directly code-related label Jan 22, 2024
@BD103 BD103 added this to the Panther Power Qualifier milestone Jan 22, 2024
@BD103 BD103 requested a review from Vif15 January 22, 2024 21:03
@BD103 BD103 self-assigned this Jan 22, 2024
Copy link
Contributor

@Vif15 Vif15 left a comment

Choose a reason for hiding this comment

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

:D

@BD103 BD103 merged commit 2da7117 into main Jan 25, 2024
1 check passed
@BD103 BD103 deleted the config-docs branch January 25, 2024 00:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
chore A chore that is not directly code-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants