Files
allwpilib/wpilibcExamples/src/main/cpp/examples/ArmSimulation/include/Robot.hpp
Peter Johnson 5c9c45fadb [cscore, wpilibcExamples] Use double-quote includes for wpi/ (#8346)
Use ERR and WARN in cscore to avoid conflict with Windows headers.
2025-11-08 16:58:51 -08:00

26 lines
670 B
C++

// 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 "subsystems/Arm.hpp"
#include "wpi/driverstation/Joystick.hpp"
#include "wpi/framework/TimedRobot.hpp"
/**
* This is a sample program to demonstrate the use of arm simulation.
*/
class Robot : public wpi::TimedRobot {
public:
Robot() {}
void SimulationPeriodic() override;
void TeleopInit() override;
void TeleopPeriodic() override;
void DisabledInit() override;
private:
wpi::Joystick m_joystick{kJoystickPort};
Arm m_arm;
};