Files
allwpilib/wpilibcExamples/src/main/cpp/examples/ElevatorExponentialSimulation/include/Robot.hpp

28 lines
732 B
C++
Raw Normal View History

// 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:57:55 -05:00
#include <wpi/driverstation/Joystick.hpp>
#include <wpi/opmode/TimedRobot.hpp>
2025-11-07 19:56:21 -05:00
#include "subsystems/Elevator.hpp"
/**
* This is a sample program to demonstrate the use of elevator simulation.
*/
class Robot : public frc::TimedRobot {
public:
Robot() {}
void RobotPeriodic() override;
void SimulationPeriodic() override;
void TeleopInit() override;
void TeleopPeriodic() override;
void DisabledInit() override;
private:
frc::Joystick m_joystick{Constants::kJoystickPort};
Elevator m_elevator;
};