Simulates an absolute or relative encoder mapping to mechanical state.
More...
#include <encoder_sim.hpp>
|
| | EncoderSim ()=default |
| virtual | ~EncoderSim ()=default |
| virtual double | GetPosition () const =0 |
| | Returns the simulated raw position or tick count.
|
| virtual double | GetRate () const =0 |
| | Returns the simulated velocity/rate.
|
Simulates an absolute or relative encoder mapping to mechanical state.
◆ EncoderSim()
| frcsim::EncoderSim::EncoderSim |
( |
| ) |
|
|
default |
◆ ~EncoderSim()
| virtual frcsim::EncoderSim::~EncoderSim |
( |
| ) |
|
|
virtualdefault |
◆ GetPosition()
| virtual double frcsim::EncoderSim::GetPosition |
( |
| ) |
const |
|
pure virtual |
Returns the simulated raw position or tick count.
- Returns
- Simulated position.
◆ GetRate()
| virtual double frcsim::EncoderSim::GetRate |
( |
| ) |
const |
|
pure virtual |
Returns the simulated velocity/rate.
- Returns
- Simulated rate.
The documentation for this class was generated from the following file: