// 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. #pragma once #include #include #include #include #include class Robot : public frc::TimedRobot { public: Robot(); void RobotPeriodic() override; void AutonomousInit() override; void AutonomousPeriodic() override; void TeleopInit() override; void TeleopPeriodic() override; private: frc::XRPMotor m_leftMotor{0}; frc::XRPMotor m_rightMotor{1}; frc::XboxController m_XboxController{0}; frc::Timer m_timer; frc::DifferentialDrive m_drive{ [&](double output) { m_leftMotor.Set(output); }, [&](double output) { m_rightMotor.Set(output); }}; };