mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[sim] Add AnalogEncoderSim (#2647)
This commit is contained in:
@@ -94,6 +94,8 @@ void AnalogEncoder::Reset() {
|
||||
m_positionOffset = m_analogInput->GetVoltage();
|
||||
}
|
||||
|
||||
int AnalogEncoder::GetChannel() const { return m_analogInput->GetChannel(); }
|
||||
|
||||
void AnalogEncoder::InitSendable(SendableBuilder& builder) {
|
||||
builder.SetSmartDashboardType("AbsoluteEncoder");
|
||||
builder.AddDoubleProperty(
|
||||
|
||||
Reference in New Issue
Block a user