Arctos6135 / frc-2023

Robot code for the 2023 FRC season Charged Up.
Other
6 stars 1 forks source link

Get elevator extension code working #8

Closed n-arms closed 11 months ago

n-arms commented 11 months ago

The elevator should be able to extend to given positions automatically. The elevator subsystem should operate in two modes: position mode and raw input mode.

Raw input mode

Position mode

SomewhatMay commented 11 months ago

Hyper extension and contraction are already handled using lowAngle and highAngle values in the Elevator.java sybststem; we just have to fine tune the values.

SomewhatMay commented 11 months ago

PID added to elevator in branch origin/elevator-extension along with the necessary methods. Needs testing.

SomewhatMay commented 11 months ago

Forgot to actually check if positionMode is enabled or not when using PID in periodic()... gotta fix that tomorrow 😅 (Currently, robot will use PID regardless for elevator extension of what you set position mode to, meaning .setMotor() does nothing outside of the elevator subsystem class...)

SomewhatMay commented 11 months ago

Fixed it; needs testing though 😓