mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
34 lines
1.1 KiB
C
34 lines
1.1 KiB
C
|
|
/*----------------------------------------------------------------------------*/
|
||
|
|
/* Copyright (c) 2017-2019 FIRST. All Rights Reserved. */
|
||
|
|
/* 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
|
||
|
|
|
||
|
|
#include <frc/TimedRobot.h>
|
||
|
|
#include <frc2/command/Command.h>
|
||
|
|
|
||
|
|
#include "RobotContainer.h"
|
||
|
|
|
||
|
|
class Robot : public frc::TimedRobot {
|
||
|
|
public:
|
||
|
|
void RobotInit() override;
|
||
|
|
void RobotPeriodic() override;
|
||
|
|
void DisabledInit() override;
|
||
|
|
void DisabledPeriodic() override;
|
||
|
|
void AutonomousInit() override;
|
||
|
|
void AutonomousPeriodic() override;
|
||
|
|
void TeleopInit() override;
|
||
|
|
void TeleopPeriodic() override;
|
||
|
|
void TestPeriodic() override;
|
||
|
|
|
||
|
|
private:
|
||
|
|
// Have it null by default so that if testing teleop it
|
||
|
|
// doesn't have undefined behavior and potentially crash.
|
||
|
|
frc2::Command* m_autonomousCommand = nullptr;
|
||
|
|
|
||
|
|
RobotContainer m_container;
|
||
|
|
};
|