WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
wpi::sim::AnalogEncoderSim Class Reference

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

#include <wpi/simulation/AnalogEncoderSim.hpp>

Public Member Functions

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

Detailed Description

Class to control a simulated analog encoder.

Constructor & Destructor Documentation

◆ AnalogEncoderSim()

wpi::sim::AnalogEncoderSim::AnalogEncoderSim ( const AnalogEncoder & encoder)
explicit

Constructs from an AnalogEncoder object.

Parameters
encoderAnalogEncoder to simulate

Member Function Documentation

◆ Get()

double wpi::sim::AnalogEncoderSim::Get ( )

Get the simulated position.

◆ Set()

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

Set the position.

Parameters
valueThe position.

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