frc2019.robot.subsystems.Elevator

Subsystem for the elevator. The elevator consists of a baby carriage and a pulley system that brings it up. The baby carriage is what holds the arm.

Commands

public Elevator()

Constructor for the subsystem Elevator.

Motors are brushless.

Motors are set to brake mode.

Limit Switches are normally open.

public void initDefaultCommand()

Associates the Elevate command with the Subsystem Elevator.

public void drive(double speed, boolean hold)

Drives the motor that pulls the elevator up and down.

public void resetEncoderPosition()

Resets the encoder position.

public double getEncoderPosition()

Gets the encoder position with the position of the encoder at reset subtracted.

public double getRawEncoderPosition()

Gets the encoder position.

public boolean get()

This function gets the bottomLimit.

TODO: Figure out why it needs it’s own class.

private class LimitReset

public boolean get()

Gets the bottom limit.