-
Notifications
You must be signed in to change notification settings - Fork 0
Ankle Subsystem #3
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the AnkleConstants.maxAngle and minAngle are in the type of encoder (not encoder_value * gearRatio), there seems to be a bug in setAngle and setAngleTest. I think we should pass directly the angle value to the closedLoopController.setReference and set the gearRatio in the constructor of the Subsystem class instead of multiplying every time.
src/main/java/frc/robot/subsystems/AnkleSubsystem/AnkleSubsystem.java
Outdated
Show resolved
Hide resolved
src/main/java/frc/robot/subsystems/AnkleSubsystem/AnkleSubsystem.java
Outdated
Show resolved
Hide resolved
|
|
||
| } | ||
|
|
||
| public void setSparkPIDControllerToDashboard(String prefix, double kP, double kI, double kD, double kMinOutput, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we really need a class for this? how about we set up a smart dashboard handler class that has all the set/get methods regarding all subsystems
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you more clarify? we didnt understand ( w/mychecksdead)
Ankle subsystem added. It contains basic level functions.