Need help using limit switch to go to set position

I am trying to have the otb intake of our robot move to the stow position once a note is detected in the intake. Right now it seems that the limit switch detects the note, however it does not move the pivot to the correct position after detecting the note. Does anyone know why? My code is here. Thanks!

I am used to using revlib with cansparkmaxes but I don’t see any call to the intakePivot(position) method (which I am assuming has the talonFX go to a specific position). I might be misreading the code but could that be your issue?

I tried intakePivot (PivotState.STOW); but it doesnt seem to work.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.