mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
[wpilib] Const-qualify EncoderSim getters (#5660)
This commit is contained in:
@@ -295,7 +295,7 @@ class EncoderSim {
|
||||
*
|
||||
* @return the encoder distance
|
||||
*/
|
||||
double GetDistance();
|
||||
double GetDistance() const;
|
||||
|
||||
/**
|
||||
* Change the rate of the encoder.
|
||||
@@ -309,7 +309,7 @@ class EncoderSim {
|
||||
*
|
||||
* @return the rate of change
|
||||
*/
|
||||
double GetRate();
|
||||
double GetRate() const;
|
||||
|
||||
private:
|
||||
explicit EncoderSim(int index) : m_index{index} {}
|
||||
|
||||
Reference in New Issue
Block a user