WPILibC++ 2025.0.0-alpha-1-10-g1ccd8d1
frc::sim::AnalogEncoderSim Class Reference

Class to control a simulated analog encoder. More...

#include <frc/simulation/AnalogEncoderSim.h>

Public Member Functions

 AnalogEncoderSim (const AnalogEncoder &encoder)
 Constructs from an AnalogEncoder object. More...
 
void Set (double value)
 Set the position. More...
 
double Get ()
 Get the simulated position. More...
 

Detailed Description

Class to control a simulated analog encoder.

Constructor & Destructor Documentation

◆ AnalogEncoderSim()

frc::sim::AnalogEncoderSim::AnalogEncoderSim ( const AnalogEncoder encoder)
explicit

Constructs from an AnalogEncoder object.

Parameters
encoderAnalogEncoder to simulate

Member Function Documentation

◆ Get()

double frc::sim::AnalogEncoderSim::Get ( )

Get the simulated position.

◆ Set()

void frc::sim::AnalogEncoderSim::Set ( double  value)

Set the position.

Parameters
valueThe position.

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