29#ifndef FRC_REVLIB_SRC_MAIN_NATIVE_INCLUDE_REV_SIM_SPARKMAXALTERNATEENCODERSIM_H_
30#define FRC_REVLIB_SRC_MAIN_NATIVE_INCLUDE_REV_SIM_SPARKMAXALTERNATEENCODERSIM_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: SparkMaxAlternateEncoderSim.h:42
double GetPosition() const
Definition: SparkMaxAlternateEncoderSim.cpp:63
void SetVelocity(double velocity)
Definition: SparkMaxAlternateEncoderSim.cpp:67
bool GetInverted() const
Definition: SparkMaxAlternateEncoderSim.cpp:79
double GetVelocityConversionFactor() const
Definition: SparkMaxAlternateEncoderSim.cpp:105
void SetPosition(double position)
Definition: SparkMaxAlternateEncoderSim.cpp:59
void SetZeroOffset(double zeroOffset)
Definition: SparkMaxAlternateEncoderSim.cpp:83
void SetInverted(bool inverted)
Definition: SparkMaxAlternateEncoderSim.cpp:75
void SetPositionConversionFactor(double positionConversionFactor)
Definition: SparkMaxAlternateEncoderSim.cpp:91
double GetPositionConversionFactor() const
Definition: SparkMaxAlternateEncoderSim.cpp:96
SparkMaxAlternateEncoderSim(SparkMax *motor)
Definition: SparkMaxAlternateEncoderSim.cpp:37
void SetVelocityConversionFactor(double velocityConversionFactor)
Definition: SparkMaxAlternateEncoderSim.cpp:100
void iterate(double velocity, double dt)
Definition: SparkMaxAlternateEncoderSim.cpp:109
double GetVelocity() const
Definition: SparkMaxAlternateEncoderSim.cpp:71
double GetZeroOffset() const
Definition: SparkMaxAlternateEncoderSim.cpp:87
Definition: SparkMax.h:37
Definition: SparkLowLevel.cpp:40