Add names to simulator components (#1268)

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.
This commit is contained in:
PJ Reiniger
2018-08-23 20:59:09 -04:00
committed by Peter Johnson
parent 8d8f120cc3
commit de212a9dd0
30 changed files with 207 additions and 24 deletions

View File

@@ -7,11 +7,13 @@
#pragma once
#include "lowfisim/SimulatorComponent.h"
namespace frc {
namespace sim {
namespace lowfi {
class EncoderSim {
class EncoderSim : public virtual SimulatorComponent {
public:
virtual void SetPosition(double position) = 0;
virtual void SetVelocity(double velocity) = 0;