Team302 / 2023ChargedUp

Other
0 stars 0 forks source link

Add initialize state to extender #348

Open witcpalek opened 1 year ago

witcpalek commented 1 year ago

Currently if the robot isn't powered up correctly, the extender goes out.

Need to add an initialize state that retracts the extender until the limit switch is tripped. This should be the first state run (could even always run it in AutonInit and TeleopInit).

Auton Primitive (resetPosition could even automatically call the initialize state)

Thus, we know zero is always hit. Could add a failsafe for the limit switch to see if the motor is stalled and if it is, treat it as if the limit switch is tripped.