2
0
mirror of https://github.com/team2059/Dent synced 2024-12-18 20:52:29 -05:00
dent/Subsystems/Elevator.h

27 lines
586 B
C++

#ifndef ELEVATOR_H
#define ELEVATOR_H
#include "WPILib.h"
#include "Commands/PIDSubsystem.h"
class Elevator{
private:
CANTalon *motor;
Encoder *elevatorEncoder;
DigitalInput *elevatorBottom, *elevatorMiddle, *elevatorTop;
bool useEncoder;
public:
Elevator();
bool stoppedAtSensor;
void InitDefaultCommand();
void Run(double);
void ResetEncoder();
double GetHeight();
bool GetElevatorTop();
bool GetElevatorMiddle();
bool GetElevatorBottom();
void SetUseEncoder(bool);
bool GetUseEncoder();
};
#endif
// vim: ts=2:sw=2:et