2015-01-16 19:29:55 -05:00
|
|
|
#ifndef ELEVATOR_H
|
|
|
|
#define ELEVATOR_H
|
|
|
|
|
|
|
|
#include "WPILib.h"
|
2015-01-17 12:21:16 -05:00
|
|
|
//#include "Commands/PIDSubsystem.h"
|
|
|
|
//class Elevator: public PIDSubsystem{
|
|
|
|
class Elevator: public Subsystem{
|
2015-01-16 20:12:48 -05:00
|
|
|
private:
|
2015-01-16 20:46:58 -05:00
|
|
|
AnalogPotentiometer *pot;
|
|
|
|
Talon *leftMotor, *rightMotor;
|
|
|
|
static constexpr double kP_real=4, kI_real=.0f, kP_simulation=18, kI_simulation=.2;
|
2015-01-16 20:12:48 -05:00
|
|
|
public:
|
|
|
|
Elevator();
|
|
|
|
void InitDefaultCommand();
|
2015-01-16 20:46:58 -05:00
|
|
|
float GetPotValue();
|
|
|
|
void Run(double);
|
2015-01-16 19:29:55 -05:00
|
|
|
};
|
|
|
|
#endif
|