524 Commits
Author SHA1 Message Date
David Lechner bf59ef4478 v2.0.0.post2 v2.0.0.post2 2022-02-21 11:29:57 -06:00
David Lechner 6b1f7d8eaa pybricks.ev3devices: fix Motor code completion
The Microsoft Python extension for VS code doesn't include imports in
type hints, so the Motor type wasn't working properly. We can fix this
by wrapping the import type in a new, empty class definition.

The DCMotor class was also missing from ev3devices so this is fixed as well.
2022-02-21 11:01:11 -06:00
David Lechnerandlaurensvalk df27ebc27e pybricks.messaging: fix BluetoothMailboxServer close
As per standard Python socketserver, there is `server_close()` rather than `close()`.

Fixes #51
v2.0
2021-04-07 19:41:30 +02:00
David Lechner b471cae0bc v2.0.0.post1 v2.0.0.post1 2020-12-28 16:40:42 -06:00
David Lechner eb7f441c9e pybricks: remove non-EV3 APIs
This is the v2 branch which only supports EV3. Removing the extra APIs
will prevent them from showing up when this library is used for code
completion.
2020-12-28 16:36:47 -06:00
David Lechner dca8518575 pybricks: add type hints for v2
This adds PEP 561 style type hints for Pybricks v2 (just EV3).
2020-12-28 16:21:56 -06:00
David LechnerandGitHub a48b77fea8 doc/hubs_ev3brick: fix typo 2020-05-19 12:31:25 -05:00
Laurens Valk e3e352fac8 doc/start_ev3_upgrade: note extension versions 2020-05-19 13:11:16 +02:00
Laurens Valk fe5dc3adee doc/ev3devices/GyroSensor: add speed/angle note 2020-05-19 13:02:20 +02:00
Laurens Valk b9432c96af doc/start_ev3: doc8 2020-05-19 12:39:56 +02:00
Laurens Valk 728835150d doc/start_ev3_upgrade: drop rst table
Use the list-table directive to keep us sane.

Also solves doc8 length.
2020-05-19 12:32:02 +02:00
Laurens Valk 6bc394bdcd doc/start_ev3_brick: doc8 2020-05-19 11:32:25 +02:00
Laurens Valk 10bceb970e doc/ev3: doc8 for inc files 2020-05-19 11:27:50 +02:00
Laurens Valk b0e5ae9f0f config: do not spell sphinx directives 2020-05-19 11:20:18 +02:00
Laurens Valk 164f353be3 config: doc8 for inc files
These files were not checked. Unfortunately adding it to setup.cfg does not work, so we have to add it here.
2020-05-19 11:11:47 +02:00
Laurens Valk 92745f1921 doc/start_ev3: add upgrade guide
Explain how existing users can benefit from the update
2020-05-19 10:49:04 +02:00
Laurens Valk 1580273265 pybricks-projects: include version headers 2020-05-19 10:49:04 +02:00
Laurens Valk a90cc4f10f config: fix spell check document types
Spell checking stopped working previously. This appears to fix it.
2020-05-19 10:48:45 +02:00
David Lechner cce1149db6 doc: fix latexpdf build
Building pdf was broken because of chinese characters in one of the
code snippets.

