doc/hubs: add Move Hub motor default directions

This commit is contained in:
Laurens Valk
2020-04-08 11:09:30 +02:00
parent 88ffa6c902
commit 5e921680ab
7 changed files with 231 additions and 3 deletions
+3
View File
@@ -0,0 +1,3 @@
0 Author: Pybricks {laurens@pybricks.com}
0 !LICENSE MIT
1 15 0 -48 -20 1 0 0 0 1 0 0 0 1 26910.dat
+224
View File
@@ -0,0 +1,224 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="1600"
height="800"
viewBox="0 0 423.33333 211.66666"
version="1.1"
id="svg8"
inkscape:version="0.92.3 (2405546, 2018-03-11)"
sodipodi:docname="movehub.svg">
<defs
id="defs2">
<clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath926">
<rect
ry="0.17236173"
rx="0.19020446"
y="77.926857"
x="241.14662"
height="93.081146"
width="147.51704"
id="rect928"
style="fill:none;fill-opacity:1;stroke:#e8f2fa;stroke-width:1.99999988;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
clip-path="none" />
</clipPath>
<clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath932">
<rect
style="fill:none;fill-opacity:1;stroke:#e8f2fa;stroke-width:1.99999988;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect934"
width="147.51704"
height="93.081146"
x="350.00375"
y="204.1709"
rx="0.19020446"
ry="0.17236173" />
</clipPath>
<marker
inkscape:stockid="Arrow2Lend"
orient="auto"
refY="0"
refX="0"
id="Arrow2Lend"
style="overflow:visible"
inkscape:isstock="true">
<path
id="path885"
style="fill:#2980b9;fill-opacity:1;fill-rule:evenodd;stroke:#2980b9;stroke-width:0.625;stroke-linejoin:round;stroke-opacity:1"
d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z"
transform="matrix(-1.1,0,0,-1.1,-1.1,0)"
inkscape:connector-curvature="0" />
</marker>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#fcfcfc"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="1"
inkscape:pageshadow="2"
inkscape:zoom="0.7"
inkscape:cx="780.24575"
inkscape:cy="524.06848"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
units="px"
inkscape:window-width="1853"
inkscape:window-height="1145"
inkscape:window-x="67"
inkscape:window-y="27"
inkscape:window-maximized="1"
showguides="false"
inkscape:snap-global="false" />
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-85.333317)">
<image
sodipodi:absref="../images/movehub.png"
y="85.333313"
x="-1.4210855e-14"
id="image873"
xlink:href="../images/movehub.png"
preserveAspectRatio="none"
height="211.66667"
width="238.125" />
<image
sodipodi:absref="movehub_b.png"
xlink:href="movehub_b.png"
transform="translate(-86.595326,-9.6217029)"
clip-path="url(#clipPath932)"
width="264.58334"
height="153.9875"
preserveAspectRatio="none"
id="image897"
x="196.20842"
y="186.53021" />
<g
transform="matrix(1.9732825,0,0,1.9732825,65.859839,-196.26931)"
id="g2717">
<g
transform="matrix(1,-0.27773651,0,1,59.387949,102.27922)"
id="g2711"
style="fill:#2980b9;fill-opacity:1;stroke:#fffbfb;stroke-width:0.13229167;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1">
<path
inkscape:connector-curvature="0"
d="m 107.60315,149.3339 -4.4195,12.01847 -4.419489,-12.01847 c 2.609269,1.92005 6.179199,1.90899 8.838989,0 z"
style="fill:#2980b9;fill-opacity:1;fill-rule:evenodd;stroke:#fffbfb;stroke-width:0.13229167;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path2709" />
</g>
<path
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#2980b9;fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:0.1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
d="m 148.90956,215.29575 c -8.02867,2.89572 -14.60635,11.81219 -14.60635,19.93021 l 1.74541,-0.62952 c 0,-7.05178 5.7198,-14.86961 12.86094,-17.44522 7.14113,-2.57561 12.86094,1.11628 12.86094,8.16806 l 1.74541,-0.62952 c 0,-8.11802 -6.57768,-12.28973 -14.60635,-9.39401 z"
id="path2713"
inkscape:connector-curvature="0" />
<path
style="fill:#2980b9;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 161.70224,224.65346 1.85836,-0.53454 0.43431,0.40926 -0.98973,1.42822 c 0,0 -2.13398,-0.30486 -2.13398,-0.32574 0,-0.0209 0.83104,-0.9772 0.83104,-0.9772 z"
id="path2715"
inkscape:connector-curvature="0" />
</g>
<image
sodipodi:absref="movehub_a.png"
xlink:href="movehub_a.png"
transform="translate(21.41876,15.875)"
clip-path="url(#clipPath926)"
width="264.58334"
height="159.54375"
preserveAspectRatio="none"
id="image886"
x="217.24919"
y="3.426312" />
<g
transform="matrix(1.7059944,0,0,1.7059944,48.737469,-237.70534)"
id="g2747">
<g
transform="matrix(1,-0.27773651,0,1,61.231459,102.02783)"
id="g2741"
style="fill:#2980b9;fill-opacity:1;stroke:#fffbfb;stroke-width:0.13229167;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1">
<path
inkscape:connector-curvature="0"
d="m 108.02213,149.61786 -4.4195,12.01847 -4.419489,-12.01847 c 2.609269,1.92005 6.179199,1.90899 8.838989,0 z"
style="fill:#2980b9;fill-opacity:1;fill-rule:evenodd;stroke:#fffbfb;stroke-width:0.13229167;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path2739" />
</g>
<path
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#2980b9;fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:0.11918081;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
d="m 148.34153,213.98543 c -9.56863,3.45114 -17.40796,14.07786 -17.40796,23.75298 l 2.08019,-0.75027 c 0,-8.40437 6.81691,-17.72172 15.32777,-20.79135 8.51086,-3.06963 15.32778,1.33039 15.32778,9.73476 l 2.08019,-0.75027 c 0,-9.67512 -7.83933,-14.647 -17.40797,-11.19585 z"
id="path2743"
inkscape:connector-curvature="0" />
<path
sodipodi:nodetypes="ccccsc"
style="fill:#2980b9;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 163.29481,224.66962 2.66183,-0.58475 0.60452,1.41743 -2.97202,1.4099 c 0,0 -0.86657,-1.48848 -0.86657,-1.50936 0,-0.0209 0.57224,-0.73322 0.57224,-0.73322 z"
id="path2745"
inkscape:connector-curvature="0" />
</g>
<rect
ry="0.17236173"
rx="0.19020446"
y="194.54919"
x="263.40842"
height="93.081146"
width="147.51704"
id="rect919"
style="fill:none;fill-opacity:1;stroke:#72b0dc;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
style="fill:none;fill-opacity:1;stroke:#72b0dc;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect921"
width="147.51704"
height="93.081146"
x="262.56537"
y="93.801857"
rx="0.19020446"
ry="0.17236173" />
<text
id="text877"
y="182.47871"
x="393.99457"
style="font-style:normal;font-weight:normal;font-size:18.05556679px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#404140;fill-opacity:1;stroke:none;stroke-width:0.16003601"
xml:space="preserve"><tspan
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:'Roboto Slab';-inkscape-font-specification:'Roboto Slab';fill:#404140;fill-opacity:1;stroke-width:0.16003601"
y="182.47871"
x="393.99457"
id="tspan875"
sodipodi:role="line">A</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:18.05556679px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#404140;fill-opacity:1;stroke:none;stroke-width:0.16003601"
x="395.59821"
y="283.50659"
id="text950"><tspan
sodipodi:role="line"
id="tspan948"
x="395.59821"
y="283.50659"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:'Roboto Slab';-inkscape-font-specification:'Roboto Slab';fill:#404140;fill-opacity:1;stroke-width:0.16003601">B</tspan></text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 KiB

+1 -1
View File
@@ -18,7 +18,7 @@ Select your programmable hub using the buttons below.
.. tab-container:: movehub .. tab-container:: movehub
:title: Move Hub :title: Move Hub
.. figure:: ../api/images/movehub.png .. figure:: ../api/images/movehub_label.png
:height: 15 em :height: 15 em
.. include:: hubs_movehub.inc .. include:: hubs_movehub.inc
Binary file not shown.

After

Width:  |  Height:  |  Size: 350 KiB

+3 -2
View File
@@ -38,10 +38,11 @@ Motors with Rotation Sensors
.. figure:: ../api/images/pupmotors_label.png .. figure:: ../api/images/pupmotors_label.png
:width: 100 % :width: 100 %
:alt: pupmotors :alt: pupmotors
:align: center :align: left
Powered Up motors with rotation sensors. The arrows indicate the default Powered Up motors with rotation sensors. The arrows indicate the default
positive direction. positive direction. See the :mod:`hubs <pybricks.hubs>` module for default
directions of built-in motors.
.. autoclass:: pybricks.pupdevices.Motor .. autoclass:: pybricks.pupdevices.Motor
:noindex: :noindex: