@@ -99,7 +99,7 @@ class DutyCycleEncoder : public wpi::Sendable,
99
99
*
100
100
* @param channel the channel to attach to
101
101
* @param fullRange the value to report at maximum travel
102
- * @param expectedZero the reading where you would expect a 0 from get ()
102
+ * @param expectedZero the reading where you would expect a 0 from Get ()
103
103
*/
104
104
DutyCycleEncoder (int channel, double fullRange, double expectedZero);
105
105
@@ -108,7 +108,7 @@ class DutyCycleEncoder : public wpi::Sendable,
108
108
*
109
109
* @param dutyCycle the duty cycle to attach to
110
110
* @param fullRange the value to report at maximum travel
111
- * @param expectedZero the reading where you would expect a 0 from get ()
111
+ * @param expectedZero the reading where you would expect a 0 from Get ()
112
112
*/
113
113
DutyCycleEncoder (DutyCycle& dutyCycle, double fullRange, double expectedZero);
114
114
@@ -117,7 +117,7 @@ class DutyCycleEncoder : public wpi::Sendable,
117
117
*
118
118
* @param dutyCycle the duty cycle to attach to
119
119
* @param fullRange the value to report at maximum travel
120
- * @param expectedZero the reading where you would expect a 0 from get ()
120
+ * @param expectedZero the reading where you would expect a 0 from Get ()
121
121
*/
122
122
DutyCycleEncoder (DutyCycle* dutyCycle, double fullRange, double expectedZero);
123
123
@@ -126,7 +126,7 @@ class DutyCycleEncoder : public wpi::Sendable,
126
126
*
127
127
* @param dutyCycle the duty cycle to attach to
128
128
* @param fullRange the value to report at maximum travel
129
- * @param expectedZero the reading where you would expect a 0 from get ()
129
+ * @param expectedZero the reading where you would expect a 0 from Get ()
130
130
*/
131
131
DutyCycleEncoder (std::shared_ptr<DutyCycle> dutyCycle, double fullRange,
132
132
double expectedZero);
@@ -136,7 +136,7 @@ class DutyCycleEncoder : public wpi::Sendable,
136
136
*
137
137
* @param digitalSource the digital source to attach to
138
138
* @param fullRange the value to report at maximum travel
139
- * @param expectedZero the reading where you would expect a 0 from get ()
139
+ * @param expectedZero the reading where you would expect a 0 from Get ()
140
140
*/
141
141
DutyCycleEncoder (DigitalSource& digitalSource, double fullRange,
142
142
double expectedZero);
@@ -146,7 +146,7 @@ class DutyCycleEncoder : public wpi::Sendable,
146
146
*
147
147
* @param digitalSource the digital source to attach to
148
148
* @param fullRange the value to report at maximum travel
149
- * @param expectedZero the reading where you would expect a 0 from get ()
149
+ * @param expectedZero the reading where you would expect a 0 from Get ()
150
150
*/
151
151
DutyCycleEncoder (DigitalSource* digitalSource, double fullRange,
152
152
double expectedZero);
@@ -156,7 +156,7 @@ class DutyCycleEncoder : public wpi::Sendable,
156
156
*
157
157
* @param digitalSource the digital source to attach to
158
158
* @param fullRange the value to report at maximum travel
159
- * @param expectedZero the reading where you would expect a 0 from get ()
159
+ * @param expectedZero the reading where you would expect a 0 from Get ()
160
160
*/
161
161
DutyCycleEncoder (std::shared_ptr<DigitalSource> digitalSource,
162
162
double fullRange, double expectedZero);
@@ -199,12 +199,12 @@ class DutyCycleEncoder : public wpi::Sendable,
199
199
void SetConnectedFrequencyThreshold (int frequency);
200
200
201
201
/* *
202
- * Get the encoder value.
202
+ * Get the encoder value in rotations .
203
203
*
204
204
* @warning This will return inaccurate values for up to 2 seconds after this
205
205
* encoder is initialized unless SetAssumedFrequency() is used.
206
206
*
207
- * @return the encoder value scaled by the full range input
207
+ * @return the encoder value in rotations
208
208
*/
209
209
double Get () const ;
210
210
0 commit comments