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 const char* simDeviceName;
Definition: SparkBase.h:57
Definition: SparkMaxAlternateEncoderSim.h:42
double GetPosition() const
Definition: SparkMaxAlternateEncoderSim.cpp:64
void SetVelocity(double velocity)
Definition: SparkMaxAlternateEncoderSim.cpp:68
bool GetInverted() const
Definition: SparkMaxAlternateEncoderSim.cpp:80
double GetVelocityConversionFactor() const
Definition: SparkMaxAlternateEncoderSim.cpp:106
void SetPosition(double position)
Definition: SparkMaxAlternateEncoderSim.cpp:60
void SetZeroOffset(double zeroOffset)
Definition: SparkMaxAlternateEncoderSim.cpp:84
void SetInverted(bool inverted)
Definition: SparkMaxAlternateEncoderSim.cpp:76
void SetPositionConversionFactor(double positionConversionFactor)
Definition: SparkMaxAlternateEncoderSim.cpp:92
double GetPositionConversionFactor() const
Definition: SparkMaxAlternateEncoderSim.cpp:97
SparkMaxAlternateEncoderSim(SparkMax *motor)
Definition: SparkMaxAlternateEncoderSim.cpp:37
void SetVelocityConversionFactor(double velocityConversionFactor)
Definition: SparkMaxAlternateEncoderSim.cpp:101
void iterate(double velocity, double dt)
Definition: SparkMaxAlternateEncoderSim.cpp:110
double GetVelocity() const
Definition: SparkMaxAlternateEncoderSim.cpp:72
double GetZeroOffset() const
Definition: SparkMaxAlternateEncoderSim.cpp:88
Definition: SparkMax.h:37
Definition: SparkLowLevel.cpp:40