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

#include <SparkSim.h>

Inherited by rev::spark::SparkFlexSim, and rev::spark::SparkMaxSim.

Public Member Functions

 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

◆ SparkSim()

SparkSim::SparkSim ( SparkBase spark,
frc::DCMotor *  motor 
)

Member Function Documentation

◆ GetAppliedOutput()

double SparkSim::GetAppliedOutput ( ) const

◆ SetAppliedOutput()

void SparkSim::SetAppliedOutput ( double  appliedOutput)

◆ GetSetpoint()

double SparkSim::GetSetpoint ( ) const

◆ GetClosedLoopSlot()

ClosedLoopSlot SparkSim::GetClosedLoopSlot ( ) const

◆ iterate()

void SparkSim::iterate ( double  velocity,
double  vbus,
double  dt 
)

◆ GetVelocity()

double SparkSim::GetVelocity ( ) const

◆ SetVelocity()

void SparkSim::SetVelocity ( double  velocity)

◆ GetPosition()

double SparkSim::GetPosition ( ) const

◆ SetPosition()

void SparkSim::SetPosition ( double  position)

◆ GetBusVoltage()

double SparkSim::GetBusVoltage ( ) const

◆ SetBusVoltage()

void SparkSim::SetBusVoltage ( double  voltage)

◆ GetMotorCurrent()

double SparkSim::GetMotorCurrent ( ) const

◆ SetMotorCurrent()

void SparkSim::SetMotorCurrent ( double  current)

◆ enable()

void SparkSim::enable ( )

◆ disable()

void SparkSim::disable ( )

◆ useDriverStationEnable()

void SparkSim::useDriverStationEnable ( )

◆ GetRelativeEncoderSim()

SparkRelativeEncoderSim SparkSim::GetRelativeEncoderSim ( )

◆ GetAbsoluteEncoderSim()

SparkAbsoluteEncoderSim SparkSim::GetAbsoluteEncoderSim ( )

◆ GetAnalogSensorSim()

SparkAnalogSensorSim SparkSim::GetAnalogSensorSim ( )

◆ GetForwardLimitSwitchSim()

SparkLimitSwitchSim SparkSim::GetForwardLimitSwitchSim ( )

◆ GetReverseLimitSwitchSim()

SparkLimitSwitchSim SparkSim::GetReverseLimitSwitchSim ( )

◆ GetFaultManager()

SparkSimFaultManager SparkSim::GetFaultManager ( )

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