mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
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:
committed by
Peter Johnson
parent
8d8f120cc3
commit
de212a9dd0
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user