JSim 2026.06.01-p(1)
Loading...
Searching...
No Matches
encoder_sim.hpp
Go to the documentation of this file.
1// Copyright (c) JSim contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the LGPLv3 license file in the root directory of this project.
4
5#pragma once
6
8
9namespace frcsim {
10
15public:
16 EncoderSim() = default;
17 virtual ~EncoderSim() = default;
18
23 virtual double GetPosition() const = 0;
24
29 virtual double GetRate() const = 0;
30};
31
32} // namespace frcsim
virtual ~EncoderSim()=default
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.
Definition vector.hpp:13