2017-10-16 22:54:36 -04:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2018-01-02 09:20:21 -08:00
|
|
|
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
|
2017-10-16 22:54:36 -04: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 "SpeedController.h"
|
|
|
|
|
|
|
|
|
|
namespace frc {
|
|
|
|
|
|
|
|
|
|
class MockSpeedController : public SpeedController {
|
|
|
|
|
public:
|
|
|
|
|
void Set(double speed) override;
|
|
|
|
|
double Get() const override;
|
|
|
|
|
void SetInverted(bool isInverted) override;
|
|
|
|
|
bool GetInverted() const override;
|
|
|
|
|
void Disable() override;
|
|
|
|
|
void StopMotor() override;
|
|
|
|
|
|
|
|
|
|
void PIDWrite(double output) override;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
double m_speed = 0.0;
|
|
|
|
|
bool m_isInverted = false;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace frc
|