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

Code compiles

This commit is contained in:
Austen Adler 2015-01-16 19:29:55 -05:00
parent db1f777ec8
commit 180884bfe7
18 changed files with 206 additions and 8 deletions

View File

@ -2,8 +2,10 @@
#define COMMAND_BASE_H
#include <string>
#include "Commands/Command.h"
#include "Subsystems/ExampleSubsystem.h"
//#include "Commands/Drive.h"
#include "Subsystems/Drivetrain.h"
#include "Subsystems/Collector.h"
#include "Subsystems/Elevator.h"
#include "OI.h"
#include "WPILib.h"

15
src/Commands/Collect.cpp Normal file
View File

@ -0,0 +1,15 @@
#include "Collect.h"
Collect::Collect(){
}
void Collect::Initialize(){
}
void Collect::Execute(){
}
bool Collect::IsFinished(){
return false;
}
void Collect::End(){
}
void Collect::Interrupted(){
}

17
src/Commands/Collect.h Normal file
View File

@ -0,0 +1,17 @@
#ifndef COLLECT_H
#define COLLECT_H
#include "../CommandBase.h"
#include "WPILib.h"
class Collect: public CommandBase{
public:
Collect();
void Initialize();
void Execute();
bool IsFinished();
void End();
void Interrupted();
};
#endif

15
src/Commands/Drive.cpp Normal file
View File

@ -0,0 +1,15 @@
#include "Drive.h"
Drive::Drive(){
}
void Drive::Initialize(){
}
void Drive::Execute(){
}
bool Drive::IsFinished(){
return false;
}
void Drive::End(){
}
void Drive::Interrupted(){
}

17
src/Commands/Drive.h Normal file
View File

@ -0,0 +1,17 @@
#ifndef DRIVE_H
#define DRIVE_H
#include "../CommandBase.h"
#include "WPILib.h"
class Drive: public CommandBase{
public:
Drive();
void Initialize();
void Execute();
bool IsFinished();
void End();
void Interrupted();
};
#endif

15
src/Commands/Eject.cpp Normal file
View File

@ -0,0 +1,15 @@
#include "Eject.h"
Eject::Eject(){
}
void Eject::Initialize(){
}
void Eject::Execute(){
}
bool Eject::IsFinished(){
return false;
}
void Eject::End(){
}
void Eject::Interrupted(){
}

17
src/Commands/Eject.h Normal file
View File

@ -0,0 +1,17 @@
#ifndef EJECT_H
#define EJECT_H
#include "../CommandBase.h"
#include "WPILib.h"
class Eject: public CommandBase{
public:
Eject();
void Initialize();
void Execute();
bool IsFinished();
void End();
void Interrupted();
};
#endif

15
src/Commands/Lower.cpp Normal file
View File

@ -0,0 +1,15 @@
#include "Lower.h"
Lower::Lower(){
}
void Lower::Initialize(){
}
void Lower::Execute(){
}
bool Lower::IsFinished(){
return false;
}
void Lower::End(){
}
void Lower::Interrupted(){
}

17
src/Commands/Lower.h Normal file
View File

@ -0,0 +1,17 @@
#ifndef LOWER_H
#define LOWER_H
#include "../CommandBase.h"
#include "WPILib.h"
class Lower: public CommandBase{
public:
Lower();
void Initialize();
void Execute();
bool IsFinished();
void End();
void Interrupted();
};
#endif

15
src/Commands/Raise.cpp Normal file
View File

@ -0,0 +1,15 @@
#include "Raise.h"
Raise::Raise(){
}
void Raise::Initialize(){
}
void Raise::Execute(){
}
bool Raise::IsFinished(){
return false;
}
void Raise::End(){
}
void Raise::Interrupted(){
}

17
src/Commands/Raise.h Normal file
View File

@ -0,0 +1,17 @@
#ifndef RAISE_H
#define RAISE_H
#include "../CommandBase.h"
#include "WPILib.h"
class Raise: public CommandBase{
public:
Raise();
void Initialize();
void Execute();
bool IsFinished();
void End();
void Interrupted();
};
#endif

View File

@ -1,5 +1,4 @@
#include "WPILib.h"
#include "Commands/Command.h"
#include "Commands/Drive.h"
#include "Commands/Collect.h"
#include "Commands/Eject.h"

View File

@ -1,7 +1,7 @@
#include "ExampleSubsystem.h"
#include "Collector.h"
#include "../RobotMap.h"
ExampleSubsystem::ExampleSubsystem() : Subsystem("ExampleSubsystem") {
Collector::Collector() : Subsystem("Collector") {
}
void ExampleSubsystem::InitDefaultCommand() {
void Collector::InitDefaultCommand() {
}

View File

@ -1,13 +1,12 @@
#ifndef COLLECTOR_H
#define COLLECTOR_H
#include "Commands/Subsystem.h"
#include "WPILib.h"
class Collector: public Subsystem
{
private:
public:
ExampleSubsystem();
Collector();
void InitDefaultCommand();
};
#endif

View File

@ -0,0 +1,7 @@
#include "Drivetrain.h"
#include "../RobotMap.h"
Drivetrain::Drivetrain() : Subsystem("Drivetrain") {
}
void Drivetrain::InitDefaultCommand() {
}

View File

@ -0,0 +1,12 @@
#ifndef DRIVETRAIN_H
#define DRIVETRAIN_H
#include "WPILib.h"
class Drivetrain: public Subsystem
{
private:
public:
Drivetrain();
void InitDefaultCommand();
};
#endif

View File

@ -0,0 +1,7 @@
#include "Elevator.h"
#include "../RobotMap.h"
Elevator::Elevator() : Subsystem("Elevator") {
}
void Elevator::InitDefaultCommand() {
}

12
src/Subsystems/Elevator.h Normal file
View File

@ -0,0 +1,12 @@
#ifndef ELEVATOR_H
#define ELEVATOR_H
#include "WPILib.h"
class Elevator: public Subsystem
{
private:
public:
Elevator();
void InitDefaultCommand();
};
#endif