2018-07-12 23:11:26 -04:00
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
/* Copyright (c) 2018 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
|
|
|
|
|
|
2018-08-23 20:59:09 -04:00
|
|
|
#include "lowfisim/SimulatorComponent.h"
|
|
|
|
|
|
2018-07-12 23:11:26 -04:00
|
|
|
namespace frc {
|
|
|
|
|
namespace sim {
|
|
|
|
|
namespace lowfi {
|
|
|
|
|
|
2018-08-23 20:59:09 -04:00
|
|
|
class EncoderSim : public virtual SimulatorComponent {
|
2018-07-12 23:11:26 -04:00
|
|
|
public:
|
|
|
|
|
virtual void SetPosition(double position) = 0;
|
|
|
|
|
virtual void SetVelocity(double velocity) = 0;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace lowfi
|
|
|
|
|
} // namespace sim
|
|
|
|
|
} // namespace frc
|