Skip to content

Commit

Permalink
pybricks.robotics: Flip steering while reversing.
Browse files Browse the repository at this point in the history
  • Loading branch information
laurensvalk committed Nov 13, 2023
1 parent 91bc9a5 commit 3afb40c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@

## Unreleased

### Changed
- Steering direction while reversing in `DriveBase.drive()`.

## Added
- Enabled tilt and orientation config for `MoveHub()`.

## Fixed
- Fixed missing awaitable for `Remote.light`.

## 3.3.0b9 - 2023-10-26

### Changed
Expand Down
16 changes: 8 additions & 8 deletions src/pybricks/robotics.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ class DriveBase:
"""A robotic vehicle with two powered wheels and an optional support
wheel or caster.
By specifying the dimensions of your robot, this class
makes it easy to drive a given distance in millimeters or turn by a given
number of degrees.
By specifying the dimensions of your robot, this class makes it easy to
drive a given distance in millimeters or turn by a given number of
degrees.
**Positive** distances, radii, or drive speeds mean
driving **forward**. **Negative** means **backward**.
**Positive** distances, radii, or drive speeds mean driving **forward**.
**Negative** means **backward**.
**Positive** angles and turn rates mean turning **right**.
**Negative** means **left**. So when viewed from the top,
positive means clockwise and negative means counterclockwise.
**Positive** angles and turn rates mean turning **right**. Either
in-place, or along a circle to the robot's right. **Negative** angles and
turn rates mean turning to the **left**.
See the `measuring`_ section for tips to measure and adjust the diameter
and axle track values.
Expand Down

0 comments on commit 3afb40c

Please sign in to comment.