mirror of
https://github.com/team2059/Dent
synced 2025-01-07 22:14:14 -05:00
Code compiles now
This commit is contained in:
parent
760a30a8a2
commit
b548bee067
@ -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;
|
||||||
|
@ -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{
|
||||||
|
@ -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{
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user