2
0
mirror of https://github.com/team2059/Dent synced 2025-01-07 22:14:14 -05:00
dent/Subsystems/Elevator.cpp
2015-01-25 08:46:48 -05:00

18 lines
425 B
C++

#include "Elevator.h"
#include "../RobotMap.h"
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);
}
void Elevator::InitDefaultCommand(){
}
float Elevator::GetPotValue(){
return pot->Get();
}
void Elevator::Run(double power){
leftMotor->Set(power);
rightMotor->Set(power);
}