From 57f6f0fbef763bcb574308dc346198669109711f Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Wed, 1 Dec 2021 14:55:34 +0100 Subject: [PATCH] pybricks.pupdevices.DCMotor: Document settings method. Also update changelog for recent changes. --- CHANGELOG.md | 8 ++++++++ doc/main/pupdevices/dcmotor.rst | 3 +++ src/pybricks/_common.py | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b5415f1..d308394 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,8 +4,16 @@ ## Unreleased +### Added +- Added maximum voltage setter for `DCMotor` and `Motor`. + +### Changed +- Removed `duty` setting from `Control.limits` method. +- Removed `integral_range` setting from `Control.pid` method. + ### Fixed - Fixed link to Color Light Matrix page. +- Fixed link to Inventor Hub page. ## 3.1.0rc1 - 2021-11-19 diff --git a/doc/main/pupdevices/dcmotor.rst b/doc/main/pupdevices/dcmotor.rst index 0046aba..bb85f85 100644 --- a/doc/main/pupdevices/dcmotor.rst +++ b/doc/main/pupdevices/dcmotor.rst @@ -25,6 +25,9 @@ Motors without rotation sensors .. automethod:: pybricks.pupdevices.DCMotor.brake :noindex: + .. automethod:: pybricks.pupdevices.DCMotor.settings + :noindex: + Examples ------------------- diff --git a/src/pybricks/_common.py b/src/pybricks/_common.py index df628a8..6dc0034 100644 --- a/src/pybricks/_common.py +++ b/src/pybricks/_common.py @@ -89,7 +89,7 @@ class DCMotor: pass def settings(self, max_voltage): - """Configures (electrical) motor settings. If no arguments are given, + """Configures motor settings. If no arguments are given, this returns the current values. Arguments: