[wpilib] Add notes for Servo get that it only returns cmd (NFC) (#3820)

Co-authored-by: Peter Johnson <johnson.peter@gmail.com>
This commit is contained in:
sciencewhiz
2021-12-23 22:22:18 -08:00
committed by GitHub
parent 2a64e4bae5
commit 9d13ae8d01
2 changed files with 8 additions and 5 deletions

View File

@@ -46,7 +46,8 @@ class Servo : public PWM {
* Get the servo position.
*
* Servo values range from 0.0 to 1.0 corresponding to the range of full left
* to full right.
* to full right. This returns the commanded position, not the position that
* the servo is actually at, as the servo does not report its own position.
*
* @return Position from 0.0 to 1.0.
*/
@@ -71,8 +72,8 @@ class Servo : public PWM {
/**
* Get the servo angle.
*
* Assume that the servo angle is linear with respect to the PWM value (big
* assumption, need to test).
* This returns the commanded angle, not the angle that the servo is actually
* at, as the servo does not report its own angle.
*
* @return The angle in degrees to which the servo is set.
*/