mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Makes configuration easier when you can associate the items with a name instead of just a port number. Important if there is a GUI added at some point.
25 lines
822 B
C++
25 lines
822 B
C++
/*----------------------------------------------------------------------------*/
|
|
/* 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
|
|
|
|
#include "lowfisim/SimulatorComponent.h"
|
|
|
|
namespace frc {
|
|
namespace sim {
|
|
namespace lowfi {
|
|
|
|
class EncoderSim : public virtual SimulatorComponent {
|
|
public:
|
|
virtual void SetPosition(double position) = 0;
|
|
virtual void SetVelocity(double velocity) = 0;
|
|
};
|
|
|
|
} // namespace lowfi
|
|
} // namespace sim
|
|
} // namespace frc
|