Created button to backdrive spindexer#229
Conversation
4dcbb17 to
14ce6bd
Compare
|
This uses the A button if u hold it down |
cfece78 to
bb12254
Compare
bd1c65e to
056b389
Compare
ca73dd3 to
c2bf2f2
Compare
auscompgeek
left a comment
There was a problem hiding this comment.
This seems correct, with a nit. I presume you've at least tested this behaviour in simulation?
|
Note: the commit message is entirely accurate I changed the order of the calls in the state to be consistent with the other states |
|
*isn't |
|
Upon further testing it appears that the code will get stuck into the state and won't leave |
|
@DannyPomeranian did u test it in the corrected sim? |
fc8e7b5 to
07ca1e2
Compare
|
It appears the logic works correctly during testing on sim. |
|
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. |
9d2f251 to
90b55ed
Compare
9ce3090 to
0711cc2
Compare
| 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 |
There was a problem hiding this comment.
What's the point of setting this if this is never actually read by anything?
Alexander-Mironenko
left a comment
There was a problem hiding this comment.
lgtm but u should prob find the actual value for the feed_Rate instead of js putting 50
7c6d9fe to
89d9378
Compare
e4877e1 to
32fff91
Compare
efac377 to
0cdd996
Compare
| 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)) |
There was a problem hiding this comment.
Isn't this going to be immediately overwritten by the execute method?
There was a problem hiding this comment.
But the execute method won't be run in the backdriving state? Or am I wrong about how the execute method works
Co-authored-by: David Vo <auscompgeek@users.noreply.github.com>
0cdd996 to
14cb863
Compare
No description provided.