29#ifndef FRC_REVLIB_SRC_MAIN_NATIVE_INCLUDE_REV_SIM_SPARKEXTERNALENCODERSIM_H_
30#define FRC_REVLIB_SRC_MAIN_NATIVE_INCLUDE_REV_SIM_SPARKEXTERNALENCODERSIM_H_
34#include <frc/simulation/SimDeviceSim.h>
35#include <hal/SimDevice.h>
64 void iterate(
double velocity,
double dt);
67 void SetupSimDevice();
69 hal::SimDouble m_position;
70 hal::SimDouble m_velocity;
71 hal::SimBoolean m_isInverted;
72 hal::SimDouble m_zeroOffset;
73 hal::SimDouble m_positionConversionFactor;
74 hal::SimDouble m_velocityConversionFactor;
76 const char* simDeviceName;
Definition: SparkBase.h:57
Definition: SparkExternalEncoderSim.h:42
double GetVelocityConversionFactor() const
Definition: SparkExternalEncoderSim.cpp:100
void SetInverted(bool inverted)
Definition: SparkExternalEncoderSim.cpp:72
void SetPositionConversionFactor(double positionConversionFactor)
Definition: SparkExternalEncoderSim.cpp:86
void iterate(double velocity, double dt)
Definition: SparkExternalEncoderSim.cpp:104
SparkExternalEncoderSim(SparkFlex *motor)
Definition: SparkExternalEncoderSim.cpp:37
void SetPosition(double position)
Definition: SparkExternalEncoderSim.cpp:60
double GetPosition() const
Definition: SparkExternalEncoderSim.cpp:64
bool GetInverted() const
Definition: SparkExternalEncoderSim.cpp:76
double GetZeroOffset() const
Definition: SparkExternalEncoderSim.cpp:82
double GetVelocity() const
Definition: SparkExternalEncoderSim.cpp:70
double GetPositionConversionFactor() const
Definition: SparkExternalEncoderSim.cpp:91
void SetVelocityConversionFactor(double velocityConversionFactor)
Definition: SparkExternalEncoderSim.cpp:95
void SetZeroOffset(double zeroOffset)
Definition: SparkExternalEncoderSim.cpp:78
void SetVelocity(double velocity)
Definition: SparkExternalEncoderSim.cpp:66
Definition: SparkFlex.h:37
Definition: SparkLowLevel.cpp:40