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 const char* simDeviceName;
Definition: SparkAnalogSensorSim.h:43
void SetVoltage(double voltage)
Definition: SparkAnalogSensorSim.cpp:66
double GetPosition() const
Definition: SparkAnalogSensorSim.cpp:76
void SetPosition(double position)
Definition: SparkAnalogSensorSim.cpp:72
double GetPositionConversionFactor() const
Definition: SparkAnalogSensorSim.cpp:95
bool GetInverted() const
Definition: SparkAnalogSensorSim.cpp:88
void iterate(double velocity, double dt)
Definition: SparkAnalogSensorSim.cpp:108
void SetInverted(bool inverted)
Definition: SparkAnalogSensorSim.cpp:84
void SetPositionConversionFactor(double positionConversionFactor)
Definition: SparkAnalogSensorSim.cpp:90
SparkAnalogSensorSim(SparkMax *motor)
Definition: SparkAnalogSensorSim.cpp:37
double GetVoltage() const
Definition: SparkAnalogSensorSim.cpp:70
void SetVelocity(double velocity)
Definition: SparkAnalogSensorSim.cpp:78
double GetVelocity() const
Definition: SparkAnalogSensorSim.cpp:82
void SetVelocityConversionFactor(double velocityConversionFactor)
Definition: SparkAnalogSensorSim.cpp:99
double GetVelocityConversionFactor() const
Definition: SparkAnalogSensorSim.cpp:104
Definition: SparkBase.h:57
Definition: SparkFlex.h:37
Definition: SparkMax.h:37
Definition: SparkLowLevel.cpp:40