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 std::string simDeviceName;
Definition: SparkBase.h:59
Definition: SparkExternalEncoderSim.h:42
double GetVelocityConversionFactor() const
Definition: SparkExternalEncoderSim.cpp:99
void SetInverted(bool inverted)
Definition: SparkExternalEncoderSim.cpp:71
void SetPositionConversionFactor(double positionConversionFactor)
Definition: SparkExternalEncoderSim.cpp:85
void iterate(double velocity, double dt)
Definition: SparkExternalEncoderSim.cpp:103
SparkExternalEncoderSim(SparkFlex *motor)
Definition: SparkExternalEncoderSim.cpp:37
void SetPosition(double position)
Definition: SparkExternalEncoderSim.cpp:59
double GetPosition() const
Definition: SparkExternalEncoderSim.cpp:63
bool GetInverted() const
Definition: SparkExternalEncoderSim.cpp:75
double GetZeroOffset() const
Definition: SparkExternalEncoderSim.cpp:81
double GetVelocity() const
Definition: SparkExternalEncoderSim.cpp:69
double GetPositionConversionFactor() const
Definition: SparkExternalEncoderSim.cpp:90
void SetVelocityConversionFactor(double velocityConversionFactor)
Definition: SparkExternalEncoderSim.cpp:94
void SetZeroOffset(double zeroOffset)
Definition: SparkExternalEncoderSim.cpp:77
void SetVelocity(double velocity)
Definition: SparkExternalEncoderSim.cpp:65
Definition: SparkFlex.h:37
Definition: SparkLowLevel.cpp:40