Skip to content

Commit

Permalink
pybricks.parameters.Side: Change Technic Hub orientation.
Browse files Browse the repository at this point in the history
This makes it consistent with other hubs.

See: pybricks/support#848

The IMU section was not included in V3.1 so it is not a breaking change,
but we add a versionchanged comment just in case.
  • Loading branch information
laurensvalk committed Dec 9, 2022
1 parent d9dfd0e commit 585b1b8
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 61 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

## Unreleased

### Changed
- Updated "front" side of the Technic Hub to be consistent with
the Prime Hub.

## 3.2.0b6 - 2022-12-02

### Added
Expand Down
2 changes: 1 addition & 1 deletion doc/main/cad/copy-renders.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ cp LPub3D/assem/main_1_hubs_1_hub-prime-*35_-35_0_ABS.png output/hub-prime.png
cp LPub3D/assem/main_1_hubs_1_hub-prime-*45_45_0_ABS.png output/hub-prime-orientation.png
cp LPub3D/assem/main_1_hubs_1_hub-prime-*90_0_0_ABS.png output/hub-prime-display.png
cp LPub3D/assem/main_1_hubs_1_hub-technic-*35_-35_0_ABS.png output/hub-technic.png
cp LPub3D/assem/main_1_hubs_1_hub-technic-*45_-135_0_ABS.png output/hub-technic-orientation.png
cp LPub3D/assem/main_1_hubs_1_hub-technic-*45_45_0_ABS.png output/hub-technic-orientation.png
cp LPub3D/assem/main_1_iodevices-*.png output/iodevice-all.png
cp LPub3D/assem/main_1_iodevices_1_iodevice-dcmotor-*.png output/iodevice-dcmotor.png
cp LPub3D/assem/main_1_iodevices_1_iodevice-pupdevice-*.png output/iodevice-pupdevice.png
Expand Down
3 changes: 2 additions & 1 deletion doc/main/cad/devices.mpd
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
1 71 0 0 0 1 0 0 0 1 0 0 0 1 22127.dat
0 ROTSTEP 35 -35 0 ABS
1 71 0 0 0 1 0 0 0 1 0 0 0 1 22127.dat
0 ROTSTEP 45 -135 0 ABS
0 ROTSTEP 45 45 0 ABS
0 NOFILE
0
0 FILE hub-prime.ldr
Expand Down Expand Up @@ -837,5 +837,6 @@
1 0 40 0 220 1 0 0 0 1 0 0 0 1 hub-city.ldr
1 0 450 0 -40 1 0 0 0 1 0 0 0 1 hub-move.ldr
0 ROTSTEP 40 -35 0 ABS
0
0
0
Binary file modified doc/main/cad/output/hub-technic-orientation.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/main/diagrams/orientation_technichub.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
117 changes: 59 additions & 58 deletions doc/main/diagrams_source/orientation_technichub.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion doc/main/parameters/side.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ Side
.. figure:: ../../main/diagrams/orientation_technichub.png
:width: 60%

.. versionchanged:: 3.2

Changed which side is the front.

**Tilt Sensor**

.. figure:: ../../main/diagrams/orientation_tiltsensor.png
:width: 60%
:width: 50%

0 comments on commit 585b1b8

Please sign in to comment.