mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[sim] Add sim wrappers for sensors that use SimDevice (#3517)
This commit is contained in:
@@ -75,6 +75,10 @@ ADXL362::ADXL362(SPI::Port port, Range range)
|
||||
wpi::SendableRegistry::AddLW(this, "ADXL362", port);
|
||||
}
|
||||
|
||||
SPI::Port ADXL362::GetSpiPort() const {
|
||||
return m_spi.GetPort();
|
||||
}
|
||||
|
||||
void ADXL362::SetRange(Range range) {
|
||||
if (m_gsPerLSB == 0.0) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user