29#ifndef FRC_REVLIB_SRC_MAIN_NATIVE_INCLUDE_REV_SIM_SPARKRELATIVEENCODERSIM_H_
30#define FRC_REVLIB_SRC_MAIN_NATIVE_INCLUDE_REV_SIM_SPARKRELATIVEENCODERSIM_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: SparkBase.h:57
Definition: SparkFlex.h:37
Definition: SparkMax.h:37
Definition: SparkRelativeEncoderSim.h:43
void iterate(double velocity, double dt)
Definition: SparkRelativeEncoderSim.cpp:110
void SetVelocity(double velocity)
Definition: SparkRelativeEncoderSim.cpp:72
double GetPositionConversionFactor() const
Definition: SparkRelativeEncoderSim.cpp:97
void SetZeroOffset(double zeroOffset)
Definition: SparkRelativeEncoderSim.cpp:84
double GetPosition() const
Definition: SparkRelativeEncoderSim.cpp:70
void SetPositionConversionFactor(double positionConversionFactor)
Definition: SparkRelativeEncoderSim.cpp:92
void SetVelocityConversionFactor(double velocityConversionFactor)
Definition: SparkRelativeEncoderSim.cpp:101
bool GetInverted() const
Definition: SparkRelativeEncoderSim.cpp:82
void SetInverted(bool inverted)
Definition: SparkRelativeEncoderSim.cpp:78
double GetZeroOffset() const
Definition: SparkRelativeEncoderSim.cpp:88
double GetVelocityConversionFactor() const
Definition: SparkRelativeEncoderSim.cpp:106
double GetVelocity() const
Definition: SparkRelativeEncoderSim.cpp:76
void SetPosition(double position)
Definition: SparkRelativeEncoderSim.cpp:66
SparkRelativeEncoderSim(SparkMax *motor)
Definition: SparkRelativeEncoderSim.cpp:35
Definition: SparkLowLevel.cpp:40