2017-10-17 21:37:58 -07:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2018-01-02 09:20:21 -08:00
|
|
|
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
|
2017-10-17 21:37:58 -07:00
|
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
|
|
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
|
|
|
/* the project. */
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2018-09-19 21:41:08 -07:00
|
|
|
#include <frc/TimedRobot.h>
|
2018-07-20 00:03:45 -07:00
|
|
|
#include <frc/commands/Command.h>
|
|
|
|
|
#include <frc/smartdashboard/SendableChooser.h>
|
2017-10-17 21:37:58 -07:00
|
|
|
|
|
|
|
|
#include "OI.h"
|
2018-07-20 00:03:45 -07:00
|
|
|
#include "commands/DriveAndShootAutonomous.h"
|
|
|
|
|
#include "commands/DriveForward.h"
|
|
|
|
|
#include "subsystems/Collector.h"
|
|
|
|
|
#include "subsystems/DriveTrain.h"
|
|
|
|
|
#include "subsystems/Pivot.h"
|
|
|
|
|
#include "subsystems/Pneumatics.h"
|
|
|
|
|
#include "subsystems/Shooter.h"
|
2017-10-17 21:37:58 -07:00
|
|
|
|
2018-09-19 21:41:08 -07:00
|
|
|
class Robot : public frc::TimedRobot {
|
2018-05-13 17:09:56 -07:00
|
|
|
public:
|
|
|
|
|
static DriveTrain drivetrain;
|
|
|
|
|
static Pivot pivot;
|
|
|
|
|
static Collector collector;
|
|
|
|
|
static Shooter shooter;
|
|
|
|
|
static Pneumatics pneumatics;
|
|
|
|
|
static OI oi;
|
2017-10-17 21:37:58 -07:00
|
|
|
|
2018-05-13 17:09:56 -07:00
|
|
|
private:
|
|
|
|
|
frc::Command* m_autonomousCommand = nullptr;
|
|
|
|
|
DriveAndShootAutonomous m_driveAndShootAuto;
|
|
|
|
|
DriveForward m_driveForwardAuto;
|
2018-05-22 23:33:50 -07:00
|
|
|
frc::SendableChooser<frc::Command*> m_autoChooser;
|
2017-10-17 21:37:58 -07:00
|
|
|
|
2018-05-13 17:09:56 -07:00
|
|
|
void RobotInit() override;
|
|
|
|
|
void AutonomousInit() override;
|
|
|
|
|
void AutonomousPeriodic() override;
|
|
|
|
|
void TeleopInit() override;
|
|
|
|
|
void TeleopPeriodic() override;
|
|
|
|
|
void TestPeriodic() override;
|
|
|
|
|
void DisabledInit() override;
|
|
|
|
|
void DisabledPeriodic() override;
|
2017-10-17 21:37:58 -07:00
|
|
|
|
2018-05-13 17:09:56 -07:00
|
|
|
void Log();
|
2017-10-17 21:37:58 -07:00
|
|
|
};
|