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 std::string simDeviceName;
Definition: SparkBase.h:59
Definition: SparkFlex.h:37
Definition: SparkMax.h:37
Definition: SparkRelativeEncoderSim.h:43
void iterate(double velocity, double dt)
Definition: SparkRelativeEncoderSim.cpp:108
void SetVelocity(double velocity)
Definition: SparkRelativeEncoderSim.cpp:70
double GetPositionConversionFactor() const
Definition: SparkRelativeEncoderSim.cpp:95
void SetZeroOffset(double zeroOffset)
Definition: SparkRelativeEncoderSim.cpp:82
double GetPosition() const
Definition: SparkRelativeEncoderSim.cpp:68
void SetPositionConversionFactor(double positionConversionFactor)
Definition: SparkRelativeEncoderSim.cpp:90
void SetVelocityConversionFactor(double velocityConversionFactor)
Definition: SparkRelativeEncoderSim.cpp:99
bool GetInverted() const
Definition: SparkRelativeEncoderSim.cpp:80
void SetInverted(bool inverted)
Definition: SparkRelativeEncoderSim.cpp:76
double GetZeroOffset() const
Definition: SparkRelativeEncoderSim.cpp:86
double GetVelocityConversionFactor() const
Definition: SparkRelativeEncoderSim.cpp:104
double GetVelocity() const
Definition: SparkRelativeEncoderSim.cpp:74
void SetPosition(double position)
Definition: SparkRelativeEncoderSim.cpp:64
SparkRelativeEncoderSim(SparkMax *motor)
Definition: SparkRelativeEncoderSim.cpp:35
Definition: SparkLowLevel.cpp:40