2
0
mirror of https://github.com/team2059/Dent synced 2025-01-07 22:14:14 -05:00

Code compiles now

This commit is contained in:
Austen Adler 2015-01-31 15:02:33 -05:00
parent 760a30a8a2
commit b548bee067
4 changed files with 3 additions and 4 deletions

View File

@ -10,7 +10,7 @@ void Calibrate::Execute(){
DentRobot::elevator->Run(-0.4f); DentRobot::elevator->Run(-0.4f);
} }
bool Calibrate::IsFinished(){ bool Calibrate::IsFinished(){
if(DentRobot::DIO->Get()){ if(DentRobot::dio->Get(DIO::ELEVATORBOTTOM)){
// 0.99 is a placeholder for the height of the limit switches // 0.99 is a placeholder for the height of the limit switches
DentRobot::elevator->SetHeight(0.99); DentRobot::elevator->SetHeight(0.99);
return true; return true;

View File

@ -3,7 +3,7 @@
#include "../../CommandBase.h" #include "../../CommandBase.h"
#include "../../DentRobot.h" #include "../../DentRobot.h"
#include "../../Commands/Command.h" #include "Commands/Command.h"
#include "WPILib.h" #include "WPILib.h"
class StartCompressing: public Command{ class StartCompressing: public Command{

View File

@ -3,7 +3,7 @@
#include "../../CommandBase.h" #include "../../CommandBase.h"
#include "../../DentRobot.h" #include "../../DentRobot.h"
#include "../../Commands/Command.h" #include "Commands/Command.h"
#include "WPILib.h" #include "WPILib.h"
class StopCompressing: public Command{ class StopCompressing: public Command{

View File

@ -2,7 +2,6 @@
#define DIO_H #define DIO_H
#include "WPILib.h" #include "WPILib.h"
#include "Commands/PIDSubsystem.h"
class DIO{ class DIO{
private: private:
DigitalInput *elevatorTop, *elevatorBottom; DigitalInput *elevatorTop, *elevatorBottom;