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

26 lines
670 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:56:21 -05:00
#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.
*/
2025-11-07 20:00:05 -05:00
class Robot : public wpi::TimedRobot {
public:
Robot() {}
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{kJoystickPort};
Arm m_arm;
};