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

#include <SparkExternalEncoderSim.h>

Public Member Functions

 SparkExternalEncoderSim (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

◆ SparkExternalEncoderSim()

SparkExternalEncoderSim::SparkExternalEncoderSim ( SparkFlex motor)
explicit

Member Function Documentation

◆ SetPosition()

void SparkExternalEncoderSim::SetPosition ( double  position)

◆ GetPosition()

double SparkExternalEncoderSim::GetPosition ( ) const

◆ SetVelocity()

void SparkExternalEncoderSim::SetVelocity ( double  velocity)

◆ GetVelocity()

double SparkExternalEncoderSim::GetVelocity ( ) const

◆ SetInverted()

void SparkExternalEncoderSim::SetInverted ( bool  inverted)

◆ GetInverted()

bool SparkExternalEncoderSim::GetInverted ( ) const

◆ SetZeroOffset()

void SparkExternalEncoderSim::SetZeroOffset ( double  zeroOffset)

◆ GetZeroOffset()

double SparkExternalEncoderSim::GetZeroOffset ( ) const

◆ SetPositionConversionFactor()

void SparkExternalEncoderSim::SetPositionConversionFactor ( double  positionConversionFactor)

◆ GetPositionConversionFactor()

double SparkExternalEncoderSim::GetPositionConversionFactor ( ) const

◆ SetVelocityConversionFactor()

void SparkExternalEncoderSim::SetVelocityConversionFactor ( double  velocityConversionFactor)

◆ GetVelocityConversionFactor()

double SparkExternalEncoderSim::GetVelocityConversionFactor ( ) const

◆ iterate()

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

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