2019-12-29 16:02:49 -05:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2020-06-29 22:25:09 -07:00
|
|
|
/* Copyright (c) 2019-2020 FIRST. All Rights Reserved. */
|
2019-12-29 16:02:49 -05:00
|
|
|
/* 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 <frc2/command/ProfiledPIDSubsystem.h>
|
2020-06-29 22:25:09 -07:00
|
|
|
#include <units/length.h>
|
2019-12-29 16:02:49 -05:00
|
|
|
|
|
|
|
|
class ReplaceMeProfiledPIDSubsystem
|
2020-06-29 22:25:09 -07:00
|
|
|
: public frc2::ProfiledPIDSubsystem<units::meters> {
|
2019-12-29 16:02:49 -05:00
|
|
|
public:
|
|
|
|
|
ReplaceMeProfiledPIDSubsystem();
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
void UseOutput(double output,
|
2020-06-29 22:25:09 -07:00
|
|
|
frc::TrapezoidProfile<units::meters>::State setpoint) override;
|
2019-12-29 16:02:49 -05:00
|
|
|
|
|
|
|
|
units::meter_t GetMeasurement() override;
|
|
|
|
|
};
|