-
Notifications
You must be signed in to change notification settings - Fork 2
Logging and Tuning Improvements #120
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
Open
tbowers7
wants to merge
12
commits into
26.0.x
Choose a base branch
from
rbsi_periodic
base: 26.0.x
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+701
−416
Conversation
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
Implement rbsiPeriodic() in RBSISubsystem that child classes must override for periodic input updating and other tasks. The upshot of this is that subsystems would need to have a `rbsiPeriodic()` method for the input updating and other tasks, rather than a `periodic()`. The autologging of periodic timing is a major 👍!
Some characterizable constants like slip current and wheel radius have been moved to the ``DrivetrainConstants`` section of the constants file to make it easier to modify them during drivetrain tuning. Conformal changes to allow downstream modules to properly find these values.
685f611 to
7dc51cd
Compare
7dc51cd to
d726caf
Compare
Instead of different commands having their own ProfiledPIDController for robot rotation, define it in `Drive.java` and use it everywhere else. This works since the drivebase can only be doing one command at a time, so there is no need to have multiple controllers running around. Also, streamline where constants are defined and used to minimize repeated definitions and contain all drivebase-related constants in the ``DrivebaseConstants`` class.
Instead of using arbitrary maximum angular velocity and acceleration, use the combination of the specified maximum linear limits and drivebase radius to compute the angular limits.
In addition to the compile-and-build setting of drive style between TANK and GAMER, allow such to be set via a Dashboard chooser. In this way, the setting can be changed without recompile and redeploy between matches, if desired.
Make a clear place for defining which CANBus a device is running on, and propagate that throughout. Also, streamline what goes on inside some periodic() functions to minimize load and garbage collection.
Most of this commit is adding of testing messages and logging to investigate loop timing and to see what may be causing Stale CAN warnings. The extra logging and timing will likely be removed after the testing is complete and modifications to the loops made.
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.
This PR brings improvements to Az-RBSI's logging and tuning capabilities.
Subsystem periodic logging has been adjusted by adding a RBSI wrapper to include timing and logging of each subsystem's periodic loop. This necessitates changing the periodic loop declaration in any child class that
extends RBSISubsystemfrom:to
For tuning, additional drivetrain variables have been moved into
Constants.DrivebaseConstantsfor easier tuning. Conformal changes to other modules have been made to point to the new location of these variables.