Galaxia5987 / robot-2019

Control code for the 2019 FRC season, Destination: Deep Space robot
0 stars 0 forks source link

Elevator subsystem and its respective commands #25

Closed pauloalbert closed 5 years ago

pauloalbert commented 5 years ago

This pull request adds the code for the Elevator subsystem. The subsystem uses a Talon SRX with Motion Magic control mode to raise the Elevator and a Victor SPX following its outputted current. The subsystem uses four different PIDF gains sets, depending on the elevators state (for the full explanation, see the Javadoc in the subsystem's code).

Commands

Subsystem methods

katzuv commented 4 years ago

You need to configure the peak target velocity and peak target acceleration for the Elevator. Also, please set the arbitrary feedforward term to zero when the Elevator is all the way down.

@pauloalbert dont forget to set nominal output 1