mirror of
https://github.com/team2059/Dent
synced 2024-12-18 20:52:29 -05:00
22 lines
525 B
C++
22 lines
525 B
C++
#ifndef ELEVATOR_H
|
|
#define ELEVATOR_H
|
|
|
|
#include "WPILib.h"
|
|
#include "Commands/PIDSubsystem.h"
|
|
class Elevator/*: public PIDSubsystem*/{
|
|
private:
|
|
AnalogPotentiometer *pot;
|
|
CANTalon *leftMotor, *rightMotor;
|
|
Encoder *elevatorEncoder;
|
|
static constexpr double kP_real=4, kI_real=.0f, kP_simulation=18, kI_simulation=.2;
|
|
double offset, height;
|
|
public:
|
|
Elevator();
|
|
void InitDefaultCommand();
|
|
float GetPotValue();
|
|
void Run(double);
|
|
void SetOffset(double);
|
|
double GetHeight();
|
|
};
|
|
#endif
|