FTC7393 / FtcRobotController

BSD 3-Clause Clear License
3 stars 1 forks source link

Improve/fix fetcher lockout while lever on stack #47

Closed robot256 closed 1 year ago

robot256 commented 1 year ago

Right now useOffset locks out fetcher commands, but there are a few issues:

  1. It causes all commands during useOffset to be discarded, not just delayed.
  2. It applies to raising from ground height, when there is no stack.
  3. It only applies until horizontal, not until the cone is clear of the stack.
  4. It doesn't care whether the grabber is open or closed.

We can fix all of these by adding a new flag in scorer, "pauseFetcher", and two new variables, "unpauseFetcherAngle" and "pausedFetcherCommand".

robot256 commented 1 year ago

Question: should we also lock out the mecanum drive joysticks while fetcher is locked?

robot256 commented 1 year ago

Implementing this ticket will prevent Auto from knocking over the stack during the giveUp(tm) sequence.

TheDeveloper101 commented 1 year ago

i'll do this one as well

robot256 commented 1 year ago

Looks ready to test!

robot256 commented 1 year ago

Something is going on and it's not pausing like it should when the grabber is closed. It's possible that it's only pausing when the grabber is open.

robot256 commented 1 year ago

Okay, the offset is taking place very briefly and the fetcher is slow to respond, so it does almost nothing. But at the same time, the Auto seems to be able to pick up cone #4 just fine? So it might be doing its job.