Smart Intake Retraction Command#386
Conversation
…mart-retract-command
…mart-retract-command
aschokking
left a comment
There was a problem hiding this comment.
If you tested it in the sim, please include a video of it working (even if the high current is never detected) just so we can see the base logic working
|
|
||
| @Override | ||
| public void initialize() { | ||
| log.info("Initialized IntakeDeploySmartRetraction"); |
There was a problem hiding this comment.
⭐ ⭐ ⭐ does stop time need to be reset to 0 here?
There was a problem hiding this comment.
Same thing with isReadyToOscillate?
| } | ||
|
|
||
| @Override | ||
| public void execute() { |
There was a problem hiding this comment.
⭐ ⭐ ⭐ I'm not sure this is going to work, were you able to test it in the sim? I don't see where it ever increases the position of the arm to try and find the point the balls are?
There was a problem hiding this comment.
I tried modeling off the regular retract command. My thought process was that it would retract and reach a high current usage once it gets stuck. It would then stop for a moment and move on to an oscillating motion from where it stopped.
|
@aschokking Thinking about simplicity, would an equation like y = mx + b match the effect this is trying to achieve, where y is the output power, x is the current, m is to scale current to power, and b is the baseline output? |
|
that would be exponential (if you multiple by m each time). The real simplicity is just adding a small amount each cycle like the existing close while firing commands do. |
Why are we doing this?
Asana task URL:
Whats changing?
Questions/notes for reviewers
How this was tested
Video/screenshots (from simulator or live robot)
PR feedback legend