Laurens Valk
f934fdd9bd
pybricks.common.IMU: Change example to print G force.
...
Since we changed the acceleration units to mm/s/s, the output values are
fairly large.
The Matrix repr function prints values up to 999, so this avoids
truncating the output.
It is also a good demo of scalar division for a Matrix / Vector.
2022-04-01 16:32:39 +02:00
Laurens Valk
a0e4ffdb5c
umath: Use umath for math.
...
Do this for all Powered Up examples.
2021-07-14 11:22:04 +02:00
Laurens Valk
9b8a66e3da
pybricks.hubs.PrimeHub: Add system examples.
2021-07-14 09:43:34 +02:00
Laurens Valk
5a8baeff4c
pybricks.hubs: Add system examples.
2021-07-07 09:58:51 +02:00
Martyn Boogaarts
7ce3721b48
examples/pup/hub_shared: Update light animation examples.
...
See https://github.com/pybricks/support/issues/253
* Update light_animate.py
corrected syntax
* Update light_animate.py
corrected syntax
* Update light_animate.py
corrected syntax
* Update light_animate.py
corrected syntax
2021-04-24 21:36:10 +02:00
Laurens Valk
7679b8b47d
examples/hubs/MoveHub: imu examples
2021-02-17 23:31:19 +01:00
Laurens Valk
55d7a8a254
examples/pup: acceleration and angular velocity
2021-01-20 16:02:36 +01:00
Laurens Valk
e051455e23
examples/pup: add imu tilt examples
2021-01-20 14:55:27 +01:00
Laurens Valk
4b5b97bbb2
examples/pup: add imu up() example
2021-01-20 11:13:24 +01:00
Laurens Valk
018b0d8b9d
examples: simplify hub script generator
...
Instead of saying that some lines should be skipped, just say for which hubs the entire script will work.
2021-01-20 10:56:21 +01:00
Laurens Valk
47d7fa46d8
examples: drop common inventorhub scripts
...
The doc page has been merged into one page, with all examples using the PrimeHub class.
2021-01-20 10:40:26 +01:00
Laurens Valk
92311b65fb
examples/pup/hub_primehub: no need to call off()
...
The animation is now cleared automatically when invoking the pixel method, so there's no need to call this manually anymore.
See https://github.com/pybricks/support/issues/195
2021-01-12 16:32:20 +01:00
Laurens Valk
1c201b5f8c
examples/pup: generate light matrix examples
2020-11-11 18:56:38 +01:00
Laurens Valk
abe1be18b2
examples/pup: add common light matrix display
2020-11-11 17:09:44 +01:00
Laurens Valk
b0ffb24a2e
examples: import snippets from pybricks-projects
...
These code samples are rendered in the docs, so we include them here.
For the git history of these snippets, see:
https://github.com/pybricks/pybricks-projects/commits/f4914069aaacfd9ab1e0dd6f05524f62cfc56b29/snippets
2020-11-04 10:17:33 +01:00