-
Notifications
You must be signed in to change notification settings - Fork 0
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
Tail subsystem and commands #3
base: main
Are you sure you want to change the base?
Conversation
I explain my trouble in TailSubsystem.kt
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.
TailUpCommand and TailDownCommand can be one file with the setpoint as an initializing argument
src/main/java/org/sert2521/bunnybots2024/subsystems/TailSubsystem.kt
Outdated
Show resolved
Hide resolved
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 we are using a relative encoder instead of an absolute encoder, we should probably have a function that resets the encoder to a certain value. Since we don't have a feedforward here the literal value isn't needed, so I would just set it to zero.
} | ||
|
||
override fun isFinished(): Boolean { | ||
return tailPid.atSetpoint() |
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.
I don't think we should end this command. If the command ends after it hits the setpoint, then after it hits its setpoint it will go limp (with braking mode but still). I don't believe braking mode is enough to pull totes on its own. You can just make this return false and let the next command to the tail cancel this one through the default behavior of subsystem requirements.
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.
it's either that or make the defaultCommand of Tail be a version of this command with a goal that keeps it at its current location
Alright I'll try to be there tomorrow and implement this stuff. Thanks! |
|
need guidance on the tail commands whether to use a relative or absolute encoder, or if my method is ok. also if I did the PID loops correctly.