Implement sim devices for ADXL345, ADXL362, ADXRS450, Ultrasonic

This makes the halsim_adx_gyro_accelerometer simulation plugin and
the accelerometer part of lowfi_simulation obsolete.
This commit is contained in:
Peter Johnson
2019-09-29 00:57:16 -07:00
parent aa90645865
commit a9f0e46680
42 changed files with 371 additions and 1337 deletions

View File

@@ -9,6 +9,8 @@
#include <stdint.h>
#include <hal/SimDevice.h>
#include "frc/GyroBase.h"
#include "frc/SPI.h"
@@ -94,6 +96,10 @@ class ADXRS450_Gyro : public GyroBase {
private:
SPI m_spi;
hal::SimDevice m_simDevice;
hal::SimDouble m_simAngle;
hal::SimDouble m_simRate;
uint16_t ReadRegister(int reg);
};