/*----------------------------------------------------------------------------*/ /* Copyright (c) 2019 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ /*----------------------------------------------------------------------------*/ #pragma once #include #include #include #include "ExampleSmartMotorController.h" /** * A robot arm subsystem that moves with a motion profile. */ class ArmSubsystem : public frc2::TrapezoidProfileSubsystem { using State = frc::TrapezoidProfile::State; public: ArmSubsystem(); void UseState(State setpoint) override; private: ExampleSmartMotorController m_motor; frc::ArmFeedforward m_feedforward; };