mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-03 03:01:44 +00:00
Move mockdata/HAL_Value.h to hal/Value.h
Also prefix the MakeBoolean et al functions with HAL_ to avoid namespace pollution.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
|
||||
/* Copyright (c) 2017-2019 FIRST. All Rights Reserved. */
|
||||
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
||||
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
||||
/* the project. */
|
||||
@@ -38,7 +38,7 @@ class ADXRS450_SpiGyroWrapper {
|
||||
|
||||
HAL_SIMDATAVALUE_DEFINE_NAME(Angle)
|
||||
|
||||
SimDataValue<double, MakeDouble, GetAngleName> m_angle{0.0};
|
||||
SimDataValue<double, HAL_MakeDouble, GetAngleName> m_angle{0.0};
|
||||
double m_angleDiff = 0.0;
|
||||
|
||||
static const double kAngleLsb;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
|
||||
/* Copyright (c) 2017-2019 FIRST. All Rights Reserved. */
|
||||
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
||||
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
||||
/* the project. */
|
||||
@@ -30,9 +30,9 @@ class ThreeAxisAccelerometerData {
|
||||
double GetZ() { return z; }
|
||||
void SetZ(double z_) { z = z_; }
|
||||
|
||||
SimDataValue<double, MakeDouble, GetXName> x{0.0};
|
||||
SimDataValue<double, MakeDouble, GetYName> y{0.0};
|
||||
SimDataValue<double, MakeDouble, GetZName> z{0.0};
|
||||
SimDataValue<double, HAL_MakeDouble, GetXName> x{0.0};
|
||||
SimDataValue<double, HAL_MakeDouble, GetYName> y{0.0};
|
||||
SimDataValue<double, HAL_MakeDouble, GetZName> z{0.0};
|
||||
|
||||
virtual void ResetData();
|
||||
};
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
|
||||
/* Copyright (c) 2017-2019 FIRST. All Rights Reserved. */
|
||||
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
||||
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
||||
/* the project. */
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include <mockdata/HAL_Value.h>
|
||||
#include <hal/Value.h>
|
||||
#include <mockdata/NotifyListener.h>
|
||||
#include <mockdata/PWMData.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user