-
Notifications
You must be signed in to change notification settings - Fork 0
fix windup issue #388
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
fix windup issue #388
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.
Also works if the setpoint time is updated immediatelly in the retract rather than _force_retract. I beleive we can expect the same behaviour in the wrist where doing it on enable works or in tilt_to but not _tilt_to
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.
Little bit of weirdness when implemented on wrist
Weirdness is cause by removing the wrist execute from disabled not by the change itself. @LucienMorey, @auscompgeek what was the reason for that execute in the first place, isn't it a little dangerous? |
I am sceptical of this fix. I am not saying it doesn't do the bits, but moving the time reset effectively a few lines earlier doesn't make sense on its own. My observation of the robot is that it doesn't always happen, either, so maybe you're just getting lucky. Also, the bad behaviour happens a lot in test mode, which on_enable has no impact on. |
it was added in this pr: #104 I think it was originally part of the zeroing processes when we had to index. It isn't really dangerous on its own but it is a bit smelly. It can go now. you are also marked as a reviewer on this one :P |
I understand, just testing in the sim, it seems to change the operation. Unsure why, but maybe we need to test and see |
I would have to be very lucky for it to just be luck, given I tested it on off about 15 times. Although I do see no way of making it work without on enable. |
c6c9fc2
to
ef4a1cb
Compare
How are you testing this? |
In sim I enable in teleop, drop the intake, disable before it comes up then re enable after 5 seconds. I did this without the fix to confirm the extremely rapid retract. WIth the fix, I do the same and it retracts as expected |
Also, can confirm issue remains in test |
unknown_replay_2025.04.28-22.31.-.Trim.mp4 |
yea this is what I was interested in. FYI: robotpy/robotpy-wpilib-utilities#217 |
this does the things properly now that my prs have been merged |
No description provided.