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

25 lines
578 B
C
Raw Normal View History

2015-01-16 19:29:55 -05:00
#ifndef ELEVATOR_H
#define ELEVATOR_H
#include "WPILib.h"
#include "Commands/PIDSubsystem.h"
2015-02-07 13:08:24 -05:00
class Elevator{
2015-01-16 20:12:48 -05:00
private:
2015-02-02 18:53:02 -05:00
CANTalon *motor;
Encoder *elevatorEncoder;
2015-01-16 20:46:58 -05:00
static constexpr double kP_real=4, kI_real=.0f, kP_simulation=18, kI_simulation=.2;
double offset, height;
DigitalInput *elevatorBottom, *elevatorTop;
2015-01-16 20:12:48 -05:00
public:
Elevator();
void InitDefaultCommand();
2015-01-16 20:46:58 -05:00
void Run(double);
void SetOffset(double);
void ResetEncoder();
double GetHeight();
bool GetElevatorTop();
bool GetElevatorBottom();
2015-01-16 19:29:55 -05:00
};
#endif
2015-02-07 13:28:08 -05:00
// vim: ts2:sw=2:et