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 std::string simDeviceName;
Definition: SparkAbsoluteEncoderSim.h:43
double GetPosition() const
Definition: SparkAbsoluteEncoderSim.cpp:70
double GetZeroOffset() const
Definition: SparkAbsoluteEncoderSim.cpp:88
double GetVelocity() const
Definition: SparkAbsoluteEncoderSim.cpp:76
void SetVelocity(double velocity)
Definition: SparkAbsoluteEncoderSim.cpp:72
double GetPositionConversionFactor() const
Definition: SparkAbsoluteEncoderSim.cpp:97
void SetZeroOffset(double zeroOffset)
Definition: SparkAbsoluteEncoderSim.cpp:84
void SetPositionConversionFactor(double positionConversionFactor)
Definition: SparkAbsoluteEncoderSim.cpp:92
double GetVelocityConversionFactor() const
Definition: SparkAbsoluteEncoderSim.cpp:106
void SetPosition(double position)
Definition: SparkAbsoluteEncoderSim.cpp:66
void SetVelocityConversionFactor(double velocityConversionFactor)
Definition: SparkAbsoluteEncoderSim.cpp:101
SparkAbsoluteEncoderSim(SparkMax *motor)
Definition: SparkAbsoluteEncoderSim.cpp:37
void SetInverted(bool inverted)
Definition: SparkAbsoluteEncoderSim.cpp:78
void iterate(double velocity, double dt)
Definition: SparkAbsoluteEncoderSim.cpp:110
bool GetInverted() const
Definition: SparkAbsoluteEncoderSim.cpp:82
Definition: SparkBase.h:59
Definition: SparkFlex.h:37
Definition: SparkMax.h:37
Definition: SparkLowLevel.cpp:40