Skip to content

Smart Intake Retraction Command#386

Open
AlanYuan99 wants to merge 27 commits intomainfrom
smart-retract-command
Open

Smart Intake Retraction Command#386
AlanYuan99 wants to merge 27 commits intomainfrom
smart-retract-command

Conversation

@AlanYuan99
Copy link
Copy Markdown
Contributor

Why are we doing this?

Asana task URL:

Whats changing?

Questions/notes for reviewers

How this was tested

  • tested on robot
  • tested in simulator
  • unit tests added

Video/screenshots (from simulator or live robot)


PR feedback legend

Symbol Meaning
⭐ ⭐ ⭐ must be addressed
⭐ ⭐ should be addressed
something to consider, a good idea

@AlanYuan99 AlanYuan99 requested review from a team and aschokking April 4, 2026 22:47
@aschokking aschokking marked this pull request as draft April 5, 2026 01:23
@AlanYuan99 AlanYuan99 marked this pull request as ready for review April 5, 2026 20:44
Copy link
Copy Markdown
Contributor

@aschokking aschokking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⭐ ⭐ ⭐ does stop time need to be reset to 0 here?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing with isReadyToOscillate?

}

@Override
public void execute() {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⭐ ⭐ ⭐ 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?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@Rongrrz
Copy link
Copy Markdown
Contributor

Rongrrz commented Apr 7, 2026

@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?

@aschokking
Copy link
Copy Markdown
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants