2020-12-26 14:12:05 -08:00
|
|
|
// Copyright (c) FIRST and other WPILib contributors.
|
|
|
|
|
// Open Source Software; you can modify and/or share it under the terms of
|
|
|
|
|
// the WPILib BSD license file in the root directory of this project.
|
2017-10-17 21:37:58 -07:00
|
|
|
|
|
|
|
|
#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
|
|
|
};
|