Pavel Lobodinský
70aa5ee0e2
pybricks._common: Renamed incorrect argument name, fixed tuple type.
2022-01-03 11:01:33 +01:00
Pavel Lobodinský
efc1650e7f
pybricks.parameters: Added Icon class, added missing methods and attributes.
...
Added missing Icon class present in the firmware
2022-01-03 11:01:33 +01:00
Pavel Lobodinský
fe60636072
pybricks.geometry: Fixed Matrix incorrect rows type, added missing methods.
2022-01-03 11:01:33 +01:00
Pavel Lobodinský
a1342f77c9
pybricks.hubs: Default values for the PrimeHub.
2022-01-03 11:01:33 +01:00
Laurens Valk
d806fe9fbe
pybricks.common.Control: Fix docstring and type hints for limits().
...
Fixes https://github.com/pybricks/support/issues/565
2021-12-30 09:12:27 +01:00
David Lechner
c666009511
pybricks.geometry: add Axis.ANY
...
This exists in the firmware but was missing here.
2021-12-16 15:08:50 -06:00
David Lechner
7f4234fc1e
pybricks._common: remove type hint for integral_range()
...
This was removed in e061617 .
Also fix import of Axis while we are touching this file.
2021-12-16 15:07:33 -06:00
David Lechner
482289c384
pybricks.robotics: add type hint for curve()
...
This method was added in 30803fc .
2021-12-16 15:06:00 -06:00
Laurens Valk
30803fc017
pybricks.robotics.DriveBase: Add curve method.
...
This generalizes motion to curves (arcs), which is in
between straight lines and in-place turns.
2021-12-01 15:38:27 +01:00
Laurens Valk
749eceefc4
pybricks.robotics.DriveBase: Document then and wait arguments.
2021-12-01 15:35:37 +01:00
Laurens Valk
57f6f0fbef
pybricks.pupdevices.DCMotor: Document settings method.
...
Also update changelog for recent changes.
2021-12-01 14:55:34 +01:00
Laurens Valk
e061617c34
pybricks.common.Control: Drop integral_range.
...
This setting is no longer used. We leave a placeholder setting so we don't break existing programs.
See https://github.com/pybricks/pybricks-micropython/commit/e82dd6a2be4e378ab0b1ee7e3b2643fe654de4a9#diff-e529f43c94cf766ade4b68930f9713a45b62618f4305e4c0c88ba872e9f9cd0e
2021-12-01 14:54:21 +01:00
Laurens Valk
eb09ecd7c7
pybricks.common.Control: Drop duty limit.
...
This is now a per-motor voltage limit.
See https://github.com/pybricks/support/issues/536
2021-12-01 14:41:09 +01:00
Laurens Valk
06a1542613
pybricks.pupdevices.DCMotor: Document settings method.
...
See https://github.com/pybricks/support/issues/536
2021-12-01 14:40:06 +01:00
David Lechner
b6d1eef2a1
pybricks.iodevices.LWP3Device: add api and docs
...
This adds docs and API stubs for pybricks.iodevices.LWP3Device.
Fixes: https://github.com/pybricks/support/issues/534
2021-11-19 19:31:53 -06:00
David Lechner
2f574e8c03
pybricks.pupdevices.ColorLightMatrix: add api and docs
...
This adds the SPIKE 3x3 Color Light Matrix to the API and docs.
2021-11-19 19:30:57 -06:00
David Lechner
677656f669
pybricks.robotics.DriveBase: Fix arg name in type hints.
...
This fixes the `speed` arg name in the `DriveBase.drive()` method in the type hint file. Fixes #76 .
2021-07-30 15:27:09 -05:00
Laurens Valk
a8ab8b2314
pybricks.pupdevices.Motor: Add reset_angle kwarg.
...
Documents https://github.com/pybricks/support/issues/389
2021-07-28 16:07:53 +02:00
Laurens Valk
8463206f8e
pybricks.pupdevices.Remote: Add name().
...
https://github.com/pybricks/support/issues/404
2021-07-28 13:41:00 +02:00
Laurens Valk
78bd21b197
pybricks.common.Control: Drop feed_forward.
...
The implementation no longer includes this, so it is removed from the docs as well.
Fixes https://github.com/pybricks/pybricks-api/issues/74
2021-07-23 15:35:13 +02:00
Laurens Valk
24bba6d24c
pybricks.pupdevices.Motor: Document control here.
...
Based on user feedback, we learned that the control attribute is used more frequently than anticipated. Therefore it makes sense to document it here, just like we do with instances of pybricks.common classes in hubs.
This makes it a bit easier to find and see how it is used, along with some of the existing examples.
2021-07-23 15:33:18 +02:00
Laurens Valk
0edddbb0c2
pybricks.common.Control: Fix scale doc.
...
Document it as an attribute instead of in the main docstring. This way we can choose where it shows up in the docs.
2021-07-23 14:51:21 +02:00
Laurens Valk
9944cf3adf
pybricks.common.System: Add name() getter.
2021-07-14 09:43:20 +02:00
David Lechner
7126431f9f
pybricks: move into src/ directory
...
Moving the pybricks package into a src/ directory so that we can add
additional packages without polluting the top-level directory.
2021-07-14 09:41:30 +02:00