Skip to content

Created button to backdrive spindexer#229

Open
Adhiraj-Bagla wants to merge 3 commits into
mainfrom
button_to_backdrive_spindexer
Open

Created button to backdrive spindexer#229
Adhiraj-Bagla wants to merge 3 commits into
mainfrom
button_to_backdrive_spindexer

Conversation

@Adhiraj-Bagla

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread robot.py Outdated
Comment thread robot.py Outdated
Comment thread robot.py Outdated
@Adhiraj-Bagla Adhiraj-Bagla force-pushed the button_to_backdrive_spindexer branch 2 times, most recently from 4dcbb17 to 14ce6bd Compare March 9, 2026 05:22
@Adhiraj-Bagla

Copy link
Copy Markdown
Contributor Author

This uses the A button if u hold it down

@rafzip rafzip changed the title Created button to reverse backdrive spindexer Created button to backdrive spindexer Mar 9, 2026
Comment thread controllers/conductor.py Outdated
@Adhiraj-Bagla Adhiraj-Bagla force-pushed the button_to_backdrive_spindexer branch from cfece78 to bb12254 Compare March 9, 2026 06:34
Comment thread robot.py Outdated
Comment thread controllers/conductor.py Outdated
Comment thread components/hopper.py Outdated
@Adhiraj-Bagla Adhiraj-Bagla force-pushed the button_to_backdrive_spindexer branch from bd1c65e to 056b389 Compare March 9, 2026 07:37
Comment thread controllers/conductor.py Outdated
@Adhiraj-Bagla Adhiraj-Bagla force-pushed the button_to_backdrive_spindexer branch from ca73dd3 to c2bf2f2 Compare March 11, 2026 05:52
Comment thread controllers/conductor.py Outdated
Comment thread components/hopper.py Outdated
Comment thread components/hopper.py Outdated
Comment thread components/hopper.py Outdated
Comment thread controllers/gobbler.py Outdated
Comment thread components/hopper.py Outdated

@auscompgeek auscompgeek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This seems correct, with a nit. I presume you've at least tested this behaviour in simulation?

Comment thread controllers/conductor.py Outdated
@Adhiraj-Bagla

Copy link
Copy Markdown
Contributor Author

Note: the commit message is entirely accurate I changed the order of the calls in the state to be consistent with the other states

@Adhiraj-Bagla

Copy link
Copy Markdown
Contributor Author

*isn't

@Adhiraj-Bagla

Copy link
Copy Markdown
Contributor Author

Upon further testing it appears that the code will get stuck into the state and won't leave

@Adhiraj-Bagla

Copy link
Copy Markdown
Contributor Author

@DannyPomeranian did u test it in the corrected sim?

@Adhiraj-Bagla Adhiraj-Bagla reopened this Mar 12, 2026
@Adhiraj-Bagla Adhiraj-Bagla force-pushed the button_to_backdrive_spindexer branch 2 times, most recently from fc8e7b5 to 07ca1e2 Compare March 12, 2026 06:30
@Adhiraj-Bagla

Copy link
Copy Markdown
Contributor Author

It appears the logic works correctly during testing on sim.

@Adhiraj-Bagla Adhiraj-Bagla marked this pull request as draft March 12, 2026 08:58
@Adhiraj-Bagla

Copy link
Copy Markdown
Contributor Author

I don't want this to be merged until we actually get a chance to test it on the robot or back-driving is absolutely needed.

@rafzip rafzip force-pushed the button_to_backdrive_spindexer branch from 9d2f251 to 90b55ed Compare March 13, 2026 02:18
@Adhiraj-Bagla Adhiraj-Bagla marked this pull request as ready for review April 3, 2026 06:54
@Adhiraj-Bagla Adhiraj-Bagla marked this pull request as draft April 22, 2026 06:57
@Adhiraj-Bagla Adhiraj-Bagla force-pushed the button_to_backdrive_spindexer branch from 9ce3090 to 0711cc2 Compare April 22, 2026 07:49
Comment thread components/hopper.py Outdated
if not isclose(self.feed_rate, 0.0, abs_tol=0.1):
target_indexer_rps = self.feed_rate / (pi * self.INDEXER_WHEEL_DIAMETER)
target_injector_rps = self.feed_rate / (pi * self.INJECTOR_WHEEL_DIAMETER)
self.target_injector_rps = -feed_rate

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What's the point of setting this if this is never actually read by anything?

@Alexander-Mironenko Alexander-Mironenko left a comment

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.

lgtm but u should prob find the actual value for the feed_Rate instead of js putting 50

@Adhiraj-Bagla Adhiraj-Bagla force-pushed the button_to_backdrive_spindexer branch from 7c6d9fe to 89d9378 Compare May 10, 2026 01:07
@Adhiraj-Bagla Adhiraj-Bagla force-pushed the button_to_backdrive_spindexer branch 3 times, most recently from e4877e1 to 32fff91 Compare May 31, 2026 04:55
@Adhiraj-Bagla Adhiraj-Bagla marked this pull request as ready for review May 31, 2026 04:59
@Adhiraj-Bagla Adhiraj-Bagla force-pushed the button_to_backdrive_spindexer branch 3 times, most recently from efac377 to 0cdd996 Compare May 31, 2026 06:04
Comment thread components/hopper.py
Comment on lines +113 to +118
def backdrive(self, feed_rate: units.meters_per_second) -> None:
target_indexer_rps = -feed_rate

target_injector_rps = -feed_rate
self.indexer_motor.set_control(VelocityVoltage(target_indexer_rps))
self.injector_motor.set_control(VelocityVoltage(target_injector_rps))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Isn't this going to be immediately overwritten by the execute method?

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.

But the execute method won't be run in the backdriving state? Or am I wrong about how the execute method works

Adhiraj Bagla and others added 3 commits May 31, 2026 16:43
@Adhiraj-Bagla Adhiraj-Bagla force-pushed the button_to_backdrive_spindexer branch from 0cdd996 to 14cb863 Compare May 31, 2026 06:43
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.

6 participants