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

#include <SparkAnalogSensorSim.h>

Public Member Functions

 SparkAnalogSensorSim (SparkMax *motor)
 
 SparkAnalogSensorSim (SparkFlex *motor)
 
void SetVoltage (double voltage)
 
double GetVoltage () const
 
void SetPosition (double position)
 
double GetPosition () const
 
void SetVelocity (double velocity)
 
double GetVelocity () const
 
void SetInverted (bool inverted)
 
bool GetInverted () const
 
void iterate (double velocity, double dt)
 

Constructor & Destructor Documentation

◆ SparkAnalogSensorSim() [1/2]

SparkAnalogSensorSim::SparkAnalogSensorSim ( SparkMax * motor)
explicit

◆ SparkAnalogSensorSim() [2/2]

SparkAnalogSensorSim::SparkAnalogSensorSim ( SparkFlex * motor)
explicit

Member Function Documentation

◆ SetVoltage()

void SparkAnalogSensorSim::SetVoltage ( double voltage)

◆ GetVoltage()

double SparkAnalogSensorSim::GetVoltage ( ) const

◆ SetPosition()

void SparkAnalogSensorSim::SetPosition ( double position)

◆ GetPosition()

double SparkAnalogSensorSim::GetPosition ( ) const

◆ SetVelocity()

void SparkAnalogSensorSim::SetVelocity ( double velocity)

◆ GetVelocity()

double SparkAnalogSensorSim::GetVelocity ( ) const

◆ SetInverted()

void SparkAnalogSensorSim::SetInverted ( bool inverted)

◆ GetInverted()

bool SparkAnalogSensorSim::GetInverted ( ) const

◆ iterate()

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

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