Laurens Valk
066983a5e1
LICENSE: Update year and authors
...
Also add SPDX-License-Identifier: MIT to API source files for clarity.
2020-03-05 10:33:48 +01:00
Laurens Valk
854760feb6
api/builtins/Control: add feed_forward gain
...
This can be useful for motors with high internal static friction.
2020-02-20 16:34:25 +01:00
Laurens Valk
b81b28d338
api/builtins/Control: add scale property
2020-02-19 19:40:44 +01:00
Laurens Valk
16e8af0f4d
api/builtins/Control: add integral_rate setter
2020-02-17 14:04:50 +01:00
Laurens Valk
a0fba6c2d1
api/builtins/Control: Move stalled to control
...
This is a control status property, so move it to the control class. This way, it is hidden from the common motor methods, and DriveBases will be able to use it too.
2020-02-17 13:55:45 +01:00
Laurens Valk
3c2f1b8444
doc/builtins: update to remove brightness
...
This setting has previously been removed but the docstring was not updated.
2020-02-14 19:24:55 +01:00
Laurens Valk
0841899394
api/builtins/Control: expose done method
...
This was added but not yet exposed
2020-02-10 15:57:23 +01:00
Laurens Valk
37de307ef0
doc/motors: add note about controller inactivity
2020-02-09 23:47:35 +01:00
Laurens Valk
4a8912ff99
api/builtins/Control: add done method
...
This can be used to check if a maneuver is done yet
2020-02-09 23:39:59 +01:00
Laurens Valk
bdca322cef
api/builtins/Control: add integral_range setter
2020-02-09 23:39:16 +01:00
Laurens Valk
ceeea92d98
doc/builtins: fix order of arguments
2020-02-07 20:10:35 +01:00
Laurens Valk
4ed787240e
api/builtins: drop motor setting setters
...
this will be done through the control attribute instead
2020-01-28 17:53:11 +01:00
Laurens Valk
1ba961b29c
doc/builtins: simplify motor docs
...
Reduce unnecessary details for motor methods
2020-01-28 17:41:36 +01:00
Laurens Valk
36a393c927
api/builtins/Control: introduce Control class
...
This is a generic class to interact with PID Controllers. A Motor has one control instance (for angle) and a drivebase will have two (one for heading, one for distance).
This will replace the motor specific settings
2020-01-28 16:25:53 +01:00
Laurens Valk
4faa5d3df8
doc/hubs.EV3Brick: toggle note specs
...
This condenses long lists that are not frequently used.
2020-01-27 13:25:42 +01:00
Laurens Valk
167cf3ad18
doc/builtins/Speaker: use '' for string settings
...
Also simplify by not listing all the options twice, and follow style for default argument.
2020-01-27 13:12:57 +01:00
Laurens Valk
08e63e69ca
api/builtins/DCMotor: drop settings
...
These settings are control properties, so they cannot be altered on DC Motors.
2020-01-27 12:56:47 +01:00
Laurens Valk
00f5b9e13b
doc/screen: simplify print doc
...
Only say what it does, not what it doesn't do.
Also delete "on the image" because this is also used for the screen.
2020-01-16 13:48:56 +01:00
Laurens Valk
f7ff1e511e
api/builtins/ColorLight: remove brightness
...
Brightness control will not be implemented for the next release, so remove it.
2020-01-16 13:34:18 +01:00
Laurens Valk
90314b3f49
api/ev3.speaker: Fix missing language arg
...
This was added to the docstring but not the method.
2020-01-16 13:31:04 +01:00
Laurens Valk
834a2173b4
doc/builtins: fix typos
2020-01-16 11:40:34 +01:00
Laurens Valk
50a9d36314
api/ev3.speaker: separate language and voice settings
2020-01-16 11:25:13 +01:00
Laurens Valk
8904413084
doc/speaker: Put language under show/hide toggle
...
This list is rather long, so hide it by default.
2020-01-16 10:34:56 +01:00
Laurens Valk
7a16c637aa
doc/speaker: fix typo
2020-01-16 10:27:31 +01:00
David Lechner
9c024e17c4
pybricks/builtins: update speaker methods
...
Update Speaker class with newly implemented methods
2020-01-13 20:14:49 -06:00
David Lechner
c3e74273d2
pybricks/builtins: update Speaker docs
2020-01-13 12:59:21 -06:00
David Lechner
ee0819adef
pybricks/builtins: remove deprecated Display class
...
The Display class is from Pybricks MicroPython 1.0 and has been
replaced by the Image class.
2020-01-13 12:59:07 -06:00
Laurens Valk
e244f28ddb
api/builtins: drop method string override
...
We had these because enums expanded to numeric values. Because we now have an alternate enum implementation, we don't need these strings anymore.
2020-01-13 12:19:59 +01:00
Laurens Valk
46dba95342
api/builtins: add DCMotor
...
This is a strict subset of Motor, covering functionality of DC motors only. This is useful for motors without encoders, such as train motors.
It is inherited by Motor, which adds functionality that requires encoders.
2020-01-01 13:18:41 +01:00
Laurens Valk
990527c12a
api/builtins/Motor: update reset_angle text
...
Control+ motors have absolute encoders, but no marker on the shaft. This revises the text accordingly.
2019-12-28 14:07:39 +01:00
Laurens Valk
893b23ce90
api/builtins/Speaker: add speech
2019-12-09 14:15:43 +01:00
Laurens Valk
be1522ad04
api/builtins: Update speaker API
...
- Volume is a setting.
- Remove beeps method. To do multiple beeps, users can make their own loop.
- Rename file to play.
2019-12-09 13:13:06 +01:00
Laurens Valk
184763e81a
Revert "add option to enable/disable encoders"
...
Encoderless motors are more an exception than the rule, so they will get a separate class.
This reverts commit 6f68c60d3b .
2019-12-06 15:19:18 +01:00
Laurens Valk
6f68c60d3b
api/builtins/Motor: add option to enable/disable encoders
2019-11-11 15:51:25 +01:00
Laurens Valk
f03970a77e
doc/motors: rename direction to positive_direction
...
While being longer, this reflects more accurately what this setting does.
2019-11-11 15:19:25 +01:00
Laurens Valk
d172780508
doc/motors: add stalled section
...
By moving some of the technical details to dedicated sections of the docs, we can add more (or simplified, less technical) information without cluttering the API commands.
2019-11-11 15:08:08 +01:00
Laurens Valk
d6f25acce8
doc/motors: add gears section
...
Explain the setting using an example.
2019-11-11 14:50:30 +01:00
Laurens Valk
2ec5b0aab9
doc: organize motors
2019-10-18 18:32:09 +02:00
Laurens Valk
529f8fe31c
api: rename _common to builtins
...
Because this module describes devices that can be built into a hub or other device.
Since this design is now explicitly shown in
the docs as well, we don't need to hide this
module in the package.
2019-10-18 16:05:23 +02:00