29#ifndef FRC_REVLIB_SRC_MAIN_NATIVE_INCLUDE_REV_SIM_SPARKANALOGSENSORSIM_H_
30#define FRC_REVLIB_SRC_MAIN_NATIVE_INCLUDE_REV_SIM_SPARKANALOGSENSORSIM_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_voltage;
72 hal::SimDouble m_position;
73 hal::SimDouble m_velocity;
74 hal::SimBoolean m_isInverted;
75 hal::SimDouble m_positionConversionFactor;
76 hal::SimDouble m_velocityConversionFactor;
78 std::string simDeviceName;
Definition: SparkAnalogSensorSim.h:43
void SetVoltage(double voltage)
Definition: SparkAnalogSensorSim.cpp:64
double GetPosition() const
Definition: SparkAnalogSensorSim.cpp:74
void SetPosition(double position)
Definition: SparkAnalogSensorSim.cpp:70
double GetPositionConversionFactor() const
Definition: SparkAnalogSensorSim.cpp:93
bool GetInverted() const
Definition: SparkAnalogSensorSim.cpp:86
void iterate(double velocity, double dt)
Definition: SparkAnalogSensorSim.cpp:106
void SetInverted(bool inverted)
Definition: SparkAnalogSensorSim.cpp:82
void SetPositionConversionFactor(double positionConversionFactor)
Definition: SparkAnalogSensorSim.cpp:88
SparkAnalogSensorSim(SparkMax *motor)
Definition: SparkAnalogSensorSim.cpp:37
double GetVoltage() const
Definition: SparkAnalogSensorSim.cpp:68
void SetVelocity(double velocity)
Definition: SparkAnalogSensorSim.cpp:76
double GetVelocity() const
Definition: SparkAnalogSensorSim.cpp:80
void SetVelocityConversionFactor(double velocityConversionFactor)
Definition: SparkAnalogSensorSim.cpp:97
double GetVelocityConversionFactor() const
Definition: SparkAnalogSensorSim.cpp:102
Definition: SparkBase.h:59
Definition: SparkFlex.h:37
Definition: SparkMax.h:37
Definition: SparkLowLevel.cpp:40