pybricks.pupdevices.DCMotor: Document settings method.

Also update changelog for recent changes.
This commit is contained in:
Laurens Valk
2021-12-01 14:55:34 +01:00
parent e061617c34
commit 57f6f0fbef
3 changed files with 12 additions and 1 deletions
+8
View File
@@ -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
+3
View File
@@ -25,6 +25,9 @@ Motors without rotation sensors
.. automethod:: pybricks.pupdevices.DCMotor.brake
:noindex:
.. automethod:: pybricks.pupdevices.DCMotor.settings
:noindex:
Examples
-------------------
+1 -1
View File
@@ -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: