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

#include <SparkRelativeEncoderSim.h>

Public Member Functions

 SparkRelativeEncoderSim (SparkMax *motor)
 
 SparkRelativeEncoderSim (SparkFlex *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

◆ SparkRelativeEncoderSim() [1/2]

SparkRelativeEncoderSim::SparkRelativeEncoderSim ( SparkMax motor)
explicit

◆ SparkRelativeEncoderSim() [2/2]

SparkRelativeEncoderSim::SparkRelativeEncoderSim ( SparkFlex motor)
explicit

Member Function Documentation

◆ SetPosition()

void SparkRelativeEncoderSim::SetPosition ( double  position)

◆ GetPosition()

double SparkRelativeEncoderSim::GetPosition ( ) const

◆ SetVelocity()

void SparkRelativeEncoderSim::SetVelocity ( double  velocity)

◆ GetVelocity()

double SparkRelativeEncoderSim::GetVelocity ( ) const

◆ SetInverted()

void SparkRelativeEncoderSim::SetInverted ( bool  inverted)

◆ GetInverted()

bool SparkRelativeEncoderSim::GetInverted ( ) const

◆ SetZeroOffset()

void SparkRelativeEncoderSim::SetZeroOffset ( double  zeroOffset)

◆ GetZeroOffset()

double SparkRelativeEncoderSim::GetZeroOffset ( ) const

◆ SetPositionConversionFactor()

void SparkRelativeEncoderSim::SetPositionConversionFactor ( double  positionConversionFactor)

◆ GetPositionConversionFactor()

double SparkRelativeEncoderSim::GetPositionConversionFactor ( ) const

◆ SetVelocityConversionFactor()

void SparkRelativeEncoderSim::SetVelocityConversionFactor ( double  velocityConversionFactor)

◆ GetVelocityConversionFactor()

double SparkRelativeEncoderSim::GetVelocityConversionFactor ( ) const

◆ iterate()

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

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