[wpilib] Add ADXRS450_GyroSim (#2800)

Closes #2760.
This commit is contained in:
Tyler Veness
2020-10-22 20:40:27 -07:00
committed by GitHub
parent abbf9f01ab
commit fb7b41793b
6 changed files with 159 additions and 2 deletions

View File

@@ -92,8 +92,16 @@ class ADXRS450_Gyro : public GyroBase {
*/
void Calibrate() override;
/**
* Get the SPI port number.
*
* @return The SPI port number.
*/
int GetPort() const;
private:
SPI m_spi;
SPI::Port m_port;
hal::SimDevice m_simDevice;
hal::SimDouble m_simAngle;