Skip to content

Update robotics.py #162

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/pybricks/robotics.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,13 @@ def settings(self, *args):
The speed values given here do not apply to the :meth:`.drive` method,
since you provide your own speed values as arguments in that method.

The robot will calculate the max turn rate for your robot based on the
``axle_track`` and ``wheel_diameter`` settings when you initialize the robot in
the :class:`DriveBase` constructor. If you try to set ``turn_rate`` to a value that
exceeds the calculated value the robot will raise a ``ValueError`` exception.
The max possible value for turn_rate is 1000 deg/s. A wider drivebase
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not always a max of 1000 deg/s is it? Doesn't it depend on the axel_track, wheel_diameter and the actual max speed of the motor being used?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps, changing to "The max possible value for turn_rate is 1000 deg/s but in reality it depends on the axelTrack and wheelDiameter settings."

or one with smaller wheels will have a lower top speed for the ``turn_rate``.

Arguments:
straight_speed (Number, mm/s): Straight-line speed of the robot.
straight_acceleration (Number, mm/s²): Straight-line
Expand Down
Loading