Skip to content
Open
Changes from 1 commit
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
axleTrack and wheelDiameter settings when you initialize the robot via
the DriveBase() function. If you try to set turn_rate to a value the
exceeds the calculated value the robot will return a INVALID AUGMENT error.
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