Skip to content
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

Adding short safety warnings to the Path-Based Tutorial #1785

Merged
merged 7 commits into from
Aug 20, 2023

Conversation

clockworkthought
Copy link
Contributor

The WPILib RamseteCommand have a lot of very powerful tools now that teams are going back to a genuine autonomous period, but the current Path-Based tutorial is somewhere between 'written for a higher level of familiarity than most teams needing it will be at' and 'mildly suicidal'. In particular, there is a significantly higher than zero chance that a team copying the code directly will either find their robot's first RamseteCommand to result in their robot zipping backward at maximum power, zipping forwards at 20x their intended speed and distance, or spinning in circles at maximum power.

While I think there's some large benefit to be made, separately, be rewriting the tutorial to target a less experienced team, there are some more immediate benefits to simply not needing to fetch as much drywall spackle. In particular, some non-obvious problems that this highlights:

  • Warned that voltage, speed, and acceleration limits are only applied to trajectory calculation, and do not clamp the power settings to the drive subsystem.
  • Highlighted importance of the accuracy of wheel odometry, and encouraged new teams to run the wheel odometry on its own before running a RamseteCommand.
  • Encouraged teams developing new code to clamp the motor voltages before setVoltage() calls in tankDriveVolts(), at least during testing.

- Warned that voltage, speed, and acceleration limits are only applied to trajectory calculation, and do not clamp the power settings to the drive subsystem.
- Highlighted importance of the accuracy of wheel odometry, and encouraged new teams to run the wheel odometry on its own before running a RamseteCommand.
- Encouraged teams developing new code to clamp the motor voltages before ``setVoltage()`` calls in ``tankDriveVolts()``.
@Daltz333
Copy link
Member

Daltz333 commented Apr 8, 2022

Admonition should be 1-3 sentences. Otherwise they will become trivialized by the reader and ignored. Please break the paragraphs outside of an admonition or shorten significantly.

Shorten admonitions, fix double-colons, (hopefully) fix linting.
Daltz333
Daltz333 previously approved these changes Apr 18, 2022
Copy link
Member

@Daltz333 Daltz333 left a comment

Choose a reason for hiding this comment

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

Looks good to me. Pinging Tyler for a double check.

@Daltz333 Daltz333 merged commit c81c4cf into wpilibsuite:main Aug 20, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants