mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
Add gyro and accelerometer simulator wrappers (#1183)
This commit is contained in:
committed by
Peter Johnson
parent
0a0d9245e2
commit
c2ceebfb9c
@@ -5,9 +5,8 @@
|
||||
/* the project. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#include "ADXL345_I2C.h"
|
||||
#include "ADXL345_I2CAccelerometerData.h"
|
||||
#include "Talon.h"
|
||||
#include "frc/ADXL345_I2C.h"
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
class ADXL345_I2CAccelerometerTest
|
||||
@@ -44,4 +43,5 @@ TEST_P(ADXL345_I2CAccelerometerTest, TestAccelerometer) {
|
||||
|
||||
INSTANTIATE_TEST_CASE_P(ADXL345_I2CAccelerometerTest,
|
||||
ADXL345_I2CAccelerometerTest,
|
||||
::testing::Values(frc::I2C::kOnboard, frc::I2C::kMXP));
|
||||
::testing::Values(frc::I2C::kOnboard,
|
||||
frc::I2C::kMXP), );
|
||||
|
||||
@@ -5,9 +5,8 @@
|
||||
/* the project. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#include "ADXL345_SPI.h"
|
||||
#include "ADXL345_SpiAccelerometerData.h"
|
||||
#include "Talon.h"
|
||||
#include "frc/ADXL345_SPI.h"
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
class ADXL345_SpiAccelerometerTest
|
||||
@@ -46,4 +45,4 @@ INSTANTIATE_TEST_CASE_P(
|
||||
ADXL345_SpiAccelerometerTest, ADXL345_SpiAccelerometerTest,
|
||||
::testing::Values(frc::SPI::kOnboardCS0, frc::SPI::kOnboardCS1,
|
||||
frc::SPI::kOnboardCS2, frc::SPI::kOnboardCS3,
|
||||
frc::SPI::kMXP));
|
||||
frc::SPI::kMXP), );
|
||||
|
||||
@@ -5,9 +5,8 @@
|
||||
/* the project. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#include "ADXL362.h"
|
||||
#include "ADXL362_SpiAccelerometerData.h"
|
||||
#include "Talon.h"
|
||||
#include "frc/ADXL362.h"
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
class ADXL362_SpiAccelerometerTest
|
||||
@@ -46,4 +45,4 @@ INSTANTIATE_TEST_CASE_P(
|
||||
ADXL362_SpiAccelerometerTest, ADXL362_SpiAccelerometerTest,
|
||||
::testing::Values(frc::SPI::kOnboardCS0, frc::SPI::kOnboardCS1,
|
||||
frc::SPI::kOnboardCS2, frc::SPI::kOnboardCS3,
|
||||
frc::SPI::kMXP));
|
||||
frc::SPI::kMXP), );
|
||||
|
||||
@@ -5,9 +5,8 @@
|
||||
/* the project. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#include "ADXRS450_Gyro.h"
|
||||
#include "ADXRS450_SpiGyroWrapperData.h"
|
||||
#include "Talon.h"
|
||||
#include "frc/ADXRS450_Gyro.h"
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
class ADXRS450_SpiGyroWrapperTest
|
||||
@@ -33,4 +32,4 @@ INSTANTIATE_TEST_CASE_P(
|
||||
ADXRS450_SpiGyroWrapperTest, ADXRS450_SpiGyroWrapperTest,
|
||||
::testing::Values(frc::SPI::kOnboardCS0, frc::SPI::kOnboardCS1,
|
||||
frc::SPI::kOnboardCS2, frc::SPI::kOnboardCS3,
|
||||
frc::SPI::kMXP));
|
||||
frc::SPI::kMXP), );
|
||||
|
||||
Reference in New Issue
Block a user