REVLib - C++
Loading...
Searching...
No Matches
rev::spark::SparkAbsoluteEncoderSim Class Reference

#include <SparkAbsoluteEncoderSim.h>

Public Member Functions

 SparkAbsoluteEncoderSim (SparkMax *motor)
 
 SparkAbsoluteEncoderSim (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 iterate (double velocity, double dt)
 

Constructor & Destructor Documentation

◆ SparkAbsoluteEncoderSim() [1/2]

SparkAbsoluteEncoderSim::SparkAbsoluteEncoderSim ( SparkMax * motor)
explicit

◆ SparkAbsoluteEncoderSim() [2/2]

SparkAbsoluteEncoderSim::SparkAbsoluteEncoderSim ( SparkFlex * motor)
explicit

Member Function Documentation

◆ SetPosition()

void SparkAbsoluteEncoderSim::SetPosition ( double position)

◆ GetPosition()

double SparkAbsoluteEncoderSim::GetPosition ( ) const

◆ SetVelocity()

void SparkAbsoluteEncoderSim::SetVelocity ( double velocity)

◆ GetVelocity()

double SparkAbsoluteEncoderSim::GetVelocity ( ) const

◆ SetInverted()

void SparkAbsoluteEncoderSim::SetInverted ( bool inverted)

◆ GetInverted()

bool SparkAbsoluteEncoderSim::GetInverted ( ) const

◆ SetZeroOffset()

void SparkAbsoluteEncoderSim::SetZeroOffset ( double zeroOffset)

◆ GetZeroOffset()

double SparkAbsoluteEncoderSim::GetZeroOffset ( ) const

◆ iterate()

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

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