This repository was archived by the owner on Sep 14, 2019. It is now read-only.
PID input/output ranges and un-overriding all of kate's stuff#52
Merged
lhmcgann merged 3 commits intoDeepBlueRobotics:masterfrom Feb 3, 2018
Merged
PID input/output ranges and un-overriding all of kate's stuff#52lhmcgann merged 3 commits intoDeepBlueRobotics:masterfrom
lhmcgann merged 3 commits intoDeepBlueRobotics:masterfrom
Conversation
set proper kF constants for move and turn PIDs as well fixed inputRange and outputRange for each PID controller (move, turn, leftV, rightV) setMaxOutput of robotDrive to the robot's max speed (in inches)
Contributor
Author
brettle
approved these changes
Feb 2, 2018
Member
brettle
left a comment
There was a problem hiding this comment.
Looks good to me. Also builds passes unit tests on my machine.
implementation - RobotMap: set both VelocityPIDControllers' input ranges to +- Max High Speed, output ranges are +-1, and initial kF constants based on Max Low Speed (for more accuracy in Auto); set max output of robotDrive to Max High Speed - DT/DTInterface: new method getCurrentMaxSpeed() returns max speed based on if robot is in high or low gear; new method resetVelocityPIDkFConsts() that resets kF constants of both VPIDs based on return of getCurrentMaxSpeed and returns new kF value; updated method updatePidConstants() to call resetVelocityPIDkFConsts() instead of just passing in 1/Max Speed - PIDMove/Turn commands: when determining kF values for move/turn PIDs, called getCurrentMaxSpeed() instead of SD value Max Speed; set moveController input range to +- Max High Speed - ShiftHigh/LowGear commands: called resetVelocityPIDkFConsts() after SD value reset - NOTE: all Max Speeds should be in inches/per!!!
Contributor
Author
|
@brettle a few more changes based on our previous conversations about PID input/output ranges and kF values |
Contributor
Author
Contributor
Author
|
all of PID stuff still needs to be tested thouroughly |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
No description provided.