2020-12-26 14:12:05 -08:00
|
|
|
// 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.
|
2019-12-29 16:02:49 -05:00
|
|
|
|
|
|
|
|
#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;
|
|
|
|
|
};
|