[sim] Add AnalogEncoderSim (#2647)

This commit is contained in:
Matt
2020-08-19 22:59:52 -07:00
committed by GitHub
parent 932bfcf374
commit 9398b6b55b
8 changed files with 237 additions and 1 deletions

View File

@@ -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(