LaTeX stack exchange recommends use XeTeX engine instead but this
causes other formatting problems (like footer using wide font) so
just hacking this in for now.
2020-05-18 16:01:10 -05:00
David LechnerandGitHub daeac6005e api: media.ev3dev.Image.draw_circle: fix r arg
This removes the default value from the `r` parameter (this was probably copy/paste error from the `draw_box` method). The actual implementation does not have a default value.
2020-05-18 13:26:28 -05:00
David Lechner 342e312abb v2.0.0 2020-05-06 15:19:54 -05:00
Laurens Valk dbbbe29201 doc/ev3_install: update download link 2020-05-05 17:19:39 +02:00
Laurens Valk 4c6984bf16 doc/index: add link to about Pybricks page 2020-05-05 15:37:40 +02:00
Laurens Valk 1c28b5821d doc/index: add basic welcome page 2020-05-05 15:23:49 +02:00
Laurens Valk 81fa637f0b doc/robotics: add note for using individual motors 2020-05-01 15:08:21 +02:00
Laurens Valk a74afd9ed4 doc/robotics: move advanced settings to bottom 2020-05-01 15:07:57 +02:00
Laurens Valk 4ca568079e doc/robotics: clarify wheel_diameter, axle_track
Add tips for practical experiments to validate the dimensions
2020-04-28 17:09:43 +02:00
Laurens Valk cdbe5b6fa3 doc/robotics: emphasize positive directions
- Move it to the class description, because it applies to all methods
- Use minimal and concise language, with only one definition per line, instead of having an elaborate paragraph.
2020-04-28 16:31:58 +02:00
Laurens Valk 9b523e034f README: Update with link to support page 2020-04-28 15:50:47 +02:00
Laurens Valk a37a72938d pybricks-projects: update workspaces and readme 2020-04-28 15:29:32 +02:00
Laurens Valk 350b90d967 doc/parameters: document stop types in table
Make more explicit how the stop types gradually add more resistance to motion.
2020-04-28 14:01:28 +02:00
Laurens Valk c6f7b514ec doc: remove ascii art for motor directions
We have actual graphics of motors with their default clockwise directions now, so refer to those instead.
2020-04-28 13:27:51 +02:00
Laurens Valk 0db7ccb36a doc/ev3_linux: describe command line, set hostname 2020-04-28 12:47:40 +02:00
Laurens Valk 0cc1583313 doc/messaging: describe pairing process 2020-04-28 12:47:40 +02:00
Laurens Valk 3296abc8cb doc/ev3: diagram to show how to get command line 2020-04-28 12:47:40 +02:00
Laurens Valk 33d6f39b6b doc/messaging: add connection screenshots 2020-04-28 12:47:40 +02:00
Laurens Valk 9ff69a54fb api/tools: add append option to DataLog class 2020-04-27 17:18:37 +02:00
David LechnerandGitHub ada455247f doc/media: fix fc-list command
This specifying dpi in the fc-list command filters out all results.
2020-04-24 09:57:53 -05:00
Laurens Valk f372c648c8 doc/README: Initial Readme Text
Fixes #11
2020-04-24 14:57:03 +02:00
Laurens Valk 9e56e7afa1 pybricks-projects: update robot educator projects
include new samples for line following and basic maneuvers
2020-04-24 14:09:41 +02:00
Laurens Valk 17731a024f doc/media: document how to use the font commands
These commands are run on the command line, not a user script, so explain how to access it.
2020-04-24 12:29:14 +02:00
Laurens Valk 3a2980d3b9 doc/media: remove emphasis on font config
Bright colored boxes are reserved for things that deserve extra emphasis
like warnings. They should not be used for extras like tips and
footnotes, especially if aimed at a very small percentage of users.
2020-04-24 12:07:18 +02:00
Laurens Valk 4de436e479 doc/motors: hide extra sections until ready
Avoid references to non-existing explanations.
2020-04-24 12:00:26 +02:00
Laurens Valk 55c5790a48 doc/nxtdevices: fix typo 2020-04-24 10:50:34 +02:00
Laurens Valk 05ea3654ec doc/tools: link to file manager
Now that the EV3 starter guide is back, we can refer to it instead of
including a duplicate image of the ev3dev file browser.
2020-04-16 15:13:46 +02:00
Laurens Valk 2a96106a9d pybricks-projects: update data log example
Bring in update to project settings.
2020-04-16 15:09:44 +02:00
Laurens Valk d0a9e7ca95 doc/api/start_ev3: relative path for labeled image 2020-04-16 14:25:00 +02:00
Laurens Valk 82b01451b1 doc/images: add plain green sensor 2020-04-16 14:18:54 +02:00
Laurens Valk 840e45c078 doc: add placeholder Powered Up quick start guide 2020-04-16 14:13:51 +02:00
Laurens Valk 0a54671b78 doc: bring back EV3 quick start guide
This brings back, updates, and reorganizes the EV3 getting started sections.

- Brought back from older v1.0 docs
- Updated with new labeled screenshots for Visual Studio Code
- Reorganized under EV3 Quick Start heading. This lets us add a similar guide for Powered Up.
2020-04-16 14:13:51 +02:00