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

#include <SparkMaxAlternateEncoderSim.h>

Public Member Functions

 SparkMaxAlternateEncoderSim (SparkMax *motor)
 
void SetPosition (double position)
 
double GetPosition () const
 
void SetVelocity (double velocity)
 
double GetVelocity () const
 
void SetInverted (bool inverted)
 
bool GetInverted () const
 
void SetZeroOffset (double zeroOffset)
 
double GetZeroOffset () const
 
void SetPositionConversionFactor (double positionConversionFactor)
 
double GetPositionConversionFactor () const
 
void SetVelocityConversionFactor (double velocityConversionFactor)
 
double GetVelocityConversionFactor () const
 
void iterate (double velocity, double dt)
 

Constructor & Destructor Documentation

◆ SparkMaxAlternateEncoderSim()

SparkMaxAlternateEncoderSim::SparkMaxAlternateEncoderSim ( SparkMax motor)
explicit

Member Function Documentation

◆ SetPosition()

void SparkMaxAlternateEncoderSim::SetPosition ( double  position)

◆ GetPosition()

double SparkMaxAlternateEncoderSim::GetPosition ( ) const

◆ SetVelocity()

void SparkMaxAlternateEncoderSim::SetVelocity ( double  velocity)

◆ GetVelocity()

double SparkMaxAlternateEncoderSim::GetVelocity ( ) const

◆ SetInverted()

void SparkMaxAlternateEncoderSim::SetInverted ( bool  inverted)

◆ GetInverted()

bool SparkMaxAlternateEncoderSim::GetInverted ( ) const

◆ SetZeroOffset()

void SparkMaxAlternateEncoderSim::SetZeroOffset ( double  zeroOffset)

◆ GetZeroOffset()

double SparkMaxAlternateEncoderSim::GetZeroOffset ( ) const

◆ SetPositionConversionFactor()

void SparkMaxAlternateEncoderSim::SetPositionConversionFactor ( double  positionConversionFactor)

◆ GetPositionConversionFactor()

double SparkMaxAlternateEncoderSim::GetPositionConversionFactor ( ) const

◆ SetVelocityConversionFactor()

void SparkMaxAlternateEncoderSim::SetVelocityConversionFactor ( double  velocityConversionFactor)

◆ GetVelocityConversionFactor()

double SparkMaxAlternateEncoderSim::GetVelocityConversionFactor ( ) const

◆ iterate()

void SparkMaxAlternateEncoderSim::iterate ( double  velocity,
double  dt 
)

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