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

18 lines
420 B
C++
Raw Normal View History

2015-01-16 19:29:55 -05:00
#include "Elevator.h"
#include "../RobotMap.h"
2015-01-16 20:46:58 -05:00
Elevator::Elevator() : PIDSubsystem("Elevator", kP_real, kI_real, 0.0){
pot=new AnalogPotentiometer(0);
leftMotor=new Talon(1);
rightMotor=new Talon(0);
SetAbsoluteTolerance(0.004);
2015-01-16 19:29:55 -05:00
}
void Elevator::InitDefaultCommand() {
}
2015-01-16 20:46:58 -05:00
float Elevator::GetPotValue(){
return pot->Get();
}
void Elevator::Run(double power){
leftMotor->Set(power);
rightMotor->Set(power);
}