2023-10-19 20:26:32 -04: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.
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2025-11-07 19:56:21 -05:00
|
|
|
#include "subsystems/Elevator.hpp"
|
2025-11-08 16:58:51 -08:00
|
|
|
#include "wpi/driverstation/Joystick.hpp"
|
|
|
|
|
#include "wpi/framework/TimedRobot.hpp"
|
2023-10-19 20:26:32 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* This is a sample program to demonstrate the use of elevator simulation.
|
|
|
|
|
*/
|
2025-11-07 20:00:05 -05:00
|
|
|
class Robot : public wpi::TimedRobot {
|
2023-10-19 20:26:32 -04:00
|
|
|
public:
|
2024-07-17 11:22:39 +08:00
|
|
|
Robot() {}
|
2023-10-19 20:26:32 -04:00
|
|
|
void RobotPeriodic() override;
|
|
|
|
|
void SimulationPeriodic() override;
|
|
|
|
|
void TeleopInit() override;
|
|
|
|
|
void TeleopPeriodic() override;
|
|
|
|
|
void DisabledInit() override;
|
|
|
|
|
|
|
|
|
|
private:
|
2025-11-07 20:00:05 -05:00
|
|
|
wpi::Joystick m_joystick{Constants::kJoystickPort};
|
2023-10-19 20:26:32 -04:00
|
|
|
Elevator m_elevator;
|
|
|
|
|
};
|