[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

@@ -55,6 +55,8 @@ public class Servo extends PWM {
* Get the servo position.
*
* <p>Servo values range from 0.0 to 1.0 corresponding to the range of full left 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.
*/
@@ -87,8 +89,8 @@ public class Servo extends PWM {
/**
* Get the servo angle.
*
* <p>Assume that the servo angle is linear with respect to the PWM value (big assumption, need to
* test).
* <p>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.
*/