Definition: SPIAccelerometerSim.h:12
SPIAccelerometerSim(int index)
Construct a new simulation object.
double GetY() const
Measure the Y axis value.
void SetRange(int range)
Change the range of this accelerometer.
std::unique_ptr< CallbackStore > RegisterActiveCallback(NotifyCallback callback, bool initialNotify)
Register a callback to be run when this accelerometer activates.
std::unique_ptr< CallbackStore > RegisterXCallback(NotifyCallback callback, bool initialNotify)
Register a callback to be run whenever the X axis value changes.
void SetActive(bool active)
Define whether this accelerometer is active.
void SetY(double y)
Change the Y axis value of the accelerometer.
int GetRange() const
Check the range of this accelerometer.
std::unique_ptr< CallbackStore > RegisterYCallback(NotifyCallback callback, bool initialNotify)
Register a callback to be run whenever the Y axis value changes.
std::unique_ptr< CallbackStore > RegisterRangeCallback(NotifyCallback callback, bool initialNotify)
Register a callback to be run whenever the range changes.
double GetX() const
Measure the X axis value.
void SetX(double x)
Change the X axis value of the accelerometer.
void ResetData()
Reset all simulation data of this object.
bool GetActive() const
Check whether the accelerometer is active.
void SetZ(double z)
Change the Z axis value of the accelerometer.
double GetZ() const
Measure the Z axis value.
std::unique_ptr< CallbackStore > RegisterZCallback(NotifyCallback callback, bool initialNotify)
Register a callback to be run whenever the Z axis value changes.
const Scalar & y
Definition: MathFunctions.h:821
Definition: BatterySim.h:14
std::function< void(std::string_view, const HAL_Value *)> NotifyCallback
Definition: CallbackStore.h:14