FRC1076 / 2019-Competition

Code for 2019 Competition
2 stars 1 forks source link

Put ElevatorAttendant functionality into teleopPeriodic #56

Closed mcolinj closed 5 years ago

mcolinj commented 5 years ago

Currently, the elevatorAttendant is not properly enabled in teleopPeriodic.

It needs to conditionally set the appropriate set point, enable or disable the pid controller (via the .move() and .stop()) methods, and it needs to pass the appropriate motor rate to the elevator.

This is what we currently have. Add the rest.

ELEVATOR CONTROL

    (elevateToHeight, setPoint) = self.elevatorController.getOperation()
    if elevateToHeight:
        self.elevatorAttendant.setSetpoint(setPoint)
mcolinj commented 5 years ago

Fixed in pull request #62, including addition of manual controls. (cool!)