2015-01-16 19:49:16 -05:00
|
|
|
#ifndef DENTROBOT_H
|
|
|
|
#define DENTROBOT_H
|
|
|
|
#include "WPILib.h"
|
2015-01-17 12:21:16 -05:00
|
|
|
#include "OI.h"
|
|
|
|
#include "Subsystems/Elevator.h"
|
2015-02-10 20:12:41 -05:00
|
|
|
#include "Subsystems/BinElevator.h"
|
2015-01-17 12:21:16 -05:00
|
|
|
#include "Subsystems/Drivetrain.h"
|
|
|
|
#include "Subsystems/Collector.h"
|
2015-02-20 15:54:41 -05:00
|
|
|
#include "Subsystems/Pneumatics.h"
|
2015-04-06 20:36:35 -04:00
|
|
|
#include "Subsystems/BinCollector.h"
|
2015-02-07 12:32:46 -05:00
|
|
|
#include "Commands/Autonomous/Autonomous.h"
|
2015-03-02 08:28:03 -05:00
|
|
|
/**
|
|
|
|
* @brief The Hitchhikers 2015 robot, Dent
|
|
|
|
*
|
|
|
|
* Features a 4-motor collector, 4-motor mecanum drivetrain, two one-motor elevators
|
|
|
|
*/
|
2015-07-31 12:52:15 -04:00
|
|
|
class DentRobot: public IterativeRobot {
|
|
|
|
private:
|
|
|
|
/**
|
|
|
|
* @brief The default driving command
|
|
|
|
*/
|
|
|
|
Command *driveCommand = NULL;
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* @brief Constructs DentRobot
|
|
|
|
*/
|
|
|
|
DentRobot();
|
|
|
|
/**
|
|
|
|
* @brief The 2-joystick OI
|
|
|
|
*/
|
|
|
|
static OI* oi;
|
|
|
|
/**
|
|
|
|
* @brief The 4-motor Collector
|
|
|
|
*/
|
|
|
|
static Collector* collector;
|
|
|
|
/**
|
|
|
|
* @brief The 4-motor mecanum Drivetrain
|
|
|
|
*/
|
|
|
|
static Drivetrain* drivetrain;
|
|
|
|
/**
|
|
|
|
* @brief The main one-motor Elevator for lifting totes
|
|
|
|
*/
|
|
|
|
static Elevator* elevator;
|
|
|
|
/**
|
|
|
|
* @brief The back one-motor Elevator for lifting totes or bins
|
|
|
|
*/
|
|
|
|
static BinElevator* binElevator;
|
|
|
|
/**
|
|
|
|
* @brief The Pneumatics system (unused)
|
|
|
|
*/
|
|
|
|
static Pneumatics* pneumatics;
|
|
|
|
/**
|
|
|
|
* @brief The BinCollector for collecting bins
|
|
|
|
*/
|
|
|
|
static BinCollector* binCollector;
|
|
|
|
/**
|
|
|
|
* @brief The Autonomous command
|
|
|
|
*/
|
|
|
|
static CommandGroup* aut;
|
|
|
|
/**
|
|
|
|
* @brief Initializes the robot
|
|
|
|
*/
|
|
|
|
void RobotInit();
|
|
|
|
/**
|
|
|
|
* @brief Periodically run when disabled
|
|
|
|
*/
|
|
|
|
void DisabledPeriodic();
|
|
|
|
/**
|
|
|
|
* @brief Initializes the autonomous period
|
|
|
|
*/
|
|
|
|
void AutonomousInit();
|
|
|
|
/**
|
|
|
|
* @brief Periodically run when enabled in autonomous
|
|
|
|
*/
|
|
|
|
void AutonomousPeriodic();
|
|
|
|
/**
|
|
|
|
* @brief Initializes the teleop period
|
|
|
|
*/
|
|
|
|
void TeleopInit();
|
|
|
|
/**
|
|
|
|
* @brief Periodically run when enabled in autonomous
|
|
|
|
*/
|
|
|
|
void TeleopPeriodic();
|
|
|
|
/**
|
|
|
|
* @brief Periodically run when enabled in test mode
|
|
|
|
*/
|
|
|
|
void TestPeriodic();
|
2015-01-16 19:49:16 -05:00
|
|
|
};
|
|
|
|
#endif
|
|
|
|
// vim: ts=2:sw=2:et
|