29#ifndef FRC_REVLIB_SRC_MAIN_NATIVE_INCLUDE_REV_SIM_SPARKABSOLUTEENCODERSIM_H_
30#define FRC_REVLIB_SRC_MAIN_NATIVE_INCLUDE_REV_SIM_SPARKABSOLUTEENCODERSIM_H_
34#include <frc/simulation/SimDeviceSim.h>
35#include <hal/SimDevice.h>
66 void iterate(
double velocity,
double dt);
69 void SetupSimDevice();
71 hal::SimDouble m_position;
72 hal::SimDouble m_velocity;
73 hal::SimBoolean m_isInverted;
74 hal::SimDouble m_zeroOffset;
75 hal::SimDouble m_positionConversionFactor;
76 hal::SimDouble m_velocityConversionFactor;
78 const char* simDeviceName;
Definition: SparkAbsoluteEncoderSim.h:43
double GetPosition() const
Definition: SparkAbsoluteEncoderSim.cpp:72
double GetZeroOffset() const
Definition: SparkAbsoluteEncoderSim.cpp:90
double GetVelocity() const
Definition: SparkAbsoluteEncoderSim.cpp:78
void SetVelocity(double velocity)
Definition: SparkAbsoluteEncoderSim.cpp:74
double GetPositionConversionFactor() const
Definition: SparkAbsoluteEncoderSim.cpp:99
void SetZeroOffset(double zeroOffset)
Definition: SparkAbsoluteEncoderSim.cpp:86
void SetPositionConversionFactor(double positionConversionFactor)
Definition: SparkAbsoluteEncoderSim.cpp:94
double GetVelocityConversionFactor() const
Definition: SparkAbsoluteEncoderSim.cpp:108
void SetPosition(double position)
Definition: SparkAbsoluteEncoderSim.cpp:68
void SetVelocityConversionFactor(double velocityConversionFactor)
Definition: SparkAbsoluteEncoderSim.cpp:103
SparkAbsoluteEncoderSim(SparkMax *motor)
Definition: SparkAbsoluteEncoderSim.cpp:37
void SetInverted(bool inverted)
Definition: SparkAbsoluteEncoderSim.cpp:80
void iterate(double velocity, double dt)
Definition: SparkAbsoluteEncoderSim.cpp:112
bool GetInverted() const
Definition: SparkAbsoluteEncoderSim.cpp:84
Definition: SparkBase.h:57
Definition: SparkFlex.h:37
Definition: SparkMax.h:37
Definition: SparkLowLevel.cpp:40