REVLib - C++
rev::spark::SparkMaxSim Class Reference

#include <SparkMaxSim.h>

Inherits rev::spark::SparkSim.

Public Member Functions

 SparkMaxSim (SparkMax *sparkMax, frc::DCMotor *motor)
 
SparkMaxAlternateEncoderSim GetAlternateEncoderSim ()
 
- Public Member Functions inherited from rev::spark::SparkSim
 SparkSim (SparkBase *spark, frc::DCMotor *motor)
 
double GetAppliedOutput () const
 
void SetAppliedOutput (double appliedOutput)
 
double GetSetpoint () const
 
ClosedLoopSlot GetClosedLoopSlot () const
 
void iterate (double velocity, double vbus, double dt)
 
double GetVelocity () const
 
void SetVelocity (double velocity)
 
double GetPosition () const
 
void SetPosition (double position)
 
double GetBusVoltage () const
 
void SetBusVoltage (double voltage)
 
double GetMotorCurrent () const
 
void SetMotorCurrent (double current)
 
void enable ()
 
void disable ()
 
void useDriverStationEnable ()
 
SparkRelativeEncoderSim GetRelativeEncoderSim ()
 
SparkAbsoluteEncoderSim GetAbsoluteEncoderSim ()
 
SparkAnalogSensorSim GetAnalogSensorSim ()
 
SparkLimitSwitchSim GetForwardLimitSwitchSim ()
 
SparkLimitSwitchSim GetReverseLimitSwitchSim ()
 
SparkSimFaultManager GetFaultManager ()
 

Constructor & Destructor Documentation

◆ SparkMaxSim()

SparkMaxSim::SparkMaxSim ( SparkMax sparkMax,
frc::DCMotor *  motor 
)

Member Function Documentation

◆ GetAlternateEncoderSim()

SparkMaxAlternateEncoderSim SparkMaxSim::GetAlternateEncoderSim ( )

The documentation for this class was generated from the following files: