frc3512 / Robot-2020

The source code for the 2020 FRC robot.
BSD 3-Clause "New" or "Revised" License
8 stars 2 forks source link

Set current turret position state to magnetic limit once triggered #168

Closed KyleQ1 closed 3 years ago

KyleQ1 commented 3 years ago

Since the position of the magnetic limit switch is known, then set the current position state to that position. This will also stop the turret from moving past the soft limit just in case the magnetic limit is passed.

KyleQ1 commented 3 years ago

The magnetic limits may not exactly match the position of the soft limits so we should actually measure out where the limits are positioned first.

KyleQ1 commented 3 years ago

Probably not worth doing since the limit could be passed and the state could be set to the wrong position. We also may be able to track the position of the turret at all times following this. https://frc3512.slack.com/archives/C29CKB8LR/p1629310215036100