mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
[wpilib] Improve curvature drive documentation (NFC) (#3783)
This commit is contained in:
@@ -142,10 +142,11 @@ class DifferentialDrive : public RobotDriveBase,
|
||||
*
|
||||
* @param xSpeed The robot's speed along the X axis [-1.0..1.0].
|
||||
* Forward is positive.
|
||||
* @param zRotation The robot's rotation rate around the Z axis
|
||||
* [-1.0..1.0]. Clockwise is positive.
|
||||
* @param zRotation The normalized curvature [-1.0..1.0]. Clockwise is
|
||||
* positive.
|
||||
* @param allowTurnInPlace If set, overrides constant-curvature turning for
|
||||
* turn-in-place maneuvers.
|
||||
* turn-in-place maneuvers. zRotation will control
|
||||
* turning rate instead of curvature.
|
||||
*/
|
||||
void CurvatureDrive(double xSpeed, double zRotation, bool allowTurnInPlace);
|
||||
|
||||
@@ -184,10 +185,11 @@ class DifferentialDrive : public RobotDriveBase,
|
||||
*
|
||||
* @param xSpeed The robot's speed along the X axis [-1.0..1.0].
|
||||
* Forward is positive.
|
||||
* @param zRotation The robot's rotation rate around the Z axis
|
||||
* [-1.0..1.0]. Clockwise is positive.
|
||||
* @param zRotation The normalized curvature [-1.0..1.0]. Clockwise is
|
||||
* positive.
|
||||
* @param allowTurnInPlace If set, overrides constant-curvature turning for
|
||||
* turn-in-place maneuvers.
|
||||
* turn-in-place maneuvers. zRotation will control
|
||||
* turning rate instead of curvature.
|
||||
*/
|
||||
static WheelSpeeds CurvatureDriveIK(double xSpeed, double zRotation,
|
||||
bool allowTurnInPlace);
|
||||
|
||||
Reference in New Issue
Block a user