node-poweredup 6.10.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.drone.yml +1 -0
- package/.gitmodules +3 -0
- package/{jsdoc.conf.json → .jsdoc.json} +14 -1
- package/README.md +47 -42
- package/dist/browser/poweredup.js +1 -1
- package/dist/browser/poweredup.js.map +1 -1
- package/dist/node/color.d.ts +6 -0
- package/dist/node/color.js +38 -0
- package/dist/node/color.js.map +1 -0
- package/dist/node/consts.d.ts +48 -27
- package/dist/node/consts.js +53 -31
- package/dist/node/consts.js.map +1 -1
- package/dist/node/devices/absolutemotor.js +8 -9
- package/dist/node/devices/absolutemotor.js.map +1 -1
- package/dist/node/devices/basicmotor.js +2 -2
- package/dist/node/devices/basicmotor.js.map +1 -1
- package/dist/node/devices/colordistancesensor.d.ts +11 -0
- package/dist/node/devices/colordistancesensor.js +95 -2
- package/dist/node/devices/colordistancesensor.js.map +1 -1
- package/dist/node/devices/device.d.ts +2 -2
- package/dist/node/devices/device.js +10 -5
- package/dist/node/devices/device.js.map +1 -1
- package/dist/node/devices/duplotrainbasecolorsensor.d.ts +2 -1
- package/dist/node/devices/duplotrainbasecolorsensor.js +15 -2
- package/dist/node/devices/duplotrainbasecolorsensor.js.map +1 -1
- package/dist/node/devices/light.js +1 -1
- package/dist/node/devices/light.js.map +1 -1
- package/dist/node/devices/tachomotor.js +10 -12
- package/dist/node/devices/tachomotor.js.map +1 -1
- package/dist/node/devices/technic3x3colorlightmatrix.d.ts +22 -0
- package/dist/node/devices/technic3x3colorlightmatrix.js +77 -0
- package/dist/node/devices/technic3x3colorlightmatrix.js.map +1 -0
- package/dist/node/devices/techniccolorsensor.js +2 -1
- package/dist/node/devices/techniccolorsensor.js.map +1 -1
- package/dist/node/devices/technicmediumhubtiltsensor.d.ts +25 -1
- package/dist/node/devices/technicmediumhubtiltsensor.js +70 -2
- package/dist/node/devices/technicmediumhubtiltsensor.js.map +1 -1
- package/dist/node/devices/technicsmallangularmotor.d.ts +12 -0
- package/dist/node/devices/technicsmallangularmotor.js +35 -0
- package/dist/node/devices/technicsmallangularmotor.js.map +1 -0
- package/dist/node/hubs/basehub.js +4 -0
- package/dist/node/hubs/basehub.js.map +1 -1
- package/dist/node/hubs/hub.js +1 -1
- package/dist/node/hubs/hub.js.map +1 -1
- package/dist/node/hubs/lpf2hub.js +19 -21
- package/dist/node/hubs/lpf2hub.js.map +1 -1
- package/dist/node/hubs/movehub.js +1 -1
- package/dist/node/hubs/movehub.js.map +1 -1
- package/dist/node/hubs/technicmediumhub.js +1 -1
- package/dist/node/hubs/technicmediumhub.js.map +1 -1
- package/dist/node/hubs/technicsmallhub.d.ts +18 -0
- package/dist/node/hubs/technicsmallhub.js +64 -0
- package/dist/node/hubs/technicsmallhub.js.map +1 -0
- package/dist/node/index-browser.js +6 -0
- package/dist/node/index-browser.js.map +1 -1
- package/dist/node/index-node.d.ts +4 -1
- package/dist/node/index-node.js +7 -1
- package/dist/node/index-node.js.map +1 -1
- package/dist/node/poweredup-browser.js +8 -1
- package/dist/node/poweredup-browser.js.map +1 -1
- package/dist/node/poweredup-node.js +28 -1
- package/dist/node/poweredup-node.js.map +1 -1
- package/dist/node/utils.d.ts +1 -1
- package/dist/node/utils.js +10 -3
- package/dist/node/utils.js.map +1 -1
- package/docs/AbsoluteMotor.html +1220 -1405
- package/docs/BaseHub.html +787 -872
- package/docs/BasicMotor.html +923 -1078
- package/docs/ColorDistanceSensor.html +2188 -1540
- package/docs/CurrentSensor.html +711 -800
- package/docs/Device.html +574 -665
- package/docs/DuploTrainBase.html +1255 -1375
- package/docs/DuploTrainBaseColorSensor.html +1049 -978
- package/docs/DuploTrainBaseMotor.html +958 -1113
- package/docs/DuploTrainBaseSpeaker.html +793 -916
- package/docs/DuploTraniBaseSpeedometer.html +628 -719
- package/docs/Hub.html +5621 -2397
- package/docs/HubLED.html +831 -944
- package/docs/LPF2Hub.html +1215 -1335
- package/docs/Light.html +831 -944
- package/docs/Mario.html +1255 -1420
- package/docs/MarioAccelerometer.html +834 -911
- package/docs/MarioBarcodeSensor.html +834 -911
- package/docs/MarioPantsSensor.html +711 -800
- package/docs/MediumLinearMotor.html +861 -1000
- package/docs/MotionSensor.html +711 -800
- package/docs/MoveHub.html +1255 -1420
- package/docs/MoveHubMediumLinearMotor.html +861 -1000
- package/docs/MoveHubTiltSensor.html +730 -814
- package/docs/PiezoBuzzer.html +732 -834
- package/docs/PoweredUP.html +4322 -0
- package/docs/RemoteControl.html +1255 -1420
- package/docs/RemoteControlButton.html +711 -800
- package/docs/SimpleMediumLinearMotor.html +628 -719
- package/docs/TachoMotor.html +1644 -1835
- package/docs/Technic3x3ColorLightMatrix.html +1181 -0
- package/docs/TechnicColorSensor.html +1008 -1099
- package/docs/TechnicDistanceSensor.html +939 -1027
- package/docs/TechnicForceSensor.html +883 -968
- package/docs/TechnicLargeAngularMotor.html +1254 -1439
- package/docs/TechnicLargeLinearMotor.html +1254 -1439
- package/docs/TechnicMediumAngularMotor.html +1254 -1439
- package/docs/TechnicMediumHub.html +1255 -1420
- package/docs/TechnicMediumHubAccelerometerSensor.html +749 -828
- package/docs/TechnicMediumHubGyroSensor.html +749 -828
- package/docs/TechnicMediumHubTiltSensor.html +1340 -831
- package/docs/TechnicSmallAngularMotor.html +2073 -0
- package/docs/TechnicXLargeLinearMotor.html +1254 -1439
- package/docs/TiltSensor.html +730 -814
- package/docs/TrainMotor.html +958 -1113
- package/docs/VoltageSensor.html +711 -800
- package/docs/WeDo2SmartHub.html +1112 -1221
- package/docs/consts.js.html +791 -0
- package/docs/devices_absolutemotor.js.html +97 -200
- package/docs/devices_basicmotor.js.html +91 -193
- package/docs/devices_colordistancesensor.js.html +184 -193
- package/docs/devices_currentsensor.js.html +89 -191
- package/docs/devices_device.js.html +99 -196
- package/docs/devices_duplotrainbasecolorsensor.js.html +104 -193
- package/docs/devices_duplotrainbasemotor.js.html +92 -194
- package/docs/devices_duplotrainbasespeaker.js.html +89 -191
- package/docs/devices_duplotrainbasespeedometer.js.html +89 -191
- package/docs/devices_hubled.js.html +89 -191
- package/docs/devices_light.js.html +90 -192
- package/docs/devices_marioaccelerometer.js.html +89 -191
- package/docs/devices_mariobarcodesensor.js.html +89 -191
- package/docs/devices_mariopantssensor.js.html +89 -191
- package/docs/devices_mediumlinearmotor.js.html +92 -194
- package/docs/devices_motionsensor.js.html +89 -191
- package/docs/devices_movehubmediumlinearmotor.js.html +92 -194
- package/docs/devices_movehubtiltsensor.js.html +89 -191
- package/docs/devices_piezobuzzer.js.html +89 -191
- package/docs/devices_remotecontrolbutton.js.html +89 -191
- package/docs/devices_simplemediumlinearmotor.js.html +92 -194
- package/docs/devices_tachomotor.js.html +99 -203
- package/docs/devices_technic3x3colorlightmatrix.js.html +190 -0
- package/docs/devices_techniccolorsensor.js.html +91 -192
- package/docs/devices_technicdistancesensor.js.html +89 -191
- package/docs/devices_technicforcesensor.js.html +89 -191
- package/docs/devices_techniclargeangularmotor.js.html +92 -194
- package/docs/devices_techniclargelinearmotor.js.html +92 -194
- package/docs/devices_technicmediumangularmotor.js.html +92 -194
- package/docs/devices_technicmediumhubaccelerometersensor.js.html +89 -191
- package/docs/devices_technicmediumhubgyrosensor.js.html +89 -191
- package/docs/devices_technicmediumhubtiltsensor.js.html +159 -193
- package/docs/devices_technicsmallangularmotor.js.html +148 -0
- package/docs/devices_technicxlargelinearmotor.js.html +92 -194
- package/docs/devices_tiltsensor.js.html +89 -191
- package/docs/devices_trainmotor.js.html +92 -194
- package/docs/devices_voltagesensor.js.html +89 -191
- package/docs/fonts/OpenSans-Bold-webfont.eot +0 -0
- package/docs/fonts/OpenSans-Bold-webfont.svg +1830 -0
- package/docs/fonts/OpenSans-Bold-webfont.woff +0 -0
- package/docs/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
- package/docs/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
- package/docs/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
- package/docs/fonts/OpenSans-Italic-webfont.eot +0 -0
- package/docs/fonts/OpenSans-Italic-webfont.svg +1830 -0
- package/docs/fonts/OpenSans-Italic-webfont.woff +0 -0
- package/docs/fonts/OpenSans-Light-webfont.eot +0 -0
- package/docs/fonts/OpenSans-Light-webfont.svg +1831 -0
- package/docs/fonts/OpenSans-Light-webfont.woff +0 -0
- package/docs/fonts/OpenSans-LightItalic-webfont.eot +0 -0
- package/docs/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
- package/docs/fonts/OpenSans-LightItalic-webfont.woff +0 -0
- package/docs/fonts/OpenSans-Regular-webfont.eot +0 -0
- package/docs/fonts/OpenSans-Regular-webfont.svg +1831 -0
- package/docs/fonts/OpenSans-Regular-webfont.woff +0 -0
- package/docs/fonts/OpenSans-Semibold-webfont.eot +0 -0
- package/docs/fonts/OpenSans-Semibold-webfont.svg +1830 -0
- package/docs/fonts/OpenSans-Semibold-webfont.ttf +0 -0
- package/docs/fonts/OpenSans-Semibold-webfont.woff +0 -0
- package/docs/fonts/OpenSans-SemiboldItalic-webfont.eot +0 -0
- package/docs/fonts/OpenSans-SemiboldItalic-webfont.svg +1830 -0
- package/docs/fonts/OpenSans-SemiboldItalic-webfont.ttf +0 -0
- package/docs/fonts/OpenSans-SemiboldItalic-webfont.woff +0 -0
- package/docs/global.html +9829 -0
- package/docs/hubs_basehub.js.html +93 -191
- package/docs/hubs_duplotrainbase.js.html +89 -191
- package/docs/hubs_hub.js.html +90 -192
- package/docs/hubs_lpf2hub.js.html +108 -212
- package/docs/hubs_mario.js.html +89 -191
- package/docs/hubs_movehub.js.html +90 -192
- package/docs/hubs_remotecontrol.js.html +89 -191
- package/docs/hubs_technicmediumhub.js.html +90 -192
- package/docs/hubs_technicsmallhub.js.html +177 -0
- package/docs/hubs_wedo2smarthub.js.html +89 -191
- package/docs/icons/home.svg +4 -0
- package/docs/icons/search.svg +4 -0
- package/docs/index.html +143 -236
- package/docs/poweredup-browser.js.html +348 -0
- package/docs/poweredup-node.js.html +312 -0
- package/docs/scripts/linenumber.js +23 -0
- package/docs/scripts/pagelocation.js +89 -0
- package/docs/styles/collapse.css +27 -0
- package/docs/styles/jsdoc-default.css +953 -0
- package/docs/styles/prettify-jsdoc.css +111 -0
- package/docs/styles/prettify-tomorrow.css +15 -9
- package/jsdoc-template/braintree/CHANGELOG.md +31 -0
- package/jsdoc-template/braintree/LICENSE +27 -0
- package/jsdoc-template/braintree/README.md +90 -0
- package/jsdoc-template/braintree/package.json +39 -0
- package/jsdoc-template/braintree/publish.js +675 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Bold-webfont.eot +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Bold-webfont.svg +1830 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Bold-webfont.woff +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Italic-webfont.eot +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Italic-webfont.svg +1830 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Italic-webfont.woff +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Light-webfont.eot +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Light-webfont.svg +1831 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Light-webfont.woff +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-LightItalic-webfont.eot +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-LightItalic-webfont.woff +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Regular-webfont.eot +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Regular-webfont.svg +1831 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Regular-webfont.woff +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Semibold-webfont.eot +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Semibold-webfont.svg +1830 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Semibold-webfont.ttf +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Semibold-webfont.woff +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-SemiboldItalic-webfont.eot +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-SemiboldItalic-webfont.svg +1830 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-SemiboldItalic-webfont.ttf +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-SemiboldItalic-webfont.woff +0 -0
- package/jsdoc-template/braintree/static/icons/home.svg +4 -0
- package/jsdoc-template/braintree/static/icons/search.svg +4 -0
- package/jsdoc-template/braintree/static/scripts/linenumber.js +23 -0
- package/jsdoc-template/braintree/static/scripts/pagelocation.js +89 -0
- package/jsdoc-template/braintree/static/styles/collapse.css +27 -0
- package/jsdoc-template/braintree/static/styles/jsdoc-default.css +953 -0
- package/jsdoc-template/braintree/static/styles/prettify-jsdoc.css +111 -0
- package/jsdoc-template/braintree/static/styles/prettify-tomorrow.css +138 -0
- package/jsdoc-template/braintree/tmpl/augments.tmpl +10 -0
- package/jsdoc-template/braintree/tmpl/container.tmpl +213 -0
- package/jsdoc-template/braintree/tmpl/details.tmpl +223 -0
- package/jsdoc-template/braintree/tmpl/example.tmpl +2 -0
- package/jsdoc-template/braintree/tmpl/examples.tmpl +14 -0
- package/jsdoc-template/braintree/tmpl/exceptions.tmpl +28 -0
- package/jsdoc-template/braintree/tmpl/layout.tmpl +150 -0
- package/jsdoc-template/braintree/tmpl/mainpage.tmpl +9 -0
- package/jsdoc-template/braintree/tmpl/members.tmpl +38 -0
- package/jsdoc-template/braintree/tmpl/method.tmpl +128 -0
- package/jsdoc-template/braintree/tmpl/params.tmpl +125 -0
- package/jsdoc-template/braintree/tmpl/properties.tmpl +111 -0
- package/jsdoc-template/braintree/tmpl/returns.tmpl +17 -0
- package/jsdoc-template/braintree/tmpl/source.tmpl +9 -0
- package/jsdoc-template/braintree/tmpl/tutorial.tmpl +23 -0
- package/jsdoc-template/braintree/tmpl/type.tmpl +11 -0
- package/package.json +14 -15
- package/src/color.ts +20 -0
- package/src/consts.ts +47 -26
- package/src/devices/absolutemotor.ts +2 -3
- package/src/devices/colordistancesensor.ts +98 -3
- package/src/devices/device.ts +9 -6
- package/src/devices/duplotrainbasecolorsensor.ts +17 -2
- package/src/devices/tachomotor.ts +4 -6
- package/src/devices/technic3x3colorlightmatrix.ts +64 -0
- package/src/devices/techniccolorsensor.ts +2 -1
- package/src/devices/technicmediumhubtiltsensor.ts +75 -3
- package/src/devices/technicsmallangularmotor.ts +17 -0
- package/src/hubs/basehub.ts +4 -0
- package/src/hubs/lpf2hub.ts +7 -11
- package/src/hubs/technicmediumhub.ts +1 -1
- package/src/hubs/technicsmallhub.ts +60 -0
- package/src/index-browser.ts +6 -0
- package/src/index-node.ts +6 -0
- package/src/poweredup-browser.ts +8 -1
- package/src/poweredup-node.ts +7 -1
- package/src/utils.ts +7 -0
- package/docs/classes.list.html +0 -8654
- package/docs/fonts/glyphicons-halflings-regular.eot +0 -0
- package/docs/fonts/glyphicons-halflings-regular.svg +0 -288
- package/docs/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/docs/fonts/glyphicons-halflings-regular.woff +0 -0
- package/docs/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/docs/img/glyphicons-halflings-white.png +0 -0
- package/docs/img/glyphicons-halflings.png +0 -0
- package/docs/quicksearch.html +0 -31
- package/docs/scripts/docstrap.lib.js +0 -11
- package/docs/scripts/fulltext-search-ui.js +0 -89
- package/docs/scripts/fulltext-search.js +0 -36
- package/docs/scripts/lunr.min.js +0 -6
- package/docs/scripts/prettify/Apache-License-2.0.txt +0 -202
- package/docs/scripts/prettify/jquery.min.js +0 -6
- package/docs/scripts/prettify/lang-css.js +0 -21
- package/docs/scripts/prettify/prettify.js +0 -496
- package/docs/scripts/sunlight.js +0 -1157
- package/docs/scripts/toc.js +0 -203
- package/docs/styles/darkstrap.css +0 -960
- package/docs/styles/site.cerulean.css +0 -7008
- package/docs/styles/site.cosmo.css +0 -7061
- package/docs/styles/site.cyborg.css +0 -7048
- package/docs/styles/site.darkly.css +0 -7171
- package/docs/styles/site.darkstrap.css +0 -5638
- package/docs/styles/site.dibs-bootstrap.css +0 -5899
- package/docs/styles/site.flatly.css +0 -7147
- package/docs/styles/site.journal.css +0 -6973
- package/docs/styles/site.lumen.css +0 -7298
- package/docs/styles/site.paper.css +0 -7623
- package/docs/styles/site.readable.css +0 -6997
- package/docs/styles/site.sandstone.css +0 -7035
- package/docs/styles/site.simplex.css +0 -7023
- package/docs/styles/site.slate.css +0 -7343
- package/docs/styles/site.spacelab.css +0 -7055
- package/docs/styles/site.superhero.css +0 -7131
- package/docs/styles/site.united.css +0 -6895
- package/docs/styles/site.yeti.css +0 -7195
- package/docs/styles/sunlight.dark.css +0 -345
- package/docs/styles/sunlight.default.css +0 -344
|
@@ -1,2258 +1,2073 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
|
-
|
|
3
2
|
<html lang="en">
|
|
4
3
|
<head>
|
|
5
|
-
<meta charset="utf-8">
|
|
6
|
-
<meta name="viewport" content="width=device-width">
|
|
7
|
-
<title>node-poweredup Class: TechnicLargeAngularMotor</title>
|
|
8
4
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
+
|
|
8
|
+
<title>
|
|
9
|
+
TechnicLargeAngularMotor - Documentation
|
|
10
|
+
</title>
|
|
11
|
+
|
|
12
|
+
<link href="https://www.braintreepayments.com/images/favicon-ccda0b14.png" rel="icon" type="image/png">
|
|
13
|
+
|
|
14
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.7.0/highlight.min.js"></script>
|
|
15
|
+
<script>hljs.initHighlightingOnLoad();</script>
|
|
13
16
|
|
|
14
|
-
|
|
17
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
|
|
15
18
|
|
|
19
|
+
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
|
|
20
|
+
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
<!-- start Mixpanel -->
|
|
26
|
+
<script type="text/javascript">(function(e,a){if(!a.__SV){var b=window;try{var c,l,i,j=b.location,g=j.hash;c=function(a,b){return(l=a.match(RegExp(b+"=([^&]*)")))?l[1]:null};g&&c(g,"state")&&(i=JSON.parse(decodeURIComponent(c(g,"state"))),"mpeditor"===i.action&&(b.sessionStorage.setItem("_mpcehash",g),history.replaceState(i.desiredHash||"",e.title,j.pathname+j.search)))}catch(m){}var k,h;window.mixpanel=a;a._i=[];a.init=function(b,c,f){function e(b,a){var c=a.split(".");2==c.length&&(b=b[c[0]],a=c[1]);b[a]=function(){b.push([a].concat(Array.prototype.slice.call(arguments,
|
|
27
|
+
0)))}}var d=a;"undefined"!==typeof f?d=a[f]=[]:f="mixpanel";d.people=d.people||[];d.toString=function(b){var a="mixpanel";"mixpanel"!==f&&(a+="."+f);b||(a+=" (stub)");return a};d.people.toString=function(){return d.toString(1)+".people (stub)"};k="disable time_event track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config reset people.set people.set_once people.increment people.append people.union people.track_charge people.clear_charges people.delete_user".split(" ");
|
|
28
|
+
for(h=0;h<k.length;h++)e(d,k[h]);a._i.push([b,c,f])};a.__SV=1.2;b=e.createElement("script");b.type="text/javascript";b.async=!0;b.src="undefined"!==typeof MIXPANEL_CUSTOM_LIB_URL?MIXPANEL_CUSTOM_LIB_URL:"file:"===e.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js";c=e.getElementsByTagName("script")[0];c.parentNode.insertBefore(b,c)}})(document,window.mixpanel||[]);
|
|
29
|
+
mixpanel.init("1919205b2da72e4da3b9b6639b444d59");</script>
|
|
30
|
+
<!-- end Mixpanel -->
|
|
16
31
|
</head>
|
|
17
32
|
|
|
18
33
|
<body>
|
|
34
|
+
<svg style="display: none;">
|
|
35
|
+
<defs>
|
|
36
|
+
<symbol id="linkIcon" fill="#706d77" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
|
37
|
+
<path d="M0 0h24v24H0z" fill="none"/>
|
|
38
|
+
<path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/>
|
|
39
|
+
</symbol>
|
|
40
|
+
</defs>
|
|
41
|
+
</svg>
|
|
42
|
+
|
|
43
|
+
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
|
|
44
|
+
<label for="nav-trigger" class="navicon-button x">
|
|
45
|
+
<div class="navicon"></div>
|
|
46
|
+
</label>
|
|
47
|
+
|
|
48
|
+
<label for="nav-trigger" class="overlay"></label>
|
|
49
|
+
|
|
50
|
+
<div class="top-nav-wrapper">
|
|
51
|
+
<ul>
|
|
52
|
+
<li >
|
|
53
|
+
<a href="index.html">
|
|
54
|
+
|
|
55
|
+
<svg fill="#6D6D6D" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
|
56
|
+
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
|
|
57
|
+
<path d="M0 0h24v24H0z" fill="none"/>
|
|
58
|
+
</svg>
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
</a>
|
|
62
|
+
</li>
|
|
63
|
+
|
|
64
|
+
|
|
19
65
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<span class="icon-bar"></span>
|
|
28
|
-
</button>
|
|
29
|
-
</div>
|
|
30
|
-
<div class="navbar-collapse collapse" id="topNavigation">
|
|
31
|
-
<ul class="nav navbar-nav">
|
|
32
|
-
|
|
33
|
-
<li class="dropdown">
|
|
34
|
-
<a href="classes.list.html" class="dropdown-toggle" data-toggle="dropdown">Classes<b class="caret"></b></a>
|
|
35
|
-
<ul class="dropdown-menu ">
|
|
36
|
-
<li><a href="AbsoluteMotor.html">AbsoluteMotor</a></li><li><a href="BaseHub.html">BaseHub</a></li><li><a href="BasicMotor.html">BasicMotor</a></li><li><a href="ColorDistanceSensor.html">ColorDistanceSensor</a></li><li><a href="CurrentSensor.html">CurrentSensor</a></li><li><a href="Device.html">Device</a></li><li><a href="DuploTrainBase.html">DuploTrainBase</a></li><li><a href="DuploTrainBaseColorSensor.html">DuploTrainBaseColorSensor</a></li><li><a href="DuploTrainBaseMotor.html">DuploTrainBaseMotor</a></li><li><a href="DuploTrainBaseSpeaker.html">DuploTrainBaseSpeaker</a></li><li><a href="DuploTraniBaseSpeedometer.html">DuploTraniBaseSpeedometer</a></li><li><a href="Hub.html">Hub</a></li><li><a href="HubLED.html">HubLED</a></li><li><a href="Light.html">Light</a></li><li><a href="LPF2Hub.html">LPF2Hub</a></li><li><a href="Mario.html">Mario</a></li><li><a href="MarioAccelerometer.html">MarioAccelerometer</a></li><li><a href="MarioBarcodeSensor.html">MarioBarcodeSensor</a></li><li><a href="MarioPantsSensor.html">MarioPantsSensor</a></li><li><a href="MediumLinearMotor.html">MediumLinearMotor</a></li><li><a href="MotionSensor.html">MotionSensor</a></li><li><a href="MoveHub.html">MoveHub</a></li><li><a href="MoveHubMediumLinearMotor.html">MoveHubMediumLinearMotor</a></li><li><a href="MoveHubTiltSensor.html">MoveHubTiltSensor</a></li><li><a href="PiezoBuzzer.html">PiezoBuzzer</a></li><li><a href="RemoteControl.html">RemoteControl</a></li><li><a href="RemoteControlButton.html">RemoteControlButton</a></li><li><a href="SimpleMediumLinearMotor.html">SimpleMediumLinearMotor</a></li><li><a href="TachoMotor.html">TachoMotor</a></li><li><a href="TechnicColorSensor.html">TechnicColorSensor</a></li><li><a href="TechnicDistanceSensor.html">TechnicDistanceSensor</a></li><li><a href="TechnicForceSensor.html">TechnicForceSensor</a></li><li><a href="TechnicLargeAngularMotor.html">TechnicLargeAngularMotor</a></li><li><a href="TechnicLargeLinearMotor.html">TechnicLargeLinearMotor</a></li><li><a href="TechnicMediumAngularMotor.html">TechnicMediumAngularMotor</a></li><li><a href="TechnicMediumHub.html">TechnicMediumHub</a></li><li><a href="TechnicMediumHubAccelerometerSensor.html">TechnicMediumHubAccelerometerSensor</a></li><li><a href="TechnicMediumHubGyroSensor.html">TechnicMediumHubGyroSensor</a></li><li><a href="TechnicMediumHubTiltSensor.html">TechnicMediumHubTiltSensor</a></li><li><a href="TechnicXLargeLinearMotor.html">TechnicXLargeLinearMotor</a></li><li><a href="TiltSensor.html">TiltSensor</a></li><li><a href="TrainMotor.html">TrainMotor</a></li><li><a href="VoltageSensor.html">VoltageSensor</a></li><li><a href="WeDo2SmartHub.html">WeDo2SmartHub</a></li>
|
|
37
|
-
</ul>
|
|
38
|
-
</li>
|
|
39
|
-
|
|
40
|
-
<li class="dropdown">
|
|
41
|
-
<a href="events.list.html" class="dropdown-toggle" data-toggle="dropdown">Events<b class="caret"></b></a>
|
|
42
|
-
<ul class="dropdown-menu ">
|
|
43
|
-
<li><a href="AbsoluteMotor.html#event:absolute">AbsoluteMotor#event:absolute</a></li><li><a href="AbsoluteMotor.html#event:rotate">AbsoluteMotor#event:rotate</a></li><li><a href="ColorDistanceSensor.html#event:color">ColorDistanceSensor#event:color</a></li><li><a href="ColorDistanceSensor.html#event:colorAndDistance">ColorDistanceSensor#event:colorAndDistance</a></li><li><a href="ColorDistanceSensor.html#event:distance">ColorDistanceSensor#event:distance</a></li><li><a href="CurrentSensor.html#event:current">CurrentSensor#event:current</a></li><li><a href="DuploTrainBase.html#event:button">DuploTrainBase#event:button</a></li><li><a href="DuploTrainBaseColorSensor.html#event:color">DuploTrainBaseColorSensor#event:color</a></li><li><a href="DuploTrainBaseColorSensor.html#event:reflect">DuploTrainBaseColorSensor#event:reflect</a></li><li><a href="DuploTrainBaseColorSensor.html#event:rgb">DuploTrainBaseColorSensor#event:rgb</a></li><li><a href="DuploTrainBaseSpeedometer.html#event:speed">DuploTrainBaseSpeedometer#event:speed</a></li><li><a href="Hub.html#event:attach">Hub#event:attach</a></li><li><a href="Hub.html#event:button">Hub#event:button</a></li><li><a href="Hub.html#event:detach">Hub#event:detach</a></li><li><a href="Hub.html#event:disconnect">Hub#event:disconnect</a></li><li><a href="LPF2Hub.html#event:button">LPF2Hub#event:button</a></li><li><a href="Mario.html#event:button">Mario#event:button</a></li><li><a href="MarioAccelerometer.html#event:accel">MarioAccelerometer#event:accel</a></li><li><a href="MarioAccelerometer.html#event:gest">MarioAccelerometer#event:gest</a></li><li><a href="MarioBarcodeSensor.html#event:barcode">MarioBarcodeSensor#event:barcode</a></li><li><a href="MarioBarcodeSensor.html#event:rgb">MarioBarcodeSensor#event:rgb</a></li><li><a href="MarioPantsSensor.html#event:pants">MarioPantsSensor#event:pants</a></li><li><a href="MediumLinearMotor.html#event:rotate">MediumLinearMotor#event:rotate</a></li><li><a href="MotionSensor.html#event:distance">MotionSensor#event:distance</a></li><li><a href="MoveHub.html#event:button">MoveHub#event:button</a></li><li><a href="MoveHubMediumLinearMotor.html#event:rotate">MoveHubMediumLinearMotor#event:rotate</a></li><li><a href="MoveHubTiltSensor.html#event:tilt">MoveHubTiltSensor#event:tilt</a></li><li><a href="RemoteControl.html#event:button">RemoteControl#event:button</a></li><li><a href="RemoteControlButton.html#event:button">RemoteControlButton#event:button</a></li><li><a href="TachoMotor.html#event:rotate">TachoMotor#event:rotate</a></li><li><a href="TechnicColorSensor.html#event:ambient">TechnicColorSensor#event:ambient</a></li><li><a href="TechnicColorSensor.html#event:color">TechnicColorSensor#event:color</a></li><li><a href="TechnicColorSensor.html#event:reflect">TechnicColorSensor#event:reflect</a></li><li><a href="TechnicDistanceSensor.html#event:distance">TechnicDistanceSensor#event:distance</a></li><li><a href="TechnicDistanceSensor.html#event:fastDistance">TechnicDistanceSensor#event:fastDistance</a></li><li><a href="TechnicForceSensor.html#event:force">TechnicForceSensor#event:force</a></li><li><a href="TechnicForceSensor.html#event:tapped">TechnicForceSensor#event:tapped</a></li><li><a href="TechnicForceSensor.html#event:touch">TechnicForceSensor#event:touch</a></li><li><a href="TechnicLargeAngularMotor.html#event:absolute">TechnicLargeAngularMotor#event:absolute</a></li><li><a href="TechnicLargeAngularMotor.html#event:rotate">TechnicLargeAngularMotor#event:rotate</a></li><li><a href="TechnicLargeLinearMotor.html#event:absolute">TechnicLargeLinearMotor#event:absolute</a></li><li><a href="TechnicLargeLinearMotor.html#event:rotate">TechnicLargeLinearMotor#event:rotate</a></li><li><a href="TechnicMediumAngularMotor.html#event:absolute">TechnicMediumAngularMotor#event:absolute</a></li><li><a href="TechnicMediumAngularMotor.html#event:rotate">TechnicMediumAngularMotor#event:rotate</a></li><li><a href="TechnicMediumHub.html#event:button">TechnicMediumHub#event:button</a></li><li><a href="TechnicMediumHubAccelerometerSensor.html#event:accel">TechnicMediumHubAccelerometerSensor#event:accel</a></li><li><a href="TechnicMediumHubGyroSensor.html#event:gyro">TechnicMediumHubGyroSensor#event:gyro</a></li><li><a href="TechnicMediumHubTiltSensor.html#event:tilt">TechnicMediumHubTiltSensor#event:tilt</a></li><li><a href="TechnicXLargeLinearMotor.html#event:absolute">TechnicXLargeLinearMotor#event:absolute</a></li><li><a href="TechnicXLargeLinearMotor.html#event:rotate">TechnicXLargeLinearMotor#event:rotate</a></li><li><a href="TiltSensor.html#event:tilt">TiltSensor#event:tilt</a></li><li><a href="VoltageSensor.html#event:voltage">VoltageSensor#event:voltage</a></li><li><a href="WeDo2SmartHub.html#event:button">WeDo2SmartHub#event:button</a></li>
|
|
44
|
-
</ul>
|
|
45
|
-
</li>
|
|
46
|
-
|
|
47
|
-
</ul>
|
|
48
|
-
|
|
49
|
-
<div class="col-sm-3 col-md-3">
|
|
50
|
-
<form class="navbar-form" role="search">
|
|
51
|
-
<div class="input-group">
|
|
52
|
-
<input type="text" class="form-control" placeholder="Search" name="q" id="search-input">
|
|
53
|
-
<div class="input-group-btn">
|
|
54
|
-
<button class="btn btn-default" id="search-submit"><i class="glyphicon glyphicon-search"></i></button>
|
|
55
|
-
</div>
|
|
56
|
-
</div>
|
|
57
|
-
</form>
|
|
58
|
-
</div>
|
|
59
|
-
|
|
60
|
-
</div>
|
|
61
|
-
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
<div class="container" id="toc-content">
|
|
67
|
-
<div class="row">
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
<div class="col-md-8">
|
|
71
|
-
|
|
72
|
-
<div id="main">
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
<h1 class="page-title">Class: TechnicLargeAngularMotor</h1>
|
|
76
|
-
<section>
|
|
66
|
+
</ul>
|
|
67
|
+
</div>
|
|
68
|
+
|
|
69
|
+
<nav>
|
|
70
|
+
<h3 class="reference-title">
|
|
71
|
+
node-poweredup Reference
|
|
72
|
+
</h3>
|
|
77
73
|
|
|
78
|
-
<header>
|
|
79
|
-
|
|
80
|
-
<h2>
|
|
81
|
-
TechnicLargeAngularMotor
|
|
82
|
-
</h2>
|
|
83
|
-
|
|
84
74
|
|
|
85
|
-
</header>
|
|
86
75
|
|
|
76
|
+
<h3>Classes</h3><ul><li id="AbsoluteMotor-nav"><a href="AbsoluteMotor.html">AbsoluteMotor</a><ul class='methods'><li data-type="method" id="AbsoluteMotor-gotoAngle-nav"><a href="AbsoluteMotor.html#gotoAngle">gotoAngle</a></li><li data-type="method" id="AbsoluteMotor-gotoRealZero-nav"><a href="AbsoluteMotor.html#gotoRealZero">gotoRealZero</a></li><li data-type="method" id="AbsoluteMotor-resetZero-nav"><a href="AbsoluteMotor.html#resetZero">resetZero</a></li><li data-type="method" id="AbsoluteMotor-rotateByDegrees-nav"><a href="AbsoluteMotor.html#rotateByDegrees">rotateByDegrees</a></li><li data-type="method" id="AbsoluteMotor-setAccelerationTime-nav"><a href="AbsoluteMotor.html#setAccelerationTime">setAccelerationTime</a></li><li data-type="method" id="AbsoluteMotor-setBrakingStyle-nav"><a href="AbsoluteMotor.html#setBrakingStyle">setBrakingStyle</a></li><li data-type="method" id="AbsoluteMotor-setDecelerationTime-nav"><a href="AbsoluteMotor.html#setDecelerationTime">setDecelerationTime</a></li><li data-type="method" id="AbsoluteMotor-setMaxPower-nav"><a href="AbsoluteMotor.html#setMaxPower">setMaxPower</a></li><li data-type="method" id="AbsoluteMotor-setSpeed-nav"><a href="AbsoluteMotor.html#setSpeed">setSpeed</a></li></ul></li><li id="BaseHub-nav"><a href="BaseHub.html">BaseHub</a></li><li id="BasicMotor-nav"><a href="BasicMotor.html">BasicMotor</a><ul class='methods'><li data-type="method" id="BasicMotor-brake-nav"><a href="BasicMotor.html#brake">brake</a></li><li data-type="method" id="BasicMotor-rampPower-nav"><a href="BasicMotor.html#rampPower">rampPower</a></li><li data-type="method" id="BasicMotor-setPower-nav"><a href="BasicMotor.html#setPower">setPower</a></li><li data-type="method" id="BasicMotor-stop-nav"><a href="BasicMotor.html#stop">stop</a></li></ul></li><li id="ColorDistanceSensor-nav"><a href="ColorDistanceSensor.html">ColorDistanceSensor</a><ul class='methods'><li data-type="method" id="ColorDistanceSensor-sendPFIRMessage-nav"><a href="ColorDistanceSensor.html#sendPFIRMessage">sendPFIRMessage</a></li><li data-type="method" id="ColorDistanceSensor-setColor-nav"><a href="ColorDistanceSensor.html#setColor">setColor</a></li><li data-type="method" id="ColorDistanceSensor-setDistanceCount-nav"><a href="ColorDistanceSensor.html#setDistanceCount">setDistanceCount</a></li><li data-type="method" id="ColorDistanceSensor-setPFExtendedChannel-nav"><a href="ColorDistanceSensor.html#setPFExtendedChannel">setPFExtendedChannel</a></li><li data-type="method" id="ColorDistanceSensor-setPFPower-nav"><a href="ColorDistanceSensor.html#setPFPower">setPFPower</a></li><li data-type="method" id="ColorDistanceSensor-startPFMotors-nav"><a href="ColorDistanceSensor.html#startPFMotors">startPFMotors</a></li></ul></li><li id="CurrentSensor-nav"><a href="CurrentSensor.html">CurrentSensor</a></li><li id="Device-nav"><a href="Device.html">Device</a></li><li id="DuploTrainBase-nav"><a href="DuploTrainBase.html">DuploTrainBase</a><ul class='methods'><li data-type="method" id="DuploTrainBase-createVirtualPort-nav"><a href="DuploTrainBase.html#createVirtualPort">createVirtualPort</a></li><li data-type="method" id="DuploTrainBase-setName-nav"><a href="DuploTrainBase.html#setName">setName</a></li><li data-type="method" id="DuploTrainBase-shutdown-nav"><a href="DuploTrainBase.html#shutdown">shutdown</a></li></ul></li><li id="DuploTrainBaseColorSensor-nav"><a href="DuploTrainBaseColorSensor.html">DuploTrainBaseColorSensor</a></li><li id="DuploTrainBaseMotor-nav"><a href="DuploTrainBaseMotor.html">DuploTrainBaseMotor</a><ul class='methods'><li data-type="method" id="DuploTrainBaseMotor-brake-nav"><a href="DuploTrainBaseMotor.html#brake">brake</a></li><li data-type="method" id="DuploTrainBaseMotor-rampPower-nav"><a href="DuploTrainBaseMotor.html#rampPower">rampPower</a></li><li data-type="method" id="DuploTrainBaseMotor-setPower-nav"><a href="DuploTrainBaseMotor.html#setPower">setPower</a></li><li data-type="method" id="DuploTrainBaseMotor-stop-nav"><a href="DuploTrainBaseMotor.html#stop">stop</a></li></ul></li><li id="DuploTrainBaseSpeaker-nav"><a href="DuploTrainBaseSpeaker.html">DuploTrainBaseSpeaker</a><ul class='methods'><li data-type="method" id="DuploTrainBaseSpeaker-playSound-nav"><a href="DuploTrainBaseSpeaker.html#playSound">playSound</a></li><li data-type="method" id="DuploTrainBaseSpeaker-playTone-nav"><a href="DuploTrainBaseSpeaker.html#playTone">playTone</a></li></ul></li><li id="DuploTraniBaseSpeedometer-nav"><a href="DuploTraniBaseSpeedometer.html">DuploTraniBaseSpeedometer</a></li><li id="Hub-nav"><a href="Hub.html">Hub</a><ul class='methods'><li data-type="method" id="Hub-connect-nav"><a href="Hub.html#connect">connect</a></li><li data-type="method" id="Hub-createVirtualPort-nav"><a href="Hub.html#createVirtualPort">createVirtualPort</a></li><li data-type="method" id="Hub-disconnect-nav"><a href="Hub.html#disconnect">disconnect</a></li><li data-type="method" id="Hub-getDeviceAtPort-nav"><a href="Hub.html#getDeviceAtPort">getDeviceAtPort</a></li><li data-type="method" id="Hub-getDevices-nav"><a href="Hub.html#getDevices">getDevices</a></li><li data-type="method" id="Hub-getDevicesByType-nav"><a href="Hub.html#getDevicesByType">getDevicesByType</a></li><li data-type="method" id="Hub-setName-nav"><a href="Hub.html#setName">setName</a></li><li data-type="method" id="Hub-shutdown-nav"><a href="Hub.html#shutdown">shutdown</a></li><li data-type="method" id="Hub-sleep-nav"><a href="Hub.html#sleep">sleep</a></li><li data-type="method" id="Hub-wait-nav"><a href="Hub.html#wait">wait</a></li><li data-type="method" id="Hub-waitForDeviceAtPort-nav"><a href="Hub.html#waitForDeviceAtPort">waitForDeviceAtPort</a></li><li data-type="method" id="Hub-waitForDeviceByType-nav"><a href="Hub.html#waitForDeviceByType">waitForDeviceByType</a></li></ul></li><li id="HubLED-nav"><a href="HubLED.html">HubLED</a><ul class='methods'><li data-type="method" id="HubLED-setColor-nav"><a href="HubLED.html#setColor">setColor</a></li><li data-type="method" id="HubLED-setRGB-nav"><a href="HubLED.html#setRGB">setRGB</a></li></ul></li><li id="Light-nav"><a href="Light.html">Light</a><ul class='methods'><li data-type="method" id="Light-rampBrightness-nav"><a href="Light.html#rampBrightness">rampBrightness</a></li><li data-type="method" id="Light-setBrightness-nav"><a href="Light.html#setBrightness">setBrightness</a></li></ul></li><li id="LPF2Hub-nav"><a href="LPF2Hub.html">LPF2Hub</a><ul class='methods'><li data-type="method" id="LPF2Hub-createVirtualPort-nav"><a href="LPF2Hub.html#createVirtualPort">createVirtualPort</a></li><li data-type="method" id="LPF2Hub-setName-nav"><a href="LPF2Hub.html#setName">setName</a></li><li data-type="method" id="LPF2Hub-shutdown-nav"><a href="LPF2Hub.html#shutdown">shutdown</a></li></ul></li><li id="Mario-nav"><a href="Mario.html">Mario</a><ul class='methods'><li data-type="method" id="Mario-createVirtualPort-nav"><a href="Mario.html#createVirtualPort">createVirtualPort</a></li><li data-type="method" id="Mario-setName-nav"><a href="Mario.html#setName">setName</a></li><li data-type="method" id="Mario-shutdown-nav"><a href="Mario.html#shutdown">shutdown</a></li></ul></li><li id="MarioAccelerometer-nav"><a href="MarioAccelerometer.html">MarioAccelerometer</a></li><li id="MarioBarcodeSensor-nav"><a href="MarioBarcodeSensor.html">MarioBarcodeSensor</a></li><li id="MarioPantsSensor-nav"><a href="MarioPantsSensor.html">MarioPantsSensor</a></li><li id="MediumLinearMotor-nav"><a href="MediumLinearMotor.html">MediumLinearMotor</a><ul class='methods'><li data-type="method" id="MediumLinearMotor-rotateByDegrees-nav"><a href="MediumLinearMotor.html#rotateByDegrees">rotateByDegrees</a></li><li data-type="method" id="MediumLinearMotor-setAccelerationTime-nav"><a href="MediumLinearMotor.html#setAccelerationTime">setAccelerationTime</a></li><li data-type="method" id="MediumLinearMotor-setBrakingStyle-nav"><a href="MediumLinearMotor.html#setBrakingStyle">setBrakingStyle</a></li><li data-type="method" id="MediumLinearMotor-setDecelerationTime-nav"><a href="MediumLinearMotor.html#setDecelerationTime">setDecelerationTime</a></li><li data-type="method" id="MediumLinearMotor-setMaxPower-nav"><a href="MediumLinearMotor.html#setMaxPower">setMaxPower</a></li><li data-type="method" id="MediumLinearMotor-setSpeed-nav"><a href="MediumLinearMotor.html#setSpeed">setSpeed</a></li></ul></li><li id="MotionSensor-nav"><a href="MotionSensor.html">MotionSensor</a></li><li id="MoveHub-nav"><a href="MoveHub.html">MoveHub</a><ul class='methods'><li data-type="method" id="MoveHub-createVirtualPort-nav"><a href="MoveHub.html#createVirtualPort">createVirtualPort</a></li><li data-type="method" id="MoveHub-setName-nav"><a href="MoveHub.html#setName">setName</a></li><li data-type="method" id="MoveHub-shutdown-nav"><a href="MoveHub.html#shutdown">shutdown</a></li></ul></li><li id="MoveHubMediumLinearMotor-nav"><a href="MoveHubMediumLinearMotor.html">MoveHubMediumLinearMotor</a><ul class='methods'><li data-type="method" id="MoveHubMediumLinearMotor-rotateByDegrees-nav"><a href="MoveHubMediumLinearMotor.html#rotateByDegrees">rotateByDegrees</a></li><li data-type="method" id="MoveHubMediumLinearMotor-setAccelerationTime-nav"><a href="MoveHubMediumLinearMotor.html#setAccelerationTime">setAccelerationTime</a></li><li data-type="method" id="MoveHubMediumLinearMotor-setBrakingStyle-nav"><a href="MoveHubMediumLinearMotor.html#setBrakingStyle">setBrakingStyle</a></li><li data-type="method" id="MoveHubMediumLinearMotor-setDecelerationTime-nav"><a href="MoveHubMediumLinearMotor.html#setDecelerationTime">setDecelerationTime</a></li><li data-type="method" id="MoveHubMediumLinearMotor-setMaxPower-nav"><a href="MoveHubMediumLinearMotor.html#setMaxPower">setMaxPower</a></li><li data-type="method" id="MoveHubMediumLinearMotor-setSpeed-nav"><a href="MoveHubMediumLinearMotor.html#setSpeed">setSpeed</a></li></ul></li><li id="MoveHubTiltSensor-nav"><a href="MoveHubTiltSensor.html">MoveHubTiltSensor</a></li><li id="PiezoBuzzer-nav"><a href="PiezoBuzzer.html">PiezoBuzzer</a><ul class='methods'><li data-type="method" id="PiezoBuzzer-playTone-nav"><a href="PiezoBuzzer.html#playTone">playTone</a></li></ul></li><li id="PoweredUP-nav"><a href="PoweredUP.html">PoweredUP</a><ul class='methods'><li data-type="method" id="PoweredUP-getHubByPrimaryMACAddress-nav"><a href="PoweredUP.html#getHubByPrimaryMACAddress">getHubByPrimaryMACAddress</a></li><li data-type="method" id="PoweredUP-getHubByPrimaryMACAddress-nav"><a href="PoweredUP.html#getHubByPrimaryMACAddress">getHubByPrimaryMACAddress</a></li><li data-type="method" id="PoweredUP-getHubByUUID-nav"><a href="PoweredUP.html#getHubByUUID">getHubByUUID</a></li><li data-type="method" id="PoweredUP-getHubByUUID-nav"><a href="PoweredUP.html#getHubByUUID">getHubByUUID</a></li><li data-type="method" id="PoweredUP-getHubs-nav"><a href="PoweredUP.html#getHubs">getHubs</a></li><li data-type="method" id="PoweredUP-getHubs-nav"><a href="PoweredUP.html#getHubs">getHubs</a></li><li data-type="method" id="PoweredUP-getHubsByName-nav"><a href="PoweredUP.html#getHubsByName">getHubsByName</a></li><li data-type="method" id="PoweredUP-getHubsByName-nav"><a href="PoweredUP.html#getHubsByName">getHubsByName</a></li><li data-type="method" id="PoweredUP-getHubsByType-nav"><a href="PoweredUP.html#getHubsByType">getHubsByType</a></li><li data-type="method" id="PoweredUP-getHubsByType-nav"><a href="PoweredUP.html#getHubsByType">getHubsByType</a></li><li data-type="method" id="PoweredUP-scan-nav"><a href="PoweredUP.html#scan">scan</a></li><li data-type="method" id="PoweredUP-scan-nav"><a href="PoweredUP.html#scan">scan</a></li><li data-type="method" id="PoweredUP-stop-nav"><a href="PoweredUP.html#stop">stop</a></li></ul></li><li id="RemoteControl-nav"><a href="RemoteControl.html">RemoteControl</a><ul class='methods'><li data-type="method" id="RemoteControl-createVirtualPort-nav"><a href="RemoteControl.html#createVirtualPort">createVirtualPort</a></li><li data-type="method" id="RemoteControl-setName-nav"><a href="RemoteControl.html#setName">setName</a></li><li data-type="method" id="RemoteControl-shutdown-nav"><a href="RemoteControl.html#shutdown">shutdown</a></li></ul></li><li id="RemoteControlButton-nav"><a href="RemoteControlButton.html">RemoteControlButton</a></li><li id="SimpleMediumLinearMotor-nav"><a href="SimpleMediumLinearMotor.html">SimpleMediumLinearMotor</a></li><li id="TachoMotor-nav"><a href="TachoMotor.html">TachoMotor</a><ul class='methods'><li data-type="method" id="TachoMotor-brake-nav"><a href="TachoMotor.html#brake">brake</a></li><li data-type="method" id="TachoMotor-rampPower-nav"><a href="TachoMotor.html#rampPower">rampPower</a></li><li data-type="method" id="TachoMotor-rotateByDegrees-nav"><a href="TachoMotor.html#rotateByDegrees">rotateByDegrees</a></li><li data-type="method" id="TachoMotor-setAccelerationTime-nav"><a href="TachoMotor.html#setAccelerationTime">setAccelerationTime</a></li><li data-type="method" id="TachoMotor-setBrakingStyle-nav"><a href="TachoMotor.html#setBrakingStyle">setBrakingStyle</a></li><li data-type="method" id="TachoMotor-setDecelerationTime-nav"><a href="TachoMotor.html#setDecelerationTime">setDecelerationTime</a></li><li data-type="method" id="TachoMotor-setMaxPower-nav"><a href="TachoMotor.html#setMaxPower">setMaxPower</a></li><li data-type="method" id="TachoMotor-setPower-nav"><a href="TachoMotor.html#setPower">setPower</a></li><li data-type="method" id="TachoMotor-setSpeed-nav"><a href="TachoMotor.html#setSpeed">setSpeed</a></li><li data-type="method" id="TachoMotor-stop-nav"><a href="TachoMotor.html#stop">stop</a></li></ul></li><li id="Technic3x3ColorLightMatrix-nav"><a href="Technic3x3ColorLightMatrix.html">Technic3x3ColorLightMatrix</a><ul class='methods'><li data-type="method" id="Technic3x3ColorLightMatrix-setMatrix-nav"><a href="Technic3x3ColorLightMatrix.html#setMatrix">setMatrix</a></li></ul></li><li id="TechnicColorSensor-nav"><a href="TechnicColorSensor.html">TechnicColorSensor</a><ul class='methods'><li data-type="method" id="TechnicColorSensor-setBrightness-nav"><a href="TechnicColorSensor.html#setBrightness">setBrightness</a></li></ul></li><li id="TechnicDistanceSensor-nav"><a href="TechnicDistanceSensor.html">TechnicDistanceSensor</a><ul class='methods'><li data-type="method" id="TechnicDistanceSensor-setBrightness-nav"><a href="TechnicDistanceSensor.html#setBrightness">setBrightness</a></li></ul></li><li id="TechnicForceSensor-nav"><a href="TechnicForceSensor.html">TechnicForceSensor</a></li><li id="TechnicLargeAngularMotor-nav"><a href="TechnicLargeAngularMotor.html">TechnicLargeAngularMotor</a><ul class='methods'><li data-type="method" id="TechnicLargeAngularMotor-gotoAngle-nav"><a href="TechnicLargeAngularMotor.html#gotoAngle">gotoAngle</a></li><li data-type="method" id="TechnicLargeAngularMotor-gotoRealZero-nav"><a href="TechnicLargeAngularMotor.html#gotoRealZero">gotoRealZero</a></li><li data-type="method" id="TechnicLargeAngularMotor-resetZero-nav"><a href="TechnicLargeAngularMotor.html#resetZero">resetZero</a></li><li data-type="method" id="TechnicLargeAngularMotor-rotateByDegrees-nav"><a href="TechnicLargeAngularMotor.html#rotateByDegrees">rotateByDegrees</a></li><li data-type="method" id="TechnicLargeAngularMotor-setAccelerationTime-nav"><a href="TechnicLargeAngularMotor.html#setAccelerationTime">setAccelerationTime</a></li><li data-type="method" id="TechnicLargeAngularMotor-setBrakingStyle-nav"><a href="TechnicLargeAngularMotor.html#setBrakingStyle">setBrakingStyle</a></li><li data-type="method" id="TechnicLargeAngularMotor-setDecelerationTime-nav"><a href="TechnicLargeAngularMotor.html#setDecelerationTime">setDecelerationTime</a></li><li data-type="method" id="TechnicLargeAngularMotor-setMaxPower-nav"><a href="TechnicLargeAngularMotor.html#setMaxPower">setMaxPower</a></li><li data-type="method" id="TechnicLargeAngularMotor-setSpeed-nav"><a href="TechnicLargeAngularMotor.html#setSpeed">setSpeed</a></li></ul></li><li id="TechnicLargeLinearMotor-nav"><a href="TechnicLargeLinearMotor.html">TechnicLargeLinearMotor</a><ul class='methods'><li data-type="method" id="TechnicLargeLinearMotor-gotoAngle-nav"><a href="TechnicLargeLinearMotor.html#gotoAngle">gotoAngle</a></li><li data-type="method" id="TechnicLargeLinearMotor-gotoRealZero-nav"><a href="TechnicLargeLinearMotor.html#gotoRealZero">gotoRealZero</a></li><li data-type="method" id="TechnicLargeLinearMotor-resetZero-nav"><a href="TechnicLargeLinearMotor.html#resetZero">resetZero</a></li><li data-type="method" id="TechnicLargeLinearMotor-rotateByDegrees-nav"><a href="TechnicLargeLinearMotor.html#rotateByDegrees">rotateByDegrees</a></li><li data-type="method" id="TechnicLargeLinearMotor-setAccelerationTime-nav"><a href="TechnicLargeLinearMotor.html#setAccelerationTime">setAccelerationTime</a></li><li data-type="method" id="TechnicLargeLinearMotor-setBrakingStyle-nav"><a href="TechnicLargeLinearMotor.html#setBrakingStyle">setBrakingStyle</a></li><li data-type="method" id="TechnicLargeLinearMotor-setDecelerationTime-nav"><a href="TechnicLargeLinearMotor.html#setDecelerationTime">setDecelerationTime</a></li><li data-type="method" id="TechnicLargeLinearMotor-setMaxPower-nav"><a href="TechnicLargeLinearMotor.html#setMaxPower">setMaxPower</a></li><li data-type="method" id="TechnicLargeLinearMotor-setSpeed-nav"><a href="TechnicLargeLinearMotor.html#setSpeed">setSpeed</a></li></ul></li><li id="TechnicMediumAngularMotor-nav"><a href="TechnicMediumAngularMotor.html">TechnicMediumAngularMotor</a><ul class='methods'><li data-type="method" id="TechnicMediumAngularMotor-gotoAngle-nav"><a href="TechnicMediumAngularMotor.html#gotoAngle">gotoAngle</a></li><li data-type="method" id="TechnicMediumAngularMotor-gotoRealZero-nav"><a href="TechnicMediumAngularMotor.html#gotoRealZero">gotoRealZero</a></li><li data-type="method" id="TechnicMediumAngularMotor-resetZero-nav"><a href="TechnicMediumAngularMotor.html#resetZero">resetZero</a></li><li data-type="method" id="TechnicMediumAngularMotor-rotateByDegrees-nav"><a href="TechnicMediumAngularMotor.html#rotateByDegrees">rotateByDegrees</a></li><li data-type="method" id="TechnicMediumAngularMotor-setAccelerationTime-nav"><a href="TechnicMediumAngularMotor.html#setAccelerationTime">setAccelerationTime</a></li><li data-type="method" id="TechnicMediumAngularMotor-setBrakingStyle-nav"><a href="TechnicMediumAngularMotor.html#setBrakingStyle">setBrakingStyle</a></li><li data-type="method" id="TechnicMediumAngularMotor-setDecelerationTime-nav"><a href="TechnicMediumAngularMotor.html#setDecelerationTime">setDecelerationTime</a></li><li data-type="method" id="TechnicMediumAngularMotor-setMaxPower-nav"><a href="TechnicMediumAngularMotor.html#setMaxPower">setMaxPower</a></li><li data-type="method" id="TechnicMediumAngularMotor-setSpeed-nav"><a href="TechnicMediumAngularMotor.html#setSpeed">setSpeed</a></li></ul></li><li id="TechnicMediumHub-nav"><a href="TechnicMediumHub.html">TechnicMediumHub</a><ul class='methods'><li data-type="method" id="TechnicMediumHub-createVirtualPort-nav"><a href="TechnicMediumHub.html#createVirtualPort">createVirtualPort</a></li><li data-type="method" id="TechnicMediumHub-setName-nav"><a href="TechnicMediumHub.html#setName">setName</a></li><li data-type="method" id="TechnicMediumHub-shutdown-nav"><a href="TechnicMediumHub.html#shutdown">shutdown</a></li></ul></li><li id="TechnicMediumHubAccelerometerSensor-nav"><a href="TechnicMediumHubAccelerometerSensor.html">TechnicMediumHubAccelerometerSensor</a></li><li id="TechnicMediumHubGyroSensor-nav"><a href="TechnicMediumHubGyroSensor.html">TechnicMediumHubGyroSensor</a></li><li id="TechnicMediumHubTiltSensor-nav"><a href="TechnicMediumHubTiltSensor.html">TechnicMediumHubTiltSensor</a><ul class='methods'><li data-type="method" id="TechnicMediumHubTiltSensor-setImpactCount-nav"><a href="TechnicMediumHubTiltSensor.html#setImpactCount">setImpactCount</a></li><li data-type="method" id="TechnicMediumHubTiltSensor-setImpactHoldoff-nav"><a href="TechnicMediumHubTiltSensor.html#setImpactHoldoff">setImpactHoldoff</a></li><li data-type="method" id="TechnicMediumHubTiltSensor-setImpactThreshold-nav"><a href="TechnicMediumHubTiltSensor.html#setImpactThreshold">setImpactThreshold</a></li></ul></li><li id="TechnicSmallAngularMotor-nav"><a href="TechnicSmallAngularMotor.html">TechnicSmallAngularMotor</a><ul class='methods'><li data-type="method" id="TechnicSmallAngularMotor-gotoAngle-nav"><a href="TechnicSmallAngularMotor.html#gotoAngle">gotoAngle</a></li><li data-type="method" id="TechnicSmallAngularMotor-gotoRealZero-nav"><a href="TechnicSmallAngularMotor.html#gotoRealZero">gotoRealZero</a></li><li data-type="method" id="TechnicSmallAngularMotor-resetZero-nav"><a href="TechnicSmallAngularMotor.html#resetZero">resetZero</a></li><li data-type="method" id="TechnicSmallAngularMotor-rotateByDegrees-nav"><a href="TechnicSmallAngularMotor.html#rotateByDegrees">rotateByDegrees</a></li><li data-type="method" id="TechnicSmallAngularMotor-setAccelerationTime-nav"><a href="TechnicSmallAngularMotor.html#setAccelerationTime">setAccelerationTime</a></li><li data-type="method" id="TechnicSmallAngularMotor-setBrakingStyle-nav"><a href="TechnicSmallAngularMotor.html#setBrakingStyle">setBrakingStyle</a></li><li data-type="method" id="TechnicSmallAngularMotor-setDecelerationTime-nav"><a href="TechnicSmallAngularMotor.html#setDecelerationTime">setDecelerationTime</a></li><li data-type="method" id="TechnicSmallAngularMotor-setMaxPower-nav"><a href="TechnicSmallAngularMotor.html#setMaxPower">setMaxPower</a></li><li data-type="method" id="TechnicSmallAngularMotor-setSpeed-nav"><a href="TechnicSmallAngularMotor.html#setSpeed">setSpeed</a></li></ul></li><li id="TechnicXLargeLinearMotor-nav"><a href="TechnicXLargeLinearMotor.html">TechnicXLargeLinearMotor</a><ul class='methods'><li data-type="method" id="TechnicXLargeLinearMotor-gotoAngle-nav"><a href="TechnicXLargeLinearMotor.html#gotoAngle">gotoAngle</a></li><li data-type="method" id="TechnicXLargeLinearMotor-gotoRealZero-nav"><a href="TechnicXLargeLinearMotor.html#gotoRealZero">gotoRealZero</a></li><li data-type="method" id="TechnicXLargeLinearMotor-resetZero-nav"><a href="TechnicXLargeLinearMotor.html#resetZero">resetZero</a></li><li data-type="method" id="TechnicXLargeLinearMotor-rotateByDegrees-nav"><a href="TechnicXLargeLinearMotor.html#rotateByDegrees">rotateByDegrees</a></li><li data-type="method" id="TechnicXLargeLinearMotor-setAccelerationTime-nav"><a href="TechnicXLargeLinearMotor.html#setAccelerationTime">setAccelerationTime</a></li><li data-type="method" id="TechnicXLargeLinearMotor-setBrakingStyle-nav"><a href="TechnicXLargeLinearMotor.html#setBrakingStyle">setBrakingStyle</a></li><li data-type="method" id="TechnicXLargeLinearMotor-setDecelerationTime-nav"><a href="TechnicXLargeLinearMotor.html#setDecelerationTime">setDecelerationTime</a></li><li data-type="method" id="TechnicXLargeLinearMotor-setMaxPower-nav"><a href="TechnicXLargeLinearMotor.html#setMaxPower">setMaxPower</a></li><li data-type="method" id="TechnicXLargeLinearMotor-setSpeed-nav"><a href="TechnicXLargeLinearMotor.html#setSpeed">setSpeed</a></li></ul></li><li id="TiltSensor-nav"><a href="TiltSensor.html">TiltSensor</a></li><li id="TrainMotor-nav"><a href="TrainMotor.html">TrainMotor</a><ul class='methods'><li data-type="method" id="TrainMotor-brake-nav"><a href="TrainMotor.html#brake">brake</a></li><li data-type="method" id="TrainMotor-rampPower-nav"><a href="TrainMotor.html#rampPower">rampPower</a></li><li data-type="method" id="TrainMotor-setPower-nav"><a href="TrainMotor.html#setPower">setPower</a></li><li data-type="method" id="TrainMotor-stop-nav"><a href="TrainMotor.html#stop">stop</a></li></ul></li><li id="VoltageSensor-nav"><a href="VoltageSensor.html">VoltageSensor</a></li><li id="WeDo2SmartHub-nav"><a href="WeDo2SmartHub.html">WeDo2SmartHub</a><ul class='methods'><li data-type="method" id="WeDo2SmartHub-setName-nav"><a href="WeDo2SmartHub.html#setName">setName</a></li><li data-type="method" id="WeDo2SmartHub-shutdown-nav"><a href="WeDo2SmartHub.html#shutdown">shutdown</a></li></ul></li></ul><h3 id="global-nav"><a href="global.html">Global</a></h3>
|
|
77
|
+
</nav>
|
|
87
78
|
|
|
88
|
-
<
|
|
89
|
-
<div class="container-overview">
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
<hr>
|
|
93
|
-
<dt>
|
|
94
|
-
<h4 class="name" id="TechnicLargeAngularMotor"><span class="type-signature"></span>new TechnicLargeAngularMotor()</h4>
|
|
79
|
+
<div id="main">
|
|
95
80
|
|
|
81
|
+
<h1 class="page-title">
|
|
82
|
+
TechnicLargeAngularMotor
|
|
83
|
+
</h1>
|
|
96
84
|
|
|
97
|
-
</dt>
|
|
98
|
-
<dd>
|
|
99
85
|
|
|
100
86
|
|
|
101
87
|
|
|
88
|
+
<section>
|
|
89
|
+
<header>
|
|
102
90
|
|
|
91
|
+
<h2>
|
|
92
|
+
|
|
93
|
+
TechnicLargeAngularMotor
|
|
94
|
+
|
|
95
|
+
</h2>
|
|
103
96
|
|
|
97
|
+
|
|
104
98
|
|
|
99
|
+
</header>
|
|
105
100
|
|
|
106
|
-
|
|
107
|
-
|
|
101
|
+
<article>
|
|
102
|
+
<div class="container-overview">
|
|
103
|
+
|
|
104
|
+
|
|
108
105
|
|
|
109
|
-
|
|
110
|
-
<dl class="details">
|
|
111
|
-
|
|
112
106
|
|
|
113
|
-
|
|
107
|
+
|
|
114
108
|
|
|
115
|
-
|
|
109
|
+
<span class='name-container'>
|
|
110
|
+
<a class="link-icon" href="#TechnicLargeAngularMotor">
|
|
111
|
+
<svg height="20" width="20" style="fill: black;">
|
|
112
|
+
<use xlink:href="#linkIcon"></use>
|
|
113
|
+
</svg>
|
|
114
|
+
</a>
|
|
115
|
+
<h4 class="name" id="TechnicLargeAngularMotor">
|
|
116
|
+
<span class="type-signature"></span>new TechnicLargeAngularMotor<span class="signature">()</span><span class="type-signature"></span>
|
|
117
|
+
</h4>
|
|
118
|
+
</span>
|
|
116
119
|
|
|
117
|
-
|
|
120
|
+
|
|
118
121
|
|
|
119
|
-
|
|
120
122
|
|
|
121
|
-
|
|
122
123
|
|
|
123
|
-
|
|
124
124
|
|
|
125
|
-
|
|
126
125
|
|
|
127
|
-
|
|
128
126
|
|
|
129
|
-
|
|
130
127
|
|
|
131
|
-
|
|
132
128
|
|
|
133
|
-
|
|
134
129
|
|
|
135
|
-
|
|
136
130
|
|
|
137
131
|
|
|
138
132
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
133
|
+
<dl class="details">
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
150
148
|
|
|
151
|
-
|
|
149
|
+
|
|
152
150
|
|
|
153
|
-
|
|
151
|
+
|
|
154
152
|
|
|
155
|
-
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
<dt class="tag-source">Source:</dt>
|
|
161
|
+
<dd class="tag-source">
|
|
162
|
+
<ul class="dummy">
|
|
163
|
+
<li>
|
|
164
|
+
<a href="devices_techniclargeangularmotor.js.html">devices/techniclargeangularmotor.js</a>, <a href="devices_techniclargeangularmotor.js.html#line25">line 25</a>
|
|
165
|
+
</li>
|
|
166
|
+
</ul>
|
|
167
|
+
</dd>
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
156
175
|
</dl>
|
|
157
176
|
|
|
158
177
|
|
|
159
|
-
|
|
160
178
|
|
|
161
|
-
|
|
162
179
|
|
|
163
|
-
|
|
164
180
|
|
|
165
|
-
|
|
166
181
|
|
|
167
|
-
|
|
168
182
|
|
|
169
|
-
|
|
170
183
|
|
|
171
|
-
|
|
172
|
-
</dd>
|
|
173
184
|
|
|
174
|
-
|
|
175
|
-
</div>
|
|
176
185
|
|
|
177
|
-
|
|
178
|
-
<h3 class="subsection-title">Extends</h3>
|
|
179
186
|
|
|
180
|
-
|
|
181
187
|
|
|
182
188
|
|
|
183
|
-
<ul>
|
|
184
|
-
<li><a href="AbsoluteMotor.html">AbsoluteMotor</a></li>
|
|
185
|
-
</ul>
|
|
186
189
|
|
|
190
|
+
|
|
191
|
+
</div>
|
|
187
192
|
|
|
188
193
|
|
|
194
|
+
<h3 class="subsection-title">Extends</h3>
|
|
189
195
|
|
|
190
|
-
|
|
196
|
+
|
|
191
197
|
|
|
192
|
-
|
|
193
198
|
|
|
194
|
-
|
|
199
|
+
<ul>
|
|
200
|
+
<li><a href="AbsoluteMotor.html">AbsoluteMotor</a></li>
|
|
201
|
+
</ul>
|
|
195
202
|
|
|
196
|
-
|
|
197
203
|
|
|
198
204
|
|
|
199
205
|
|
|
200
206
|
|
|
201
|
-
<h3 class="subsection-title">Methods</h3>
|
|
202
207
|
|
|
203
|
-
<dl>
|
|
204
|
-
|
|
205
|
-
<hr>
|
|
206
|
-
<dt>
|
|
207
|
-
<h4 class="name" id="gotoAngle"><span class="type-signature"></span>gotoAngle(angle [, speed])</h4>
|
|
208
208
|
|
|
209
|
-
|
|
210
|
-
</dt>
|
|
211
|
-
<dd>
|
|
212
209
|
|
|
213
|
-
|
|
214
|
-
<div class="description">
|
|
215
|
-
<p>Rotate a motor by a given angle.</p>
|
|
216
|
-
</div>
|
|
217
|
-
|
|
210
|
+
|
|
218
211
|
|
|
219
212
|
|
|
220
213
|
|
|
221
214
|
|
|
222
215
|
|
|
223
216
|
|
|
224
|
-
|
|
225
|
-
|
|
217
|
+
<h3 class="subsection-title">Methods</h3>
|
|
218
|
+
|
|
219
|
+
|
|
226
220
|
|
|
227
221
|
|
|
228
|
-
|
|
229
|
-
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
<span class='name-container'>
|
|
226
|
+
<a class="link-icon" href="#gotoAngle">
|
|
227
|
+
<svg height="20" width="20" style="fill: black;">
|
|
228
|
+
<use xlink:href="#linkIcon"></use>
|
|
229
|
+
</svg>
|
|
230
|
+
</a>
|
|
231
|
+
<h4 class="name" id="gotoAngle">
|
|
232
|
+
<span class="type-signature"></span>gotoAngle<span class="signature">(angle, speed<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {Promise}</span>
|
|
233
|
+
</h4>
|
|
234
|
+
</span>
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
<div class="description">
|
|
241
|
+
<p>Rotate a motor by a given angle.</p>
|
|
242
|
+
</div>
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
<h5>Parameters:</h5>
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
<table class="params">
|
|
254
|
+
<thead>
|
|
230
255
|
<tr>
|
|
231
|
-
|
|
256
|
+
|
|
232
257
|
<th>Name</th>
|
|
233
|
-
|
|
258
|
+
|
|
234
259
|
|
|
235
|
-
|
|
260
|
+
<th>Type</th>
|
|
236
261
|
|
|
237
|
-
|
|
238
|
-
<th>
|
|
239
|
-
|
|
262
|
+
|
|
263
|
+
<th>Attributes</th>
|
|
264
|
+
|
|
240
265
|
|
|
241
|
-
|
|
266
|
+
|
|
242
267
|
<th>Default</th>
|
|
243
|
-
|
|
268
|
+
|
|
244
269
|
|
|
245
|
-
|
|
270
|
+
<th class="last">Description</th>
|
|
246
271
|
</tr>
|
|
247
|
-
|
|
272
|
+
</thead>
|
|
248
273
|
|
|
249
|
-
|
|
274
|
+
<tbody>
|
|
250
275
|
|
|
276
|
+
<tr>
|
|
277
|
+
|
|
278
|
+
<td class="name"><code>angle</code></td>
|
|
279
|
+
|
|
251
280
|
|
|
252
|
-
<
|
|
253
|
-
|
|
254
|
-
<td class="name"><code>angle</code></td>
|
|
281
|
+
<td class="type">
|
|
282
|
+
|
|
255
283
|
|
|
284
|
+
<span class="param-type">
|
|
285
|
+
number
|
|
286
|
+
</span>
|
|
256
287
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
<span class="param-type">number</span>
|
|
288
|
+
|
|
261
289
|
|
|
262
290
|
|
|
291
|
+
|
|
292
|
+
</td>
|
|
263
293
|
|
|
294
|
+
|
|
295
|
+
<td class="attributes">
|
|
264
296
|
|
|
265
|
-
</td>
|
|
266
297
|
|
|
267
298
|
|
|
268
|
-
<td class="attributes">
|
|
269
|
-
|
|
270
299
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
</td>
|
|
275
300
|
|
|
301
|
+
</td>
|
|
302
|
+
|
|
276
303
|
|
|
304
|
+
|
|
305
|
+
<td class="default">
|
|
277
306
|
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
</td>
|
|
281
|
-
|
|
307
|
+
</td>
|
|
308
|
+
|
|
282
309
|
|
|
283
|
-
|
|
284
|
-
|
|
310
|
+
<td class="description last">
|
|
311
|
+
<p>Absolute position the motor should go to (degrees from 0).</p>
|
|
312
|
+
|
|
313
|
+
</td>
|
|
314
|
+
</tr>
|
|
285
315
|
|
|
286
316
|
|
|
317
|
+
<tr>
|
|
318
|
+
|
|
319
|
+
<td class="name"><code>speed</code></td>
|
|
320
|
+
|
|
287
321
|
|
|
288
|
-
<
|
|
289
|
-
|
|
290
|
-
<td class="name"><code>speed</code></td>
|
|
322
|
+
<td class="type">
|
|
323
|
+
|
|
291
324
|
|
|
325
|
+
<span class="param-type">
|
|
326
|
+
number
|
|
327
|
+
</span>
|
|
292
328
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
<span class="param-type">number</span>
|
|
329
|
+
|
|
297
330
|
|
|
298
331
|
|
|
332
|
+
|
|
333
|
+
</td>
|
|
299
334
|
|
|
335
|
+
|
|
336
|
+
<td class="attributes">
|
|
300
337
|
|
|
301
|
-
|
|
302
|
-
|
|
338
|
+
<optional><br>
|
|
303
339
|
|
|
304
|
-
<td class="attributes">
|
|
305
|
-
|
|
306
|
-
<optional><br>
|
|
307
|
-
|
|
308
340
|
|
|
309
|
-
|
|
341
|
+
|
|
310
342
|
|
|
311
|
-
|
|
312
|
-
</td>
|
|
313
343
|
|
|
344
|
+
</td>
|
|
345
|
+
|
|
314
346
|
|
|
347
|
+
|
|
348
|
+
<td class="default">
|
|
315
349
|
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
100
|
|
319
|
-
|
|
320
|
-
</td>
|
|
350
|
+
100
|
|
321
351
|
|
|
352
|
+
</td>
|
|
353
|
+
|
|
322
354
|
|
|
323
|
-
|
|
324
|
-
|
|
355
|
+
<td class="description last">
|
|
356
|
+
<p>For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.</p>
|
|
357
|
+
|
|
358
|
+
</td>
|
|
359
|
+
</tr>
|
|
325
360
|
|
|
326
361
|
|
|
327
|
-
|
|
362
|
+
</tbody>
|
|
328
363
|
</table>
|
|
329
364
|
|
|
330
|
-
|
|
331
365
|
|
|
332
|
-
|
|
333
|
-
<dl class="details">
|
|
334
|
-
|
|
335
366
|
|
|
336
|
-
|
|
337
367
|
|
|
338
|
-
|
|
339
368
|
|
|
340
|
-
|
|
341
|
-
<dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
|
|
342
|
-
<dd class="inherited-from">
|
|
343
|
-
<ul class="dummy">
|
|
344
|
-
<li>
|
|
345
|
-
<a href="AbsoluteMotor.html#gotoAngle">AbsoluteMotor#gotoAngle</a>
|
|
346
|
-
</li>
|
|
347
|
-
</ul>
|
|
348
|
-
</dd>
|
|
349
|
-
|
|
369
|
+
<dl class="details">
|
|
350
370
|
|
|
351
|
-
|
|
371
|
+
|
|
352
372
|
|
|
353
|
-
|
|
373
|
+
|
|
354
374
|
|
|
355
|
-
|
|
375
|
+
|
|
376
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
377
|
+
<dd class="inherited-from">
|
|
378
|
+
<ul class="dummy">
|
|
379
|
+
<li>
|
|
380
|
+
<a href="AbsoluteMotor.html#gotoAngle">AbsoluteMotor#gotoAngle</a>
|
|
381
|
+
</li>
|
|
382
|
+
</ul>
|
|
383
|
+
</dd>
|
|
384
|
+
|
|
356
385
|
|
|
357
|
-
|
|
386
|
+
|
|
358
387
|
|
|
359
|
-
|
|
388
|
+
|
|
360
389
|
|
|
361
|
-
|
|
390
|
+
|
|
362
391
|
|
|
363
|
-
|
|
392
|
+
|
|
364
393
|
|
|
365
|
-
|
|
394
|
+
|
|
366
395
|
|
|
367
|
-
|
|
396
|
+
|
|
368
397
|
|
|
398
|
+
|
|
369
399
|
|
|
400
|
+
|
|
370
401
|
|
|
371
|
-
|
|
372
|
-
<dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
|
|
373
|
-
<dd class="tag-source">
|
|
374
|
-
<ul class="dummy">
|
|
375
|
-
<li>
|
|
376
|
-
<a href="devices_absolutemotor.js.html">devices/absolutemotor.js</a>,
|
|
377
|
-
<a href="devices_absolutemotor.js.html#sunlight-1-line-52">line 52</a>
|
|
378
|
-
</li>
|
|
379
|
-
</ul>
|
|
380
|
-
</dd>
|
|
381
|
-
|
|
402
|
+
|
|
382
403
|
|
|
383
|
-
|
|
404
|
+
|
|
405
|
+
<dt class="tag-source">Source:</dt>
|
|
406
|
+
<dd class="tag-source">
|
|
407
|
+
<ul class="dummy">
|
|
408
|
+
<li>
|
|
409
|
+
<a href="devices_absolutemotor.js.html">devices/absolutemotor.js</a>, <a href="devices_absolutemotor.js.html#line52">line 52</a>
|
|
410
|
+
</li>
|
|
411
|
+
</ul>
|
|
412
|
+
</dd>
|
|
413
|
+
|
|
384
414
|
|
|
385
|
-
|
|
415
|
+
|
|
386
416
|
|
|
387
|
-
|
|
388
|
-
</dl>
|
|
417
|
+
|
|
389
418
|
|
|
419
|
+
|
|
420
|
+
</dl>
|
|
390
421
|
|
|
391
|
-
|
|
392
422
|
|
|
393
|
-
|
|
394
423
|
|
|
395
|
-
|
|
396
424
|
|
|
397
|
-
|
|
398
425
|
|
|
399
|
-
|
|
400
426
|
|
|
401
|
-
|
|
402
|
-
<h5>Returns:</h5>
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
<div class="param-desc">
|
|
406
|
-
<p>Resolved upon successful completion of command (ie. once the motor is finished).</p>
|
|
407
|
-
</div>
|
|
408
427
|
|
|
409
428
|
|
|
410
429
|
|
|
411
|
-
<dl>
|
|
412
|
-
<dt>
|
|
413
|
-
Type
|
|
414
|
-
</dt>
|
|
415
|
-
<dd>
|
|
416
|
-
|
|
417
|
-
<span class="param-type">Promise</span>
|
|
418
430
|
|
|
419
431
|
|
|
420
432
|
|
|
421
|
-
</dd>
|
|
422
|
-
</dl>
|
|
423
433
|
|
|
424
434
|
|
|
435
|
+
|
|
425
436
|
|
|
426
437
|
|
|
427
|
-
|
|
428
|
-
</dd>
|
|
429
438
|
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
<hr>
|
|
433
|
-
<dt>
|
|
434
|
-
<h4 class="name" id="gotoRealZero"><span class="type-signature"></span>gotoRealZero( [speed])</h4>
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
</dt>
|
|
438
|
-
<dd>
|
|
439
|
+
|
|
439
440
|
|
|
440
|
-
|
|
441
|
-
<
|
|
442
|
-
|
|
441
|
+
<span class='name-container'>
|
|
442
|
+
<a class="link-icon" href="#gotoRealZero">
|
|
443
|
+
<svg height="20" width="20" style="fill: black;">
|
|
444
|
+
<use xlink:href="#linkIcon"></use>
|
|
445
|
+
</svg>
|
|
446
|
+
</a>
|
|
447
|
+
<h4 class="name" id="gotoRealZero">
|
|
448
|
+
<span class="type-signature"></span>gotoRealZero<span class="signature">(speed<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {Promise}</span>
|
|
449
|
+
</h4>
|
|
450
|
+
</span>
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
<div class="description">
|
|
457
|
+
<p>Rotate motor to real zero position.</p>
|
|
443
458
|
<p>Real zero is marked on Technic angular motors (SPIKE Prime). It is also available on Technic linear motors (Control+) but is unmarked.</p>
|
|
444
|
-
|
|
445
|
-
|
|
459
|
+
</div>
|
|
460
|
+
|
|
446
461
|
|
|
447
|
-
|
|
448
462
|
|
|
449
|
-
|
|
450
463
|
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
<h5>Parameters:</h5>
|
|
454
|
-
|
|
455
464
|
|
|
456
|
-
|
|
457
|
-
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
<h5>Parameters:</h5>
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
<table class="params">
|
|
471
|
+
<thead>
|
|
458
472
|
<tr>
|
|
459
|
-
|
|
473
|
+
|
|
460
474
|
<th>Name</th>
|
|
461
|
-
|
|
475
|
+
|
|
462
476
|
|
|
463
|
-
|
|
477
|
+
<th>Type</th>
|
|
464
478
|
|
|
465
|
-
|
|
466
|
-
<th>
|
|
467
|
-
|
|
479
|
+
|
|
480
|
+
<th>Attributes</th>
|
|
481
|
+
|
|
468
482
|
|
|
469
|
-
|
|
483
|
+
|
|
470
484
|
<th>Default</th>
|
|
471
|
-
|
|
485
|
+
|
|
472
486
|
|
|
473
|
-
|
|
487
|
+
<th class="last">Description</th>
|
|
474
488
|
</tr>
|
|
475
|
-
|
|
489
|
+
</thead>
|
|
476
490
|
|
|
477
|
-
|
|
491
|
+
<tbody>
|
|
478
492
|
|
|
493
|
+
<tr>
|
|
494
|
+
|
|
495
|
+
<td class="name"><code>speed</code></td>
|
|
496
|
+
|
|
479
497
|
|
|
480
|
-
<
|
|
481
|
-
|
|
482
|
-
<td class="name"><code>speed</code></td>
|
|
498
|
+
<td class="type">
|
|
499
|
+
|
|
483
500
|
|
|
501
|
+
<span class="param-type">
|
|
502
|
+
number
|
|
503
|
+
</span>
|
|
484
504
|
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
<span class="param-type">number</span>
|
|
505
|
+
|
|
489
506
|
|
|
490
507
|
|
|
508
|
+
|
|
509
|
+
</td>
|
|
491
510
|
|
|
511
|
+
|
|
512
|
+
<td class="attributes">
|
|
492
513
|
|
|
493
|
-
|
|
494
|
-
|
|
514
|
+
<optional><br>
|
|
495
515
|
|
|
496
|
-
<td class="attributes">
|
|
497
|
-
|
|
498
|
-
<optional><br>
|
|
499
|
-
|
|
500
516
|
|
|
501
|
-
|
|
517
|
+
|
|
502
518
|
|
|
503
|
-
|
|
504
|
-
</td>
|
|
505
519
|
|
|
520
|
+
</td>
|
|
521
|
+
|
|
506
522
|
|
|
523
|
+
|
|
524
|
+
<td class="default">
|
|
507
525
|
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
100
|
|
511
|
-
|
|
512
|
-
</td>
|
|
526
|
+
100
|
|
513
527
|
|
|
528
|
+
</td>
|
|
529
|
+
|
|
514
530
|
|
|
515
|
-
|
|
516
|
-
|
|
531
|
+
<td class="description last">
|
|
532
|
+
<p>Speed between 1 - 100. Note that this will always take the shortest path to zero.</p>
|
|
533
|
+
|
|
534
|
+
</td>
|
|
535
|
+
</tr>
|
|
517
536
|
|
|
518
537
|
|
|
519
|
-
|
|
538
|
+
</tbody>
|
|
520
539
|
</table>
|
|
521
540
|
|
|
522
|
-
|
|
523
541
|
|
|
524
|
-
|
|
525
|
-
<dl class="details">
|
|
526
|
-
|
|
527
542
|
|
|
528
|
-
|
|
529
543
|
|
|
530
|
-
|
|
531
544
|
|
|
532
|
-
|
|
533
|
-
<dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
|
|
534
|
-
<dd class="inherited-from">
|
|
535
|
-
<ul class="dummy">
|
|
536
|
-
<li>
|
|
537
|
-
<a href="AbsoluteMotor.html#gotoRealZero">AbsoluteMotor#gotoRealZero</a>
|
|
538
|
-
</li>
|
|
539
|
-
</ul>
|
|
540
|
-
</dd>
|
|
541
|
-
|
|
545
|
+
<dl class="details">
|
|
542
546
|
|
|
543
|
-
|
|
547
|
+
|
|
544
548
|
|
|
545
|
-
|
|
549
|
+
|
|
546
550
|
|
|
547
|
-
|
|
551
|
+
|
|
552
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
553
|
+
<dd class="inherited-from">
|
|
554
|
+
<ul class="dummy">
|
|
555
|
+
<li>
|
|
556
|
+
<a href="AbsoluteMotor.html#gotoRealZero">AbsoluteMotor#gotoRealZero</a>
|
|
557
|
+
</li>
|
|
558
|
+
</ul>
|
|
559
|
+
</dd>
|
|
560
|
+
|
|
548
561
|
|
|
549
|
-
|
|
562
|
+
|
|
550
563
|
|
|
551
|
-
|
|
564
|
+
|
|
552
565
|
|
|
553
|
-
|
|
566
|
+
|
|
554
567
|
|
|
555
|
-
|
|
568
|
+
|
|
556
569
|
|
|
557
|
-
|
|
570
|
+
|
|
558
571
|
|
|
559
|
-
|
|
572
|
+
|
|
560
573
|
|
|
574
|
+
|
|
561
575
|
|
|
576
|
+
|
|
562
577
|
|
|
563
|
-
|
|
564
|
-
<dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
|
|
565
|
-
<dd class="tag-source">
|
|
566
|
-
<ul class="dummy">
|
|
567
|
-
<li>
|
|
568
|
-
<a href="devices_absolutemotor.js.html">devices/absolutemotor.js</a>,
|
|
569
|
-
<a href="devices_absolutemotor.js.html#sunlight-1-line-88">line 88</a>
|
|
570
|
-
</li>
|
|
571
|
-
</ul>
|
|
572
|
-
</dd>
|
|
573
|
-
|
|
578
|
+
|
|
574
579
|
|
|
575
|
-
|
|
580
|
+
|
|
581
|
+
<dt class="tag-source">Source:</dt>
|
|
582
|
+
<dd class="tag-source">
|
|
583
|
+
<ul class="dummy">
|
|
584
|
+
<li>
|
|
585
|
+
<a href="devices_absolutemotor.js.html">devices/absolutemotor.js</a>, <a href="devices_absolutemotor.js.html#line87">line 87</a>
|
|
586
|
+
</li>
|
|
587
|
+
</ul>
|
|
588
|
+
</dd>
|
|
589
|
+
|
|
576
590
|
|
|
577
|
-
|
|
591
|
+
|
|
578
592
|
|
|
579
|
-
|
|
580
|
-
</dl>
|
|
593
|
+
|
|
581
594
|
|
|
595
|
+
|
|
596
|
+
</dl>
|
|
582
597
|
|
|
583
|
-
|
|
584
598
|
|
|
585
|
-
|
|
586
599
|
|
|
587
|
-
|
|
588
600
|
|
|
589
|
-
|
|
590
601
|
|
|
591
|
-
|
|
592
602
|
|
|
593
|
-
|
|
594
|
-
<h5>Returns:</h5>
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
<div class="param-desc">
|
|
598
|
-
<p>Resolved upon successful completion of command (ie. once the motor is finished).</p>
|
|
599
|
-
</div>
|
|
600
603
|
|
|
601
604
|
|
|
602
605
|
|
|
603
|
-
<dl>
|
|
604
|
-
<dt>
|
|
605
|
-
Type
|
|
606
|
-
</dt>
|
|
607
|
-
<dd>
|
|
608
|
-
|
|
609
|
-
<span class="param-type">Promise</span>
|
|
610
606
|
|
|
611
607
|
|
|
612
608
|
|
|
613
|
-
</dd>
|
|
614
|
-
</dl>
|
|
615
609
|
|
|
616
610
|
|
|
611
|
+
|
|
617
612
|
|
|
618
613
|
|
|
619
|
-
|
|
620
|
-
</dd>
|
|
621
614
|
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
<hr>
|
|
625
|
-
<dt>
|
|
626
|
-
<h4 class="name" id="resetZero"><span class="type-signature"></span>resetZero()</h4>
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
</dt>
|
|
630
|
-
<dd>
|
|
615
|
+
|
|
631
616
|
|
|
632
|
-
|
|
633
|
-
<
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
617
|
+
<span class='name-container'>
|
|
618
|
+
<a class="link-icon" href="#resetZero">
|
|
619
|
+
<svg height="20" width="20" style="fill: black;">
|
|
620
|
+
<use xlink:href="#linkIcon"></use>
|
|
621
|
+
</svg>
|
|
622
|
+
</a>
|
|
623
|
+
<h4 class="name" id="resetZero">
|
|
624
|
+
<span class="type-signature"></span>resetZero<span class="signature">()</span><span class="type-signature"> → {Promise}</span>
|
|
625
|
+
</h4>
|
|
626
|
+
</span>
|
|
637
627
|
|
|
638
|
-
|
|
628
|
+
|
|
639
629
|
|
|
640
|
-
|
|
641
630
|
|
|
642
|
-
|
|
643
|
-
|
|
644
631
|
|
|
645
|
-
|
|
646
|
-
<
|
|
647
|
-
|
|
632
|
+
<div class="description">
|
|
633
|
+
<p>Reset zero to current position</p>
|
|
634
|
+
</div>
|
|
648
635
|
|
|
649
|
-
|
|
650
636
|
|
|
651
|
-
|
|
652
637
|
|
|
653
|
-
|
|
654
|
-
<dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
|
|
655
|
-
<dd class="inherited-from">
|
|
656
|
-
<ul class="dummy">
|
|
657
|
-
<li>
|
|
658
|
-
<a href="AbsoluteMotor.html#resetZero">AbsoluteMotor#resetZero</a>
|
|
659
|
-
</li>
|
|
660
|
-
</ul>
|
|
661
|
-
</dd>
|
|
662
|
-
|
|
663
638
|
|
|
664
|
-
|
|
665
639
|
|
|
666
|
-
|
|
667
640
|
|
|
668
|
-
|
|
669
641
|
|
|
670
|
-
|
|
671
642
|
|
|
672
|
-
|
|
673
643
|
|
|
674
|
-
|
|
675
644
|
|
|
676
|
-
|
|
645
|
+
<dl class="details">
|
|
677
646
|
|
|
678
|
-
|
|
647
|
+
|
|
679
648
|
|
|
680
|
-
|
|
649
|
+
|
|
681
650
|
|
|
651
|
+
|
|
652
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
653
|
+
<dd class="inherited-from">
|
|
654
|
+
<ul class="dummy">
|
|
655
|
+
<li>
|
|
656
|
+
<a href="AbsoluteMotor.html#resetZero">AbsoluteMotor#resetZero</a>
|
|
657
|
+
</li>
|
|
658
|
+
</ul>
|
|
659
|
+
</dd>
|
|
660
|
+
|
|
682
661
|
|
|
662
|
+
|
|
683
663
|
|
|
684
|
-
|
|
685
|
-
<dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
|
|
686
|
-
<dd class="tag-source">
|
|
687
|
-
<ul class="dummy">
|
|
688
|
-
<li>
|
|
689
|
-
<a href="devices_absolutemotor.js.html">devices/absolutemotor.js</a>,
|
|
690
|
-
<a href="devices_absolutemotor.js.html#sunlight-1-line-119">line 119</a>
|
|
691
|
-
</li>
|
|
692
|
-
</ul>
|
|
693
|
-
</dd>
|
|
694
|
-
|
|
664
|
+
|
|
695
665
|
|
|
696
|
-
|
|
666
|
+
|
|
697
667
|
|
|
698
|
-
|
|
668
|
+
|
|
699
669
|
|
|
700
|
-
|
|
701
|
-
</dl>
|
|
670
|
+
|
|
702
671
|
|
|
672
|
+
|
|
703
673
|
|
|
704
|
-
|
|
674
|
+
|
|
705
675
|
|
|
706
|
-
|
|
676
|
+
|
|
707
677
|
|
|
708
|
-
|
|
678
|
+
|
|
709
679
|
|
|
710
|
-
|
|
680
|
+
|
|
681
|
+
<dt class="tag-source">Source:</dt>
|
|
682
|
+
<dd class="tag-source">
|
|
683
|
+
<ul class="dummy">
|
|
684
|
+
<li>
|
|
685
|
+
<a href="devices_absolutemotor.js.html">devices/absolutemotor.js</a>, <a href="devices_absolutemotor.js.html#line118">line 118</a>
|
|
686
|
+
</li>
|
|
687
|
+
</ul>
|
|
688
|
+
</dd>
|
|
689
|
+
|
|
711
690
|
|
|
712
|
-
|
|
691
|
+
|
|
713
692
|
|
|
714
|
-
|
|
715
|
-
<h5>Returns:</h5>
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
<div class="param-desc">
|
|
719
|
-
<p>Resolved upon successful completion of command (ie. once the motor is finished).</p>
|
|
720
|
-
</div>
|
|
693
|
+
|
|
721
694
|
|
|
695
|
+
|
|
696
|
+
</dl>
|
|
722
697
|
|
|
723
698
|
|
|
724
|
-
<dl>
|
|
725
|
-
<dt>
|
|
726
|
-
Type
|
|
727
|
-
</dt>
|
|
728
|
-
<dd>
|
|
729
|
-
|
|
730
|
-
<span class="param-type">Promise</span>
|
|
731
699
|
|
|
732
700
|
|
|
733
701
|
|
|
734
|
-
</dd>
|
|
735
|
-
</dl>
|
|
736
702
|
|
|
737
703
|
|
|
738
|
-
|
|
739
704
|
|
|
740
|
-
|
|
741
|
-
</dd>
|
|
742
705
|
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
<hr>
|
|
746
|
-
<dt>
|
|
747
|
-
<h4 class="name" id="rotateByDegrees"><span class="type-signature"></span>rotateByDegrees(degrees [, speed])</h4>
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
</dt>
|
|
751
|
-
<dd>
|
|
752
706
|
|
|
753
|
-
|
|
754
|
-
<div class="description">
|
|
755
|
-
<p>Rotate a motor by a given amount of degrees.</p>
|
|
756
|
-
</div>
|
|
757
|
-
|
|
758
707
|
|
|
759
|
-
|
|
760
708
|
|
|
761
|
-
|
|
762
709
|
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
<h5>Parameters:</h5>
|
|
766
|
-
|
|
767
710
|
|
|
768
|
-
|
|
769
|
-
<thead>
|
|
770
|
-
<tr>
|
|
771
|
-
|
|
772
|
-
<th>Name</th>
|
|
711
|
+
|
|
773
712
|
|
|
774
713
|
|
|
775
|
-
<th>Type</th>
|
|
776
714
|
|
|
777
|
-
|
|
778
|
-
<th>Argument</th>
|
|
779
|
-
|
|
715
|
+
|
|
780
716
|
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
717
|
+
<span class='name-container'>
|
|
718
|
+
<a class="link-icon" href="#rotateByDegrees">
|
|
719
|
+
<svg height="20" width="20" style="fill: black;">
|
|
720
|
+
<use xlink:href="#linkIcon"></use>
|
|
721
|
+
</svg>
|
|
722
|
+
</a>
|
|
723
|
+
<h4 class="name" id="rotateByDegrees">
|
|
724
|
+
<span class="type-signature"></span>rotateByDegrees<span class="signature">(degrees, speed<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {Promise}</span>
|
|
725
|
+
</h4>
|
|
726
|
+
</span>
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
|
|
732
|
+
<div class="description">
|
|
733
|
+
<p>Rotate a motor by a given amount of degrees.</p>
|
|
734
|
+
</div>
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
<h5>Parameters:</h5>
|
|
743
|
+
|
|
744
|
+
|
|
745
|
+
<table class="params">
|
|
746
|
+
<thead>
|
|
747
|
+
<tr>
|
|
748
|
+
|
|
749
|
+
<th>Name</th>
|
|
750
|
+
|
|
751
|
+
|
|
752
|
+
<th>Type</th>
|
|
784
753
|
|
|
785
|
-
|
|
754
|
+
|
|
755
|
+
<th>Attributes</th>
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
|
|
759
|
+
<th>Default</th>
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
<th class="last">Description</th>
|
|
786
763
|
</tr>
|
|
787
|
-
|
|
764
|
+
</thead>
|
|
788
765
|
|
|
789
|
-
|
|
766
|
+
<tbody>
|
|
790
767
|
|
|
768
|
+
<tr>
|
|
769
|
+
|
|
770
|
+
<td class="name"><code>degrees</code></td>
|
|
771
|
+
|
|
791
772
|
|
|
792
|
-
<
|
|
793
|
-
|
|
794
|
-
<td class="name"><code>degrees</code></td>
|
|
773
|
+
<td class="type">
|
|
774
|
+
|
|
795
775
|
|
|
776
|
+
<span class="param-type">
|
|
777
|
+
number
|
|
778
|
+
</span>
|
|
796
779
|
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
<span class="param-type">number</span>
|
|
780
|
+
|
|
801
781
|
|
|
802
782
|
|
|
783
|
+
|
|
784
|
+
</td>
|
|
803
785
|
|
|
786
|
+
|
|
787
|
+
<td class="attributes">
|
|
804
788
|
|
|
805
|
-
</td>
|
|
806
789
|
|
|
807
790
|
|
|
808
|
-
<td class="attributes">
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
791
|
|
|
813
|
-
|
|
814
|
-
</td>
|
|
815
792
|
|
|
793
|
+
</td>
|
|
794
|
+
|
|
816
795
|
|
|
796
|
+
|
|
797
|
+
<td class="default">
|
|
817
798
|
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
</td>
|
|
821
|
-
|
|
799
|
+
</td>
|
|
800
|
+
|
|
822
801
|
|
|
823
|
-
|
|
824
|
-
|
|
802
|
+
<td class="description last">
|
|
803
|
+
<p>How much the motor should be rotated (in degrees).</p>
|
|
804
|
+
|
|
805
|
+
</td>
|
|
806
|
+
</tr>
|
|
825
807
|
|
|
826
808
|
|
|
809
|
+
<tr>
|
|
810
|
+
|
|
811
|
+
<td class="name"><code>speed</code></td>
|
|
812
|
+
|
|
827
813
|
|
|
828
|
-
<
|
|
829
|
-
|
|
830
|
-
<td class="name"><code>speed</code></td>
|
|
814
|
+
<td class="type">
|
|
815
|
+
|
|
831
816
|
|
|
817
|
+
<span class="param-type">
|
|
818
|
+
number
|
|
819
|
+
</span>
|
|
832
820
|
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
<span class="param-type">number</span>
|
|
821
|
+
|
|
837
822
|
|
|
838
823
|
|
|
824
|
+
|
|
825
|
+
</td>
|
|
839
826
|
|
|
827
|
+
|
|
828
|
+
<td class="attributes">
|
|
840
829
|
|
|
841
|
-
|
|
842
|
-
|
|
830
|
+
<optional><br>
|
|
843
831
|
|
|
844
|
-
<td class="attributes">
|
|
845
|
-
|
|
846
|
-
<optional><br>
|
|
847
|
-
|
|
848
832
|
|
|
849
|
-
|
|
833
|
+
|
|
850
834
|
|
|
851
|
-
|
|
852
|
-
</td>
|
|
853
835
|
|
|
836
|
+
</td>
|
|
837
|
+
|
|
854
838
|
|
|
839
|
+
|
|
840
|
+
<td class="default">
|
|
855
841
|
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
100
|
|
859
|
-
|
|
860
|
-
</td>
|
|
842
|
+
100
|
|
861
843
|
|
|
844
|
+
</td>
|
|
845
|
+
|
|
862
846
|
|
|
863
|
-
|
|
864
|
-
|
|
847
|
+
<td class="description last">
|
|
848
|
+
<p>For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.</p>
|
|
849
|
+
|
|
850
|
+
</td>
|
|
851
|
+
</tr>
|
|
865
852
|
|
|
866
853
|
|
|
867
|
-
|
|
854
|
+
</tbody>
|
|
868
855
|
</table>
|
|
869
856
|
|
|
870
|
-
|
|
871
857
|
|
|
872
|
-
|
|
873
|
-
<dl class="details">
|
|
874
|
-
|
|
875
858
|
|
|
876
|
-
|
|
877
859
|
|
|
878
|
-
|
|
879
860
|
|
|
880
|
-
|
|
881
|
-
<dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
|
|
882
|
-
<dd class="inherited-from">
|
|
883
|
-
<ul class="dummy">
|
|
884
|
-
<li>
|
|
885
|
-
<a href="TachoMotor.html#rotateByDegrees">TachoMotor#rotateByDegrees</a>
|
|
886
|
-
</li>
|
|
887
|
-
</ul>
|
|
888
|
-
</dd>
|
|
889
|
-
|
|
861
|
+
<dl class="details">
|
|
890
862
|
|
|
891
|
-
|
|
863
|
+
|
|
892
864
|
|
|
893
|
-
|
|
865
|
+
|
|
894
866
|
|
|
895
|
-
|
|
867
|
+
|
|
868
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
869
|
+
<dd class="inherited-from">
|
|
870
|
+
<ul class="dummy">
|
|
871
|
+
<li>
|
|
872
|
+
<a href="TachoMotor.html#rotateByDegrees">TachoMotor#rotateByDegrees</a>
|
|
873
|
+
</li>
|
|
874
|
+
</ul>
|
|
875
|
+
</dd>
|
|
876
|
+
|
|
896
877
|
|
|
897
|
-
|
|
878
|
+
|
|
898
879
|
|
|
899
|
-
|
|
880
|
+
|
|
900
881
|
|
|
901
|
-
|
|
882
|
+
|
|
902
883
|
|
|
903
|
-
|
|
884
|
+
|
|
904
885
|
|
|
905
|
-
|
|
886
|
+
|
|
906
887
|
|
|
907
|
-
|
|
888
|
+
|
|
908
889
|
|
|
890
|
+
|
|
909
891
|
|
|
892
|
+
|
|
910
893
|
|
|
911
|
-
|
|
912
|
-
<dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
|
|
913
|
-
<dd class="tag-source">
|
|
914
|
-
<ul class="dummy">
|
|
915
|
-
<li>
|
|
916
|
-
<a href="devices_tachomotor.js.html">devices/tachomotor.js</a>,
|
|
917
|
-
<a href="devices_tachomotor.js.html#sunlight-1-line-139">line 139</a>
|
|
918
|
-
</li>
|
|
919
|
-
</ul>
|
|
920
|
-
</dd>
|
|
921
|
-
|
|
894
|
+
|
|
922
895
|
|
|
923
|
-
|
|
896
|
+
|
|
897
|
+
<dt class="tag-source">Source:</dt>
|
|
898
|
+
<dd class="tag-source">
|
|
899
|
+
<ul class="dummy">
|
|
900
|
+
<li>
|
|
901
|
+
<a href="devices_tachomotor.js.html">devices/tachomotor.js</a>, <a href="devices_tachomotor.js.html#line138">line 138</a>
|
|
902
|
+
</li>
|
|
903
|
+
</ul>
|
|
904
|
+
</dd>
|
|
905
|
+
|
|
906
|
+
|
|
907
|
+
|
|
924
908
|
|
|
925
|
-
|
|
909
|
+
|
|
926
910
|
|
|
927
|
-
|
|
911
|
+
|
|
928
912
|
</dl>
|
|
929
913
|
|
|
930
914
|
|
|
931
|
-
|
|
932
915
|
|
|
933
|
-
|
|
934
916
|
|
|
935
|
-
|
|
936
917
|
|
|
937
|
-
|
|
938
918
|
|
|
939
|
-
|
|
940
919
|
|
|
941
|
-
|
|
942
|
-
<h5>Returns:</h5>
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
<div class="param-desc">
|
|
946
|
-
<p>Resolved upon successful completion of command (ie. once the motor is finished).</p>
|
|
947
|
-
</div>
|
|
948
920
|
|
|
949
921
|
|
|
950
922
|
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
923
|
+
|
|
924
|
+
|
|
925
|
+
|
|
926
|
+
|
|
927
|
+
|
|
956
928
|
|
|
957
|
-
<span class="param-type">Promise</span>
|
|
958
929
|
|
|
959
930
|
|
|
931
|
+
|
|
960
932
|
|
|
961
|
-
|
|
962
|
-
|
|
933
|
+
<span class='name-container'>
|
|
934
|
+
<a class="link-icon" href="#setAccelerationTime">
|
|
935
|
+
<svg height="20" width="20" style="fill: black;">
|
|
936
|
+
<use xlink:href="#linkIcon"></use>
|
|
937
|
+
</svg>
|
|
938
|
+
</a>
|
|
939
|
+
<h4 class="name" id="setAccelerationTime">
|
|
940
|
+
<span class="type-signature"></span>setAccelerationTime<span class="signature">(time)</span><span class="type-signature"> → {Promise}</span>
|
|
941
|
+
</h4>
|
|
942
|
+
</span>
|
|
963
943
|
|
|
944
|
+
|
|
964
945
|
|
|
965
|
-
|
|
966
946
|
|
|
967
|
-
|
|
968
|
-
</dd>
|
|
969
947
|
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
<h4 class="name" id="setAccelerationTime"><span class="type-signature"></span>setAccelerationTime(time)</h4>
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
</dt>
|
|
978
|
-
<dd>
|
|
948
|
+
<div class="description">
|
|
949
|
+
<p>Set the global acceleration time</p>
|
|
950
|
+
</div>
|
|
951
|
+
|
|
979
952
|
|
|
980
|
-
|
|
981
|
-
<div class="description">
|
|
982
|
-
<p>Set the global acceleration time</p>
|
|
983
|
-
</div>
|
|
984
|
-
|
|
985
953
|
|
|
986
|
-
|
|
987
954
|
|
|
988
|
-
|
|
989
955
|
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
<h5>Parameters:</h5>
|
|
993
|
-
|
|
994
956
|
|
|
995
|
-
|
|
996
|
-
|
|
957
|
+
|
|
958
|
+
<h5>Parameters:</h5>
|
|
959
|
+
|
|
960
|
+
|
|
961
|
+
<table class="params">
|
|
962
|
+
<thead>
|
|
997
963
|
<tr>
|
|
998
|
-
|
|
964
|
+
|
|
999
965
|
<th>Name</th>
|
|
1000
|
-
|
|
966
|
+
|
|
1001
967
|
|
|
1002
|
-
|
|
968
|
+
<th>Type</th>
|
|
1003
969
|
|
|
1004
|
-
|
|
970
|
+
|
|
1005
971
|
|
|
1006
|
-
|
|
972
|
+
|
|
1007
973
|
|
|
1008
|
-
|
|
974
|
+
<th class="last">Description</th>
|
|
1009
975
|
</tr>
|
|
1010
|
-
|
|
976
|
+
</thead>
|
|
1011
977
|
|
|
1012
|
-
|
|
978
|
+
<tbody>
|
|
1013
979
|
|
|
980
|
+
<tr>
|
|
981
|
+
|
|
982
|
+
<td class="name"><code>time</code></td>
|
|
983
|
+
|
|
1014
984
|
|
|
1015
|
-
<
|
|
1016
|
-
|
|
1017
|
-
<td class="name"><code>time</code></td>
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
<td class="type">
|
|
985
|
+
<td class="type">
|
|
986
|
+
|
|
1021
987
|
|
|
1022
|
-
|
|
1023
|
-
|
|
988
|
+
<span class="param-type">
|
|
989
|
+
number
|
|
990
|
+
</span>
|
|
1024
991
|
|
|
992
|
+
|
|
1025
993
|
|
|
1026
994
|
|
|
1027
|
-
|
|
1028
|
-
|
|
995
|
+
|
|
996
|
+
</td>
|
|
1029
997
|
|
|
1030
|
-
|
|
998
|
+
|
|
1031
999
|
|
|
1032
|
-
|
|
1000
|
+
|
|
1033
1001
|
|
|
1034
|
-
|
|
1035
|
-
|
|
1002
|
+
<td class="description last">
|
|
1003
|
+
<p>How long acceleration should last (in milliseconds).</p>
|
|
1004
|
+
|
|
1005
|
+
</td>
|
|
1006
|
+
</tr>
|
|
1036
1007
|
|
|
1037
1008
|
|
|
1038
|
-
|
|
1009
|
+
</tbody>
|
|
1039
1010
|
</table>
|
|
1040
1011
|
|
|
1041
|
-
|
|
1042
1012
|
|
|
1043
|
-
|
|
1044
|
-
<dl class="details">
|
|
1045
|
-
|
|
1046
1013
|
|
|
1047
|
-
|
|
1048
1014
|
|
|
1049
|
-
|
|
1050
1015
|
|
|
1051
|
-
|
|
1052
|
-
<dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
|
|
1053
|
-
<dd class="inherited-from">
|
|
1054
|
-
<ul class="dummy">
|
|
1055
|
-
<li>
|
|
1056
|
-
<a href="TachoMotor.html#setAccelerationTime">TachoMotor#setAccelerationTime</a>
|
|
1057
|
-
</li>
|
|
1058
|
-
</ul>
|
|
1059
|
-
</dd>
|
|
1060
|
-
|
|
1016
|
+
<dl class="details">
|
|
1061
1017
|
|
|
1062
|
-
|
|
1018
|
+
|
|
1063
1019
|
|
|
1064
|
-
|
|
1020
|
+
|
|
1065
1021
|
|
|
1066
|
-
|
|
1022
|
+
|
|
1023
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
1024
|
+
<dd class="inherited-from">
|
|
1025
|
+
<ul class="dummy">
|
|
1026
|
+
<li>
|
|
1027
|
+
<a href="TachoMotor.html#setAccelerationTime">TachoMotor#setAccelerationTime</a>
|
|
1028
|
+
</li>
|
|
1029
|
+
</ul>
|
|
1030
|
+
</dd>
|
|
1031
|
+
|
|
1067
1032
|
|
|
1068
|
-
|
|
1033
|
+
|
|
1069
1034
|
|
|
1070
|
-
|
|
1035
|
+
|
|
1071
1036
|
|
|
1072
|
-
|
|
1037
|
+
|
|
1073
1038
|
|
|
1074
|
-
|
|
1039
|
+
|
|
1075
1040
|
|
|
1076
|
-
|
|
1041
|
+
|
|
1077
1042
|
|
|
1078
|
-
|
|
1043
|
+
|
|
1079
1044
|
|
|
1045
|
+
|
|
1080
1046
|
|
|
1047
|
+
|
|
1081
1048
|
|
|
1082
|
-
|
|
1083
|
-
<dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
|
|
1084
|
-
<dd class="tag-source">
|
|
1085
|
-
<ul class="dummy">
|
|
1086
|
-
<li>
|
|
1087
|
-
<a href="devices_tachomotor.js.html">devices/tachomotor.js</a>,
|
|
1088
|
-
<a href="devices_tachomotor.js.html#sunlight-1-line-73">line 73</a>
|
|
1089
|
-
</li>
|
|
1090
|
-
</ul>
|
|
1091
|
-
</dd>
|
|
1092
|
-
|
|
1049
|
+
|
|
1093
1050
|
|
|
1094
|
-
|
|
1051
|
+
|
|
1052
|
+
<dt class="tag-source">Source:</dt>
|
|
1053
|
+
<dd class="tag-source">
|
|
1054
|
+
<ul class="dummy">
|
|
1055
|
+
<li>
|
|
1056
|
+
<a href="devices_tachomotor.js.html">devices/tachomotor.js</a>, <a href="devices_tachomotor.js.html#line73">line 73</a>
|
|
1057
|
+
</li>
|
|
1058
|
+
</ul>
|
|
1059
|
+
</dd>
|
|
1060
|
+
|
|
1061
|
+
|
|
1062
|
+
|
|
1095
1063
|
|
|
1096
|
-
|
|
1064
|
+
|
|
1097
1065
|
|
|
1098
|
-
|
|
1066
|
+
|
|
1099
1067
|
</dl>
|
|
1100
1068
|
|
|
1101
1069
|
|
|
1102
|
-
|
|
1103
1070
|
|
|
1104
|
-
|
|
1105
1071
|
|
|
1106
|
-
|
|
1107
1072
|
|
|
1108
|
-
|
|
1109
1073
|
|
|
1110
|
-
|
|
1111
1074
|
|
|
1112
|
-
|
|
1113
|
-
<h5>Returns:</h5>
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
<div class="param-desc">
|
|
1117
|
-
<p>Resolved upon successful completion of command (ie. once the motor is finished).</p>
|
|
1118
|
-
</div>
|
|
1119
1075
|
|
|
1120
1076
|
|
|
1121
1077
|
|
|
1122
|
-
<dl>
|
|
1123
|
-
<dt>
|
|
1124
|
-
Type
|
|
1125
|
-
</dt>
|
|
1126
|
-
<dd>
|
|
1127
|
-
|
|
1128
|
-
<span class="param-type">Promise</span>
|
|
1129
1078
|
|
|
1130
1079
|
|
|
1131
1080
|
|
|
1132
|
-
</dd>
|
|
1133
|
-
</dl>
|
|
1134
|
-
|
|
1135
1081
|
|
|
1082
|
+
|
|
1136
1083
|
|
|
1137
1084
|
|
|
1138
|
-
|
|
1139
|
-
</dd>
|
|
1140
1085
|
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
<hr>
|
|
1144
|
-
<dt>
|
|
1145
|
-
<h4 class="name" id="setBrakingStyle"><span class="type-signature"></span>setBrakingStyle(style)</h4>
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
</dt>
|
|
1149
|
-
<dd>
|
|
1086
|
+
|
|
1150
1087
|
|
|
1151
|
-
|
|
1152
|
-
<
|
|
1153
|
-
|
|
1088
|
+
<span class='name-container'>
|
|
1089
|
+
<a class="link-icon" href="#setBrakingStyle">
|
|
1090
|
+
<svg height="20" width="20" style="fill: black;">
|
|
1091
|
+
<use xlink:href="#linkIcon"></use>
|
|
1092
|
+
</svg>
|
|
1093
|
+
</a>
|
|
1094
|
+
<h4 class="name" id="setBrakingStyle">
|
|
1095
|
+
<span class="type-signature"></span>setBrakingStyle<span class="signature">(style)</span><span class="type-signature"></span>
|
|
1096
|
+
</h4>
|
|
1097
|
+
</span>
|
|
1098
|
+
|
|
1099
|
+
|
|
1100
|
+
|
|
1101
|
+
|
|
1102
|
+
|
|
1103
|
+
<div class="description">
|
|
1104
|
+
<p>Set the braking style of the motor.</p>
|
|
1154
1105
|
<p>Note: This applies to setSpeed, rotateByDegrees, and gotoAngle.</p>
|
|
1155
|
-
|
|
1156
|
-
|
|
1106
|
+
</div>
|
|
1157
1107
|
|
|
1158
|
-
|
|
1159
1108
|
|
|
1160
|
-
|
|
1161
1109
|
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
<h5>Parameters:</h5>
|
|
1165
|
-
|
|
1166
1110
|
|
|
1167
|
-
|
|
1168
|
-
|
|
1111
|
+
|
|
1112
|
+
|
|
1113
|
+
|
|
1114
|
+
<h5>Parameters:</h5>
|
|
1115
|
+
|
|
1116
|
+
|
|
1117
|
+
<table class="params">
|
|
1118
|
+
<thead>
|
|
1169
1119
|
<tr>
|
|
1170
|
-
|
|
1120
|
+
|
|
1171
1121
|
<th>Name</th>
|
|
1172
|
-
|
|
1122
|
+
|
|
1173
1123
|
|
|
1174
|
-
|
|
1124
|
+
<th>Type</th>
|
|
1175
1125
|
|
|
1176
|
-
|
|
1126
|
+
|
|
1177
1127
|
|
|
1178
|
-
|
|
1128
|
+
|
|
1179
1129
|
|
|
1180
|
-
|
|
1130
|
+
<th class="last">Description</th>
|
|
1181
1131
|
</tr>
|
|
1182
|
-
|
|
1132
|
+
</thead>
|
|
1183
1133
|
|
|
1184
|
-
|
|
1134
|
+
<tbody>
|
|
1185
1135
|
|
|
1136
|
+
<tr>
|
|
1137
|
+
|
|
1138
|
+
<td class="name"><code>style</code></td>
|
|
1139
|
+
|
|
1186
1140
|
|
|
1187
|
-
<
|
|
1188
|
-
|
|
1189
|
-
<td class="name"><code>style</code></td>
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
<td class="type">
|
|
1141
|
+
<td class="type">
|
|
1142
|
+
|
|
1193
1143
|
|
|
1194
|
-
|
|
1195
|
-
|
|
1144
|
+
<span class="param-type">
|
|
1145
|
+
number
|
|
1146
|
+
</span>
|
|
1196
1147
|
|
|
1148
|
+
|
|
1197
1149
|
|
|
1198
1150
|
|
|
1199
|
-
|
|
1200
|
-
|
|
1151
|
+
|
|
1152
|
+
</td>
|
|
1201
1153
|
|
|
1202
|
-
|
|
1154
|
+
|
|
1203
1155
|
|
|
1204
|
-
|
|
1156
|
+
|
|
1205
1157
|
|
|
1206
|
-
|
|
1207
|
-
|
|
1158
|
+
<td class="description last">
|
|
1159
|
+
<p>Either BRAKE or HOLD</p>
|
|
1160
|
+
|
|
1161
|
+
</td>
|
|
1162
|
+
</tr>
|
|
1208
1163
|
|
|
1209
1164
|
|
|
1210
|
-
|
|
1165
|
+
</tbody>
|
|
1211
1166
|
</table>
|
|
1212
1167
|
|
|
1213
|
-
|
|
1214
1168
|
|
|
1215
|
-
|
|
1216
|
-
<dl class="details">
|
|
1217
|
-
|
|
1218
1169
|
|
|
1219
|
-
|
|
1220
1170
|
|
|
1221
|
-
|
|
1222
1171
|
|
|
1223
|
-
|
|
1224
|
-
<dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
|
|
1225
|
-
<dd class="inherited-from">
|
|
1226
|
-
<ul class="dummy">
|
|
1227
|
-
<li>
|
|
1228
|
-
<a href="TachoMotor.html#setBrakingStyle">TachoMotor#setBrakingStyle</a>
|
|
1229
|
-
</li>
|
|
1230
|
-
</ul>
|
|
1231
|
-
</dd>
|
|
1232
|
-
|
|
1172
|
+
<dl class="details">
|
|
1233
1173
|
|
|
1234
|
-
|
|
1174
|
+
|
|
1235
1175
|
|
|
1236
|
-
|
|
1176
|
+
|
|
1237
1177
|
|
|
1238
|
-
|
|
1178
|
+
|
|
1179
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
1180
|
+
<dd class="inherited-from">
|
|
1181
|
+
<ul class="dummy">
|
|
1182
|
+
<li>
|
|
1183
|
+
<a href="TachoMotor.html#setBrakingStyle">TachoMotor#setBrakingStyle</a>
|
|
1184
|
+
</li>
|
|
1185
|
+
</ul>
|
|
1186
|
+
</dd>
|
|
1187
|
+
|
|
1239
1188
|
|
|
1240
|
-
|
|
1189
|
+
|
|
1241
1190
|
|
|
1242
|
-
|
|
1191
|
+
|
|
1243
1192
|
|
|
1244
|
-
|
|
1193
|
+
|
|
1245
1194
|
|
|
1246
|
-
|
|
1195
|
+
|
|
1247
1196
|
|
|
1248
|
-
|
|
1197
|
+
|
|
1249
1198
|
|
|
1250
|
-
|
|
1199
|
+
|
|
1251
1200
|
|
|
1201
|
+
|
|
1252
1202
|
|
|
1203
|
+
|
|
1253
1204
|
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1205
|
+
|
|
1206
|
+
|
|
1207
|
+
|
|
1208
|
+
<dt class="tag-source">Source:</dt>
|
|
1209
|
+
<dd class="tag-source">
|
|
1210
|
+
<ul class="dummy">
|
|
1211
|
+
<li>
|
|
1212
|
+
<a href="devices_tachomotor.js.html">devices/tachomotor.js</a>, <a href="devices_tachomotor.js.html#line53">line 53</a>
|
|
1213
|
+
</li>
|
|
1214
|
+
</ul>
|
|
1215
|
+
</dd>
|
|
1216
|
+
|
|
1265
1217
|
|
|
1266
|
-
|
|
1218
|
+
|
|
1267
1219
|
|
|
1268
|
-
|
|
1220
|
+
|
|
1269
1221
|
|
|
1270
|
-
|
|
1222
|
+
|
|
1271
1223
|
</dl>
|
|
1272
1224
|
|
|
1273
1225
|
|
|
1274
|
-
|
|
1275
1226
|
|
|
1276
|
-
|
|
1277
1227
|
|
|
1278
|
-
|
|
1279
1228
|
|
|
1280
|
-
|
|
1281
1229
|
|
|
1282
|
-
|
|
1283
1230
|
|
|
1284
|
-
|
|
1285
1231
|
|
|
1286
|
-
|
|
1287
|
-
</dd>
|
|
1288
1232
|
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
<hr>
|
|
1292
|
-
<dt>
|
|
1293
|
-
<h4 class="name" id="setDecelerationTime"><span class="type-signature"></span>setDecelerationTime(time)</h4>
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
</dt>
|
|
1297
|
-
<dd>
|
|
1298
1233
|
|
|
1299
|
-
|
|
1300
|
-
<div class="description">
|
|
1301
|
-
<p>Set the global deceleration time</p>
|
|
1302
|
-
</div>
|
|
1303
|
-
|
|
1304
1234
|
|
|
1305
|
-
|
|
1306
1235
|
|
|
1307
|
-
|
|
1308
1236
|
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
<h5>Parameters:</h5>
|
|
1237
|
+
|
|
1238
|
+
|
|
1312
1239
|
|
|
1313
1240
|
|
|
1314
|
-
|
|
1315
|
-
|
|
1241
|
+
|
|
1242
|
+
|
|
1243
|
+
|
|
1244
|
+
<span class='name-container'>
|
|
1245
|
+
<a class="link-icon" href="#setDecelerationTime">
|
|
1246
|
+
<svg height="20" width="20" style="fill: black;">
|
|
1247
|
+
<use xlink:href="#linkIcon"></use>
|
|
1248
|
+
</svg>
|
|
1249
|
+
</a>
|
|
1250
|
+
<h4 class="name" id="setDecelerationTime">
|
|
1251
|
+
<span class="type-signature"></span>setDecelerationTime<span class="signature">(time)</span><span class="type-signature"> → {Promise}</span>
|
|
1252
|
+
</h4>
|
|
1253
|
+
</span>
|
|
1254
|
+
|
|
1255
|
+
|
|
1256
|
+
|
|
1257
|
+
|
|
1258
|
+
|
|
1259
|
+
<div class="description">
|
|
1260
|
+
<p>Set the global deceleration time</p>
|
|
1261
|
+
</div>
|
|
1262
|
+
|
|
1263
|
+
|
|
1264
|
+
|
|
1265
|
+
|
|
1266
|
+
|
|
1267
|
+
|
|
1268
|
+
|
|
1269
|
+
<h5>Parameters:</h5>
|
|
1270
|
+
|
|
1271
|
+
|
|
1272
|
+
<table class="params">
|
|
1273
|
+
<thead>
|
|
1316
1274
|
<tr>
|
|
1317
|
-
|
|
1275
|
+
|
|
1318
1276
|
<th>Name</th>
|
|
1319
|
-
|
|
1277
|
+
|
|
1320
1278
|
|
|
1321
|
-
|
|
1279
|
+
<th>Type</th>
|
|
1322
1280
|
|
|
1323
|
-
|
|
1281
|
+
|
|
1324
1282
|
|
|
1325
|
-
|
|
1283
|
+
|
|
1326
1284
|
|
|
1327
|
-
|
|
1285
|
+
<th class="last">Description</th>
|
|
1328
1286
|
</tr>
|
|
1329
|
-
|
|
1287
|
+
</thead>
|
|
1330
1288
|
|
|
1331
|
-
|
|
1289
|
+
<tbody>
|
|
1332
1290
|
|
|
1291
|
+
<tr>
|
|
1292
|
+
|
|
1293
|
+
<td class="name"><code>time</code></td>
|
|
1294
|
+
|
|
1333
1295
|
|
|
1334
|
-
<
|
|
1335
|
-
|
|
1336
|
-
<td class="name"><code>time</code></td>
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
<td class="type">
|
|
1296
|
+
<td class="type">
|
|
1297
|
+
|
|
1340
1298
|
|
|
1341
|
-
|
|
1342
|
-
|
|
1299
|
+
<span class="param-type">
|
|
1300
|
+
number
|
|
1301
|
+
</span>
|
|
1343
1302
|
|
|
1303
|
+
|
|
1344
1304
|
|
|
1345
1305
|
|
|
1346
|
-
|
|
1347
|
-
|
|
1306
|
+
|
|
1307
|
+
</td>
|
|
1348
1308
|
|
|
1349
|
-
|
|
1309
|
+
|
|
1350
1310
|
|
|
1351
|
-
|
|
1311
|
+
|
|
1352
1312
|
|
|
1353
|
-
|
|
1354
|
-
|
|
1313
|
+
<td class="description last">
|
|
1314
|
+
<p>How long deceleration should last (in milliseconds).</p>
|
|
1315
|
+
|
|
1316
|
+
</td>
|
|
1317
|
+
</tr>
|
|
1355
1318
|
|
|
1356
1319
|
|
|
1357
|
-
|
|
1320
|
+
</tbody>
|
|
1358
1321
|
</table>
|
|
1359
1322
|
|
|
1360
|
-
|
|
1361
1323
|
|
|
1362
|
-
|
|
1363
|
-
<dl class="details">
|
|
1364
|
-
|
|
1365
1324
|
|
|
1366
|
-
|
|
1367
1325
|
|
|
1368
|
-
|
|
1369
1326
|
|
|
1370
|
-
|
|
1371
|
-
<dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
|
|
1372
|
-
<dd class="inherited-from">
|
|
1373
|
-
<ul class="dummy">
|
|
1374
|
-
<li>
|
|
1375
|
-
<a href="TachoMotor.html#setDecelerationTime">TachoMotor#setDecelerationTime</a>
|
|
1376
|
-
</li>
|
|
1377
|
-
</ul>
|
|
1378
|
-
</dd>
|
|
1379
|
-
|
|
1327
|
+
<dl class="details">
|
|
1380
1328
|
|
|
1381
|
-
|
|
1329
|
+
|
|
1382
1330
|
|
|
1383
|
-
|
|
1331
|
+
|
|
1384
1332
|
|
|
1385
|
-
|
|
1333
|
+
|
|
1334
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
1335
|
+
<dd class="inherited-from">
|
|
1336
|
+
<ul class="dummy">
|
|
1337
|
+
<li>
|
|
1338
|
+
<a href="TachoMotor.html#setDecelerationTime">TachoMotor#setDecelerationTime</a>
|
|
1339
|
+
</li>
|
|
1340
|
+
</ul>
|
|
1341
|
+
</dd>
|
|
1342
|
+
|
|
1386
1343
|
|
|
1387
|
-
|
|
1344
|
+
|
|
1388
1345
|
|
|
1389
|
-
|
|
1346
|
+
|
|
1390
1347
|
|
|
1391
|
-
|
|
1348
|
+
|
|
1392
1349
|
|
|
1393
|
-
|
|
1350
|
+
|
|
1394
1351
|
|
|
1395
|
-
|
|
1352
|
+
|
|
1396
1353
|
|
|
1397
|
-
|
|
1354
|
+
|
|
1398
1355
|
|
|
1356
|
+
|
|
1399
1357
|
|
|
1358
|
+
|
|
1400
1359
|
|
|
1401
|
-
|
|
1402
|
-
<dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
|
|
1403
|
-
<dd class="tag-source">
|
|
1404
|
-
<ul class="dummy">
|
|
1405
|
-
<li>
|
|
1406
|
-
<a href="devices_tachomotor.js.html">devices/tachomotor.js</a>,
|
|
1407
|
-
<a href="devices_tachomotor.js.html#sunlight-1-line-84">line 84</a>
|
|
1408
|
-
</li>
|
|
1409
|
-
</ul>
|
|
1410
|
-
</dd>
|
|
1411
|
-
|
|
1360
|
+
|
|
1412
1361
|
|
|
1413
|
-
|
|
1362
|
+
|
|
1363
|
+
<dt class="tag-source">Source:</dt>
|
|
1364
|
+
<dd class="tag-source">
|
|
1365
|
+
<ul class="dummy">
|
|
1366
|
+
<li>
|
|
1367
|
+
<a href="devices_tachomotor.js.html">devices/tachomotor.js</a>, <a href="devices_tachomotor.js.html#line84">line 84</a>
|
|
1368
|
+
</li>
|
|
1369
|
+
</ul>
|
|
1370
|
+
</dd>
|
|
1371
|
+
|
|
1372
|
+
|
|
1373
|
+
|
|
1414
1374
|
|
|
1415
|
-
|
|
1375
|
+
|
|
1416
1376
|
|
|
1417
|
-
|
|
1377
|
+
|
|
1418
1378
|
</dl>
|
|
1419
1379
|
|
|
1420
1380
|
|
|
1421
|
-
|
|
1422
1381
|
|
|
1423
|
-
|
|
1424
1382
|
|
|
1425
|
-
|
|
1426
1383
|
|
|
1427
|
-
|
|
1428
1384
|
|
|
1429
|
-
|
|
1430
1385
|
|
|
1431
|
-
|
|
1432
|
-
<h5>Returns:</h5>
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
<div class="param-desc">
|
|
1436
|
-
<p>Resolved upon successful completion of command (ie. once the motor is finished).</p>
|
|
1437
|
-
</div>
|
|
1438
1386
|
|
|
1439
1387
|
|
|
1440
1388
|
|
|
1441
|
-
<dl>
|
|
1442
|
-
<dt>
|
|
1443
|
-
Type
|
|
1444
|
-
</dt>
|
|
1445
|
-
<dd>
|
|
1446
|
-
|
|
1447
|
-
<span class="param-type">Promise</span>
|
|
1448
1389
|
|
|
1449
1390
|
|
|
1450
1391
|
|
|
1451
|
-
</dd>
|
|
1452
|
-
</dl>
|
|
1453
|
-
|
|
1454
1392
|
|
|
1393
|
+
|
|
1455
1394
|
|
|
1456
1395
|
|
|
1457
|
-
|
|
1458
|
-
</dd>
|
|
1459
1396
|
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
<hr>
|
|
1463
|
-
<dt>
|
|
1464
|
-
<h4 class="name" id="setMaxPower"><span class="type-signature"></span>setMaxPower(style)</h4>
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
</dt>
|
|
1468
|
-
<dd>
|
|
1397
|
+
|
|
1469
1398
|
|
|
1470
|
-
|
|
1471
|
-
<
|
|
1472
|
-
|
|
1399
|
+
<span class='name-container'>
|
|
1400
|
+
<a class="link-icon" href="#setMaxPower">
|
|
1401
|
+
<svg height="20" width="20" style="fill: black;">
|
|
1402
|
+
<use xlink:href="#linkIcon"></use>
|
|
1403
|
+
</svg>
|
|
1404
|
+
</a>
|
|
1405
|
+
<h4 class="name" id="setMaxPower">
|
|
1406
|
+
<span class="type-signature"></span>setMaxPower<span class="signature">(style)</span><span class="type-signature"></span>
|
|
1407
|
+
</h4>
|
|
1408
|
+
</span>
|
|
1409
|
+
|
|
1410
|
+
|
|
1411
|
+
|
|
1412
|
+
|
|
1413
|
+
|
|
1414
|
+
<div class="description">
|
|
1415
|
+
<p>Set the max power of the motor.</p>
|
|
1473
1416
|
<p>Note: This applies to setSpeed, rotateByDegrees, and gotoAngle.</p>
|
|
1474
|
-
|
|
1475
|
-
|
|
1417
|
+
</div>
|
|
1476
1418
|
|
|
1477
|
-
|
|
1478
1419
|
|
|
1479
|
-
|
|
1480
1420
|
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
<h5>Parameters:</h5>
|
|
1484
|
-
|
|
1485
1421
|
|
|
1486
|
-
|
|
1487
|
-
|
|
1422
|
+
|
|
1423
|
+
|
|
1424
|
+
|
|
1425
|
+
<h5>Parameters:</h5>
|
|
1426
|
+
|
|
1427
|
+
|
|
1428
|
+
<table class="params">
|
|
1429
|
+
<thead>
|
|
1488
1430
|
<tr>
|
|
1489
|
-
|
|
1431
|
+
|
|
1490
1432
|
<th>Name</th>
|
|
1491
|
-
|
|
1433
|
+
|
|
1492
1434
|
|
|
1493
|
-
|
|
1435
|
+
<th>Type</th>
|
|
1494
1436
|
|
|
1495
|
-
|
|
1437
|
+
|
|
1496
1438
|
|
|
1497
|
-
|
|
1439
|
+
|
|
1498
1440
|
|
|
1499
|
-
|
|
1441
|
+
<th class="last">Description</th>
|
|
1500
1442
|
</tr>
|
|
1501
|
-
|
|
1443
|
+
</thead>
|
|
1502
1444
|
|
|
1503
|
-
|
|
1445
|
+
<tbody>
|
|
1504
1446
|
|
|
1447
|
+
<tr>
|
|
1448
|
+
|
|
1449
|
+
<td class="name"><code>style</code></td>
|
|
1450
|
+
|
|
1505
1451
|
|
|
1506
|
-
<
|
|
1507
|
-
|
|
1508
|
-
<td class="name"><code>style</code></td>
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
<td class="type">
|
|
1452
|
+
<td class="type">
|
|
1453
|
+
|
|
1512
1454
|
|
|
1513
|
-
|
|
1514
|
-
|
|
1455
|
+
<span class="param-type">
|
|
1456
|
+
number
|
|
1457
|
+
</span>
|
|
1515
1458
|
|
|
1459
|
+
|
|
1516
1460
|
|
|
1517
1461
|
|
|
1518
|
-
|
|
1519
|
-
|
|
1462
|
+
|
|
1463
|
+
</td>
|
|
1520
1464
|
|
|
1521
|
-
|
|
1465
|
+
|
|
1522
1466
|
|
|
1523
|
-
|
|
1467
|
+
|
|
1524
1468
|
|
|
1525
|
-
|
|
1526
|
-
|
|
1469
|
+
<td class="description last">
|
|
1470
|
+
<p>Either BRAKE or HOLD</p>
|
|
1471
|
+
|
|
1472
|
+
</td>
|
|
1473
|
+
</tr>
|
|
1527
1474
|
|
|
1528
1475
|
|
|
1529
|
-
|
|
1476
|
+
</tbody>
|
|
1530
1477
|
</table>
|
|
1531
1478
|
|
|
1532
|
-
|
|
1533
1479
|
|
|
1534
|
-
|
|
1535
|
-
<dl class="details">
|
|
1536
|
-
|
|
1537
1480
|
|
|
1538
|
-
|
|
1539
1481
|
|
|
1540
|
-
|
|
1541
1482
|
|
|
1542
|
-
|
|
1543
|
-
<dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
|
|
1544
|
-
<dd class="inherited-from">
|
|
1545
|
-
<ul class="dummy">
|
|
1546
|
-
<li>
|
|
1547
|
-
<a href="TachoMotor.html#setMaxPower">TachoMotor#setMaxPower</a>
|
|
1548
|
-
</li>
|
|
1549
|
-
</ul>
|
|
1550
|
-
</dd>
|
|
1551
|
-
|
|
1483
|
+
<dl class="details">
|
|
1552
1484
|
|
|
1553
|
-
|
|
1485
|
+
|
|
1554
1486
|
|
|
1555
|
-
|
|
1487
|
+
|
|
1556
1488
|
|
|
1557
|
-
|
|
1489
|
+
|
|
1490
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
1491
|
+
<dd class="inherited-from">
|
|
1492
|
+
<ul class="dummy">
|
|
1493
|
+
<li>
|
|
1494
|
+
<a href="TachoMotor.html#setMaxPower">TachoMotor#setMaxPower</a>
|
|
1495
|
+
</li>
|
|
1496
|
+
</ul>
|
|
1497
|
+
</dd>
|
|
1498
|
+
|
|
1558
1499
|
|
|
1559
|
-
|
|
1500
|
+
|
|
1560
1501
|
|
|
1561
|
-
|
|
1502
|
+
|
|
1562
1503
|
|
|
1563
|
-
|
|
1504
|
+
|
|
1564
1505
|
|
|
1565
|
-
|
|
1506
|
+
|
|
1566
1507
|
|
|
1567
|
-
|
|
1508
|
+
|
|
1568
1509
|
|
|
1569
|
-
|
|
1510
|
+
|
|
1570
1511
|
|
|
1512
|
+
|
|
1571
1513
|
|
|
1514
|
+
|
|
1572
1515
|
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1516
|
+
|
|
1517
|
+
|
|
1518
|
+
|
|
1519
|
+
<dt class="tag-source">Source:</dt>
|
|
1520
|
+
<dd class="tag-source">
|
|
1521
|
+
<ul class="dummy">
|
|
1522
|
+
<li>
|
|
1523
|
+
<a href="devices_tachomotor.js.html">devices/tachomotor.js</a>, <a href="devices_tachomotor.js.html#line63">line 63</a>
|
|
1524
|
+
</li>
|
|
1525
|
+
</ul>
|
|
1526
|
+
</dd>
|
|
1527
|
+
|
|
1584
1528
|
|
|
1585
|
-
|
|
1529
|
+
|
|
1586
1530
|
|
|
1587
|
-
|
|
1531
|
+
|
|
1588
1532
|
|
|
1589
|
-
|
|
1533
|
+
|
|
1590
1534
|
</dl>
|
|
1591
1535
|
|
|
1592
1536
|
|
|
1593
|
-
|
|
1594
1537
|
|
|
1595
|
-
|
|
1596
1538
|
|
|
1597
|
-
|
|
1598
1539
|
|
|
1599
|
-
|
|
1600
1540
|
|
|
1601
|
-
|
|
1602
1541
|
|
|
1603
|
-
|
|
1604
1542
|
|
|
1605
|
-
|
|
1606
|
-
</dd>
|
|
1607
1543
|
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
<hr>
|
|
1611
|
-
<dt>
|
|
1612
|
-
<h4 class="name" id="setSpeed"><span class="type-signature"></span>setSpeed(speed, time)</h4>
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
</dt>
|
|
1616
|
-
<dd>
|
|
1617
1544
|
|
|
1618
|
-
|
|
1619
|
-
<div class="description">
|
|
1620
|
-
<p>Set the motor speed.</p>
|
|
1621
|
-
</div>
|
|
1622
|
-
|
|
1623
1545
|
|
|
1624
|
-
|
|
1625
1546
|
|
|
1626
|
-
|
|
1627
1547
|
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
<h5>Parameters:</h5>
|
|
1631
|
-
|
|
1632
1548
|
|
|
1633
|
-
|
|
1634
|
-
<thead>
|
|
1635
|
-
<tr>
|
|
1636
|
-
|
|
1637
|
-
<th>Name</th>
|
|
1549
|
+
|
|
1638
1550
|
|
|
1639
1551
|
|
|
1640
|
-
<th>Type</th>
|
|
1641
1552
|
|
|
1642
|
-
|
|
1553
|
+
|
|
1643
1554
|
|
|
1644
|
-
|
|
1555
|
+
<span class='name-container'>
|
|
1556
|
+
<a class="link-icon" href="#setSpeed">
|
|
1557
|
+
<svg height="20" width="20" style="fill: black;">
|
|
1558
|
+
<use xlink:href="#linkIcon"></use>
|
|
1559
|
+
</svg>
|
|
1560
|
+
</a>
|
|
1561
|
+
<h4 class="name" id="setSpeed">
|
|
1562
|
+
<span class="type-signature"></span>setSpeed<span class="signature">(speed, time)</span><span class="type-signature"> → {Promise}</span>
|
|
1563
|
+
</h4>
|
|
1564
|
+
</span>
|
|
1645
1565
|
|
|
1646
|
-
|
|
1647
|
-
</tr>
|
|
1648
|
-
</thead>
|
|
1566
|
+
|
|
1649
1567
|
|
|
1650
|
-
<tbody>
|
|
1651
|
-
|
|
1652
1568
|
|
|
1653
|
-
<tr>
|
|
1654
|
-
|
|
1655
|
-
<td class="name"><code>speed</code></td>
|
|
1656
|
-
|
|
1657
1569
|
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
<span class="param-type">number</span>
|
|
1570
|
+
<div class="description">
|
|
1571
|
+
<p>Set the motor speed.</p>
|
|
1572
|
+
</div>
|
|
1662
1573
|
|
|
1663
1574
|
|
|
1664
1575
|
|
|
1665
|
-
|
|
1666
|
-
</td>
|
|
1667
1576
|
|
|
1668
|
-
|
|
1669
1577
|
|
|
1670
|
-
|
|
1671
1578
|
|
|
1672
|
-
<td class="description last"><p>For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.</p></td>
|
|
1673
|
-
</tr>
|
|
1674
1579
|
|
|
1675
|
-
|
|
1580
|
+
<h5>Parameters:</h5>
|
|
1581
|
+
|
|
1676
1582
|
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1583
|
+
<table class="params">
|
|
1584
|
+
<thead>
|
|
1585
|
+
<tr>
|
|
1586
|
+
|
|
1587
|
+
<th>Name</th>
|
|
1588
|
+
|
|
1681
1589
|
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
<span class="param-type">number</span>
|
|
1590
|
+
<th>Type</th>
|
|
1686
1591
|
|
|
1592
|
+
|
|
1687
1593
|
|
|
1594
|
+
|
|
1688
1595
|
|
|
1689
|
-
|
|
1690
|
-
|
|
1596
|
+
<th class="last">Description</th>
|
|
1597
|
+
</tr>
|
|
1598
|
+
</thead>
|
|
1691
1599
|
|
|
1692
|
-
|
|
1600
|
+
<tbody>
|
|
1601
|
+
|
|
1602
|
+
<tr>
|
|
1603
|
+
|
|
1604
|
+
<td class="name"><code>speed</code></td>
|
|
1605
|
+
|
|
1693
1606
|
|
|
1607
|
+
<td class="type">
|
|
1608
|
+
|
|
1694
1609
|
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1610
|
+
<span class="param-type">
|
|
1611
|
+
number
|
|
1612
|
+
</span>
|
|
1698
1613
|
|
|
1699
1614
|
|
|
1700
|
-
</tbody>
|
|
1701
|
-
</table>
|
|
1702
1615
|
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
<dl class="details">
|
|
1707
|
-
|
|
1708
1616
|
|
|
1709
|
-
|
|
1617
|
+
|
|
1618
|
+
</td>
|
|
1710
1619
|
|
|
1711
|
-
|
|
1620
|
+
|
|
1712
1621
|
|
|
1713
|
-
|
|
1714
|
-
<dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
|
|
1715
|
-
<dd class="inherited-from">
|
|
1716
|
-
<ul class="dummy">
|
|
1717
|
-
<li>
|
|
1718
|
-
<a href="TachoMotor.html#setSpeed">TachoMotor#setSpeed</a>
|
|
1719
|
-
</li>
|
|
1720
|
-
</ul>
|
|
1721
|
-
</dd>
|
|
1722
|
-
|
|
1622
|
+
|
|
1723
1623
|
|
|
1724
|
-
|
|
1624
|
+
<td class="description last">
|
|
1625
|
+
<p>For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.</p>
|
|
1626
|
+
|
|
1627
|
+
</td>
|
|
1628
|
+
</tr>
|
|
1725
1629
|
|
|
1726
1630
|
|
|
1631
|
+
<tr>
|
|
1632
|
+
|
|
1633
|
+
<td class="name"><code>time</code></td>
|
|
1634
|
+
|
|
1727
1635
|
|
|
1728
|
-
|
|
1636
|
+
<td class="type">
|
|
1637
|
+
|
|
1638
|
+
|
|
1639
|
+
<span class="param-type">
|
|
1640
|
+
number
|
|
1641
|
+
</span>
|
|
1729
1642
|
|
|
1730
1643
|
|
|
1731
1644
|
|
|
1732
|
-
|
|
1733
1645
|
|
|
1734
|
-
|
|
1646
|
+
|
|
1647
|
+
</td>
|
|
1735
1648
|
|
|
1736
|
-
|
|
1649
|
+
|
|
1737
1650
|
|
|
1738
|
-
|
|
1651
|
+
|
|
1739
1652
|
|
|
1740
|
-
|
|
1653
|
+
<td class="description last">
|
|
1654
|
+
<p>How long the motor should run for (in milliseconds).</p>
|
|
1655
|
+
|
|
1656
|
+
</td>
|
|
1657
|
+
</tr>
|
|
1741
1658
|
|
|
1659
|
+
|
|
1660
|
+
</tbody>
|
|
1661
|
+
</table>
|
|
1742
1662
|
|
|
1743
1663
|
|
|
1744
|
-
|
|
1745
|
-
<dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
|
|
1746
|
-
<dd class="tag-source">
|
|
1747
|
-
<ul class="dummy">
|
|
1748
|
-
<li>
|
|
1749
|
-
<a href="devices_tachomotor.js.html">devices/tachomotor.js</a>,
|
|
1750
|
-
<a href="devices_tachomotor.js.html#sunlight-1-line-95">line 95</a>
|
|
1751
|
-
</li>
|
|
1752
|
-
</ul>
|
|
1753
|
-
</dd>
|
|
1754
|
-
|
|
1755
1664
|
|
|
1756
|
-
|
|
1757
1665
|
|
|
1758
|
-
|
|
1759
1666
|
|
|
1760
|
-
|
|
1761
|
-
</dl>
|
|
1667
|
+
<dl class="details">
|
|
1762
1668
|
|
|
1669
|
+
|
|
1763
1670
|
|
|
1764
|
-
|
|
1671
|
+
|
|
1765
1672
|
|
|
1766
|
-
|
|
1673
|
+
|
|
1674
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
1675
|
+
<dd class="inherited-from">
|
|
1676
|
+
<ul class="dummy">
|
|
1677
|
+
<li>
|
|
1678
|
+
<a href="TachoMotor.html#setSpeed">TachoMotor#setSpeed</a>
|
|
1679
|
+
</li>
|
|
1680
|
+
</ul>
|
|
1681
|
+
</dd>
|
|
1682
|
+
|
|
1767
1683
|
|
|
1768
|
-
|
|
1684
|
+
|
|
1769
1685
|
|
|
1770
|
-
|
|
1686
|
+
|
|
1771
1687
|
|
|
1772
|
-
|
|
1688
|
+
|
|
1773
1689
|
|
|
1774
|
-
|
|
1775
|
-
<h5>Returns:</h5>
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
<div class="param-desc">
|
|
1779
|
-
<p>Resolved upon successful issuance of the command.</p>
|
|
1780
|
-
</div>
|
|
1690
|
+
|
|
1781
1691
|
|
|
1692
|
+
|
|
1782
1693
|
|
|
1694
|
+
|
|
1783
1695
|
|
|
1784
|
-
|
|
1785
|
-
<dt>
|
|
1786
|
-
Type
|
|
1787
|
-
</dt>
|
|
1788
|
-
<dd>
|
|
1789
|
-
|
|
1790
|
-
<span class="param-type">Promise</span>
|
|
1696
|
+
|
|
1791
1697
|
|
|
1698
|
+
|
|
1792
1699
|
|
|
1700
|
+
|
|
1793
1701
|
|
|
1702
|
+
|
|
1703
|
+
<dt class="tag-source">Source:</dt>
|
|
1704
|
+
<dd class="tag-source">
|
|
1705
|
+
<ul class="dummy">
|
|
1706
|
+
<li>
|
|
1707
|
+
<a href="devices_tachomotor.js.html">devices/tachomotor.js</a>, <a href="devices_tachomotor.js.html#line95">line 95</a>
|
|
1708
|
+
</li>
|
|
1709
|
+
</ul>
|
|
1794
1710
|
</dd>
|
|
1711
|
+
|
|
1712
|
+
|
|
1713
|
+
|
|
1714
|
+
|
|
1715
|
+
|
|
1716
|
+
|
|
1717
|
+
|
|
1795
1718
|
</dl>
|
|
1796
1719
|
|
|
1797
1720
|
|
|
1798
|
-
|
|
1799
1721
|
|
|
1800
|
-
|
|
1801
|
-
</dd>
|
|
1802
1722
|
|
|
1803
|
-
</dl>
|
|
1804
|
-
|
|
1805
1723
|
|
|
1806
|
-
|
|
1807
1724
|
|
|
1808
|
-
|
|
1809
|
-
<h3 class="subsection-title">Events</h3>
|
|
1810
1725
|
|
|
1811
|
-
<dl>
|
|
1812
|
-
|
|
1813
|
-
<hr>
|
|
1814
|
-
<dt>
|
|
1815
|
-
<h4 class="name" id="event:absolute">absolute</h4>
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
</dt>
|
|
1819
|
-
<dd>
|
|
1820
1726
|
|
|
1821
|
-
|
|
1822
|
-
<div class="description">
|
|
1823
|
-
<p>Emits when a the motors absolute position is changed.</p>
|
|
1824
|
-
</div>
|
|
1825
|
-
|
|
1826
1727
|
|
|
1827
|
-
|
|
1828
1728
|
|
|
1829
|
-
|
|
1830
|
-
<h5>Type:
|
|
1831
|
-
<span class="param-type">object</span>
|
|
1832
1729
|
|
|
1833
1730
|
|
|
1834
|
-
|
|
1731
|
+
|
|
1732
|
+
|
|
1733
|
+
|
|
1835
1734
|
|
|
1836
1735
|
|
|
1837
1736
|
|
|
1737
|
+
|
|
1838
1738
|
|
|
1839
|
-
|
|
1840
|
-
|
|
1739
|
+
<h3 class="subsection-title">Events</h3>
|
|
1841
1740
|
|
|
1842
|
-
|
|
1843
|
-
<thead>
|
|
1844
|
-
<tr>
|
|
1845
|
-
|
|
1846
|
-
<th>Name</th>
|
|
1741
|
+
|
|
1847
1742
|
|
|
1848
1743
|
|
|
1849
|
-
<th>Type</th>
|
|
1850
1744
|
|
|
1851
|
-
|
|
1745
|
+
|
|
1852
1746
|
|
|
1853
|
-
|
|
1747
|
+
<span class='name-container'>
|
|
1748
|
+
<a class="link-icon" href="#event:absolute">
|
|
1749
|
+
<svg height="20" width="20" style="fill: black;">
|
|
1750
|
+
<use xlink:href="#linkIcon"></use>
|
|
1751
|
+
</svg>
|
|
1752
|
+
</a>
|
|
1753
|
+
<h4 class="name" id="event:absolute">
|
|
1754
|
+
<span class="type-signature"></span>absolute<span class="type-signature"> :object</span>
|
|
1755
|
+
</h4>
|
|
1756
|
+
</span>
|
|
1854
1757
|
|
|
1855
|
-
|
|
1856
|
-
</tr>
|
|
1857
|
-
</thead>
|
|
1758
|
+
|
|
1858
1759
|
|
|
1859
|
-
<tbody>
|
|
1860
|
-
|
|
1861
1760
|
|
|
1862
|
-
<tr>
|
|
1863
|
-
|
|
1864
|
-
<td class="name"><code>absolute</code></td>
|
|
1865
|
-
|
|
1866
1761
|
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
<span class="param-type">number</span>
|
|
1762
|
+
<div class="description">
|
|
1763
|
+
<p>Emits when a the motors absolute position is changed.</p>
|
|
1764
|
+
</div>
|
|
1871
1765
|
|
|
1872
1766
|
|
|
1873
1767
|
|
|
1874
|
-
|
|
1875
|
-
</td>
|
|
1876
1768
|
|
|
1877
|
-
|
|
1878
1769
|
|
|
1879
|
-
|
|
1880
1770
|
|
|
1881
|
-
<td class="description last"></td>
|
|
1882
|
-
</tr>
|
|
1883
1771
|
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
</table>
|
|
1772
|
+
<h5>Parameters:</h5>
|
|
1773
|
+
|
|
1887
1774
|
|
|
1888
|
-
|
|
1775
|
+
<table class="params">
|
|
1776
|
+
<thead>
|
|
1777
|
+
<tr>
|
|
1778
|
+
|
|
1779
|
+
<th>Name</th>
|
|
1780
|
+
|
|
1889
1781
|
|
|
1890
|
-
|
|
1891
|
-
<dl class="details">
|
|
1892
|
-
|
|
1782
|
+
<th>Type</th>
|
|
1893
1783
|
|
|
1894
|
-
|
|
1784
|
+
|
|
1895
1785
|
|
|
1896
|
-
|
|
1786
|
+
|
|
1897
1787
|
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
<ul class="dummy">
|
|
1902
|
-
<li>
|
|
1903
|
-
<a href="AbsoluteMotor.html#event:absolute">AbsoluteMotor#event:absolute</a>
|
|
1904
|
-
</li>
|
|
1905
|
-
</ul>
|
|
1906
|
-
</dd>
|
|
1907
|
-
|
|
1788
|
+
<th class="last">Description</th>
|
|
1789
|
+
</tr>
|
|
1790
|
+
</thead>
|
|
1908
1791
|
|
|
1792
|
+
<tbody>
|
|
1909
1793
|
|
|
1794
|
+
<tr>
|
|
1795
|
+
|
|
1796
|
+
<td class="name"><code>absolute</code></td>
|
|
1797
|
+
|
|
1910
1798
|
|
|
1911
|
-
|
|
1799
|
+
<td class="type">
|
|
1800
|
+
|
|
1801
|
+
|
|
1802
|
+
<span class="param-type">
|
|
1803
|
+
number
|
|
1804
|
+
</span>
|
|
1912
1805
|
|
|
1913
1806
|
|
|
1914
1807
|
|
|
1915
|
-
|
|
1916
1808
|
|
|
1917
|
-
|
|
1809
|
+
|
|
1810
|
+
</td>
|
|
1918
1811
|
|
|
1919
|
-
|
|
1812
|
+
|
|
1920
1813
|
|
|
1921
|
-
|
|
1814
|
+
|
|
1922
1815
|
|
|
1923
|
-
|
|
1816
|
+
<td class="description last">
|
|
1817
|
+
|
|
1818
|
+
|
|
1819
|
+
</td>
|
|
1820
|
+
</tr>
|
|
1924
1821
|
|
|
1925
|
-
|
|
1822
|
+
|
|
1823
|
+
</tbody>
|
|
1824
|
+
</table>
|
|
1926
1825
|
|
|
1927
1826
|
|
|
1928
1827
|
|
|
1929
|
-
|
|
1930
|
-
<dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
|
|
1931
|
-
<dd class="tag-source">
|
|
1932
|
-
<ul class="dummy">
|
|
1933
|
-
<li>
|
|
1934
|
-
<a href="devices_absolutemotor.js.html">devices/absolutemotor.js</a>,
|
|
1935
|
-
<a href="devices_absolutemotor.js.html#sunlight-1-line-39">line 39</a>
|
|
1936
|
-
</li>
|
|
1937
|
-
</ul>
|
|
1938
|
-
</dd>
|
|
1939
|
-
|
|
1940
1828
|
|
|
1941
|
-
|
|
1942
1829
|
|
|
1943
|
-
|
|
1830
|
+
<dl class="details">
|
|
1944
1831
|
|
|
1945
|
-
|
|
1946
|
-
</dl>
|
|
1832
|
+
|
|
1947
1833
|
|
|
1834
|
+
|
|
1948
1835
|
|
|
1949
|
-
|
|
1836
|
+
|
|
1837
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
1838
|
+
<dd class="inherited-from">
|
|
1839
|
+
<ul class="dummy">
|
|
1840
|
+
<li>
|
|
1841
|
+
<a href="AbsoluteMotor.html#event:absolute">AbsoluteMotor#event:absolute</a>
|
|
1842
|
+
</li>
|
|
1843
|
+
</ul>
|
|
1844
|
+
</dd>
|
|
1845
|
+
|
|
1950
1846
|
|
|
1951
|
-
|
|
1847
|
+
|
|
1952
1848
|
|
|
1953
|
-
|
|
1849
|
+
|
|
1954
1850
|
|
|
1955
|
-
|
|
1851
|
+
|
|
1956
1852
|
|
|
1957
|
-
|
|
1853
|
+
|
|
1958
1854
|
|
|
1959
|
-
|
|
1855
|
+
|
|
1960
1856
|
|
|
1961
|
-
|
|
1962
|
-
</dd>
|
|
1857
|
+
|
|
1963
1858
|
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
<hr>
|
|
1967
|
-
<dt>
|
|
1968
|
-
<h4 class="name" id="event:rotate">rotate</h4>
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
</dt>
|
|
1972
|
-
<dd>
|
|
1859
|
+
|
|
1973
1860
|
|
|
1974
|
-
|
|
1975
|
-
<div class="description">
|
|
1976
|
-
<p>Emits when a rotation sensor is activated.</p>
|
|
1977
|
-
</div>
|
|
1978
|
-
|
|
1861
|
+
|
|
1979
1862
|
|
|
1980
|
-
|
|
1863
|
+
|
|
1981
1864
|
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
<
|
|
1865
|
+
|
|
1866
|
+
<dt class="tag-source">Source:</dt>
|
|
1867
|
+
<dd class="tag-source">
|
|
1868
|
+
<ul class="dummy">
|
|
1869
|
+
<li>
|
|
1870
|
+
<a href="devices_absolutemotor.js.html">devices/absolutemotor.js</a>, <a href="devices_absolutemotor.js.html#line39">line 39</a>
|
|
1871
|
+
</li>
|
|
1872
|
+
</ul>
|
|
1873
|
+
</dd>
|
|
1874
|
+
|
|
1985
1875
|
|
|
1876
|
+
|
|
1986
1877
|
|
|
1987
|
-
|
|
1988
|
-
|
|
1878
|
+
|
|
1989
1879
|
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
<h5>Parameters:</h5>
|
|
1993
|
-
|
|
1880
|
+
|
|
1881
|
+
</dl>
|
|
1994
1882
|
|
|
1995
|
-
<table class="params table table-striped">
|
|
1996
|
-
<thead>
|
|
1997
|
-
<tr>
|
|
1998
|
-
|
|
1999
|
-
<th>Name</th>
|
|
2000
|
-
|
|
2001
1883
|
|
|
2002
|
-
<th>Type</th>
|
|
2003
1884
|
|
|
2004
|
-
|
|
2005
1885
|
|
|
2006
|
-
|
|
2007
1886
|
|
|
2008
|
-
<th class="last">Description</th>
|
|
2009
|
-
</tr>
|
|
2010
|
-
</thead>
|
|
2011
1887
|
|
|
2012
|
-
<tbody>
|
|
2013
|
-
|
|
2014
1888
|
|
|
2015
|
-
<tr>
|
|
2016
|
-
|
|
2017
|
-
<td class="name"><code>rotation</code></td>
|
|
2018
|
-
|
|
2019
1889
|
|
|
2020
|
-
<td class="type">
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
<span class="param-type">number</span>
|
|
2024
1890
|
|
|
2025
1891
|
|
|
2026
1892
|
|
|
2027
|
-
|
|
2028
|
-
</td>
|
|
2029
1893
|
|
|
2030
|
-
|
|
2031
1894
|
|
|
2032
|
-
|
|
2033
1895
|
|
|
2034
|
-
|
|
2035
|
-
|
|
1896
|
+
|
|
1897
|
+
|
|
2036
1898
|
|
|
2037
|
-
|
|
2038
|
-
</tbody>
|
|
2039
|
-
</table>
|
|
2040
1899
|
|
|
2041
|
-
|
|
1900
|
+
|
|
2042
1901
|
|
|
2043
|
-
|
|
2044
|
-
<
|
|
2045
|
-
|
|
1902
|
+
<span class='name-container'>
|
|
1903
|
+
<a class="link-icon" href="#event:rotate">
|
|
1904
|
+
<svg height="20" width="20" style="fill: black;">
|
|
1905
|
+
<use xlink:href="#linkIcon"></use>
|
|
1906
|
+
</svg>
|
|
1907
|
+
</a>
|
|
1908
|
+
<h4 class="name" id="event:rotate">
|
|
1909
|
+
<span class="type-signature"></span>rotate<span class="type-signature"> :object</span>
|
|
1910
|
+
</h4>
|
|
1911
|
+
</span>
|
|
2046
1912
|
|
|
2047
|
-
|
|
1913
|
+
|
|
2048
1914
|
|
|
2049
|
-
|
|
2050
1915
|
|
|
2051
|
-
|
|
2052
|
-
<dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
|
|
2053
|
-
<dd class="inherited-from">
|
|
2054
|
-
<ul class="dummy">
|
|
2055
|
-
<li>
|
|
2056
|
-
<a href="TachoMotor.html#event:rotate">TachoMotor#event:rotate</a>
|
|
2057
|
-
</li>
|
|
2058
|
-
</ul>
|
|
2059
|
-
</dd>
|
|
2060
|
-
|
|
2061
1916
|
|
|
2062
|
-
|
|
1917
|
+
<div class="description">
|
|
1918
|
+
<p>Emits when a rotation sensor is activated.</p>
|
|
1919
|
+
</div>
|
|
2063
1920
|
|
|
2064
|
-
|
|
2065
1921
|
|
|
2066
|
-
|
|
2067
1922
|
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
1923
|
|
|
2072
|
-
|
|
2073
1924
|
|
|
2074
|
-
|
|
2075
1925
|
|
|
2076
|
-
|
|
2077
1926
|
|
|
2078
|
-
|
|
1927
|
+
<h5>Parameters:</h5>
|
|
1928
|
+
|
|
2079
1929
|
|
|
1930
|
+
<table class="params">
|
|
1931
|
+
<thead>
|
|
1932
|
+
<tr>
|
|
1933
|
+
|
|
1934
|
+
<th>Name</th>
|
|
1935
|
+
|
|
2080
1936
|
|
|
1937
|
+
<th>Type</th>
|
|
2081
1938
|
|
|
2082
|
-
|
|
2083
|
-
<dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
|
|
2084
|
-
<dd class="tag-source">
|
|
2085
|
-
<ul class="dummy">
|
|
2086
|
-
<li>
|
|
2087
|
-
<a href="devices_tachomotor.js.html">devices/tachomotor.js</a>,
|
|
2088
|
-
<a href="devices_tachomotor.js.html#sunlight-1-line-43">line 43</a>
|
|
2089
|
-
</li>
|
|
2090
|
-
</ul>
|
|
2091
|
-
</dd>
|
|
2092
|
-
|
|
1939
|
+
|
|
2093
1940
|
|
|
2094
|
-
|
|
1941
|
+
|
|
2095
1942
|
|
|
2096
|
-
|
|
1943
|
+
<th class="last">Description</th>
|
|
1944
|
+
</tr>
|
|
1945
|
+
</thead>
|
|
2097
1946
|
|
|
2098
|
-
|
|
2099
|
-
|
|
1947
|
+
<tbody>
|
|
1948
|
+
|
|
1949
|
+
<tr>
|
|
1950
|
+
|
|
1951
|
+
<td class="name"><code>rotation</code></td>
|
|
1952
|
+
|
|
2100
1953
|
|
|
1954
|
+
<td class="type">
|
|
1955
|
+
|
|
1956
|
+
|
|
1957
|
+
<span class="param-type">
|
|
1958
|
+
number
|
|
1959
|
+
</span>
|
|
2101
1960
|
|
|
2102
1961
|
|
|
2103
1962
|
|
|
2104
|
-
|
|
2105
1963
|
|
|
2106
|
-
|
|
1964
|
+
|
|
1965
|
+
</td>
|
|
2107
1966
|
|
|
2108
|
-
|
|
1967
|
+
|
|
2109
1968
|
|
|
2110
|
-
|
|
1969
|
+
|
|
2111
1970
|
|
|
2112
|
-
|
|
1971
|
+
<td class="description last">
|
|
1972
|
+
|
|
1973
|
+
|
|
1974
|
+
</td>
|
|
1975
|
+
</tr>
|
|
2113
1976
|
|
|
2114
1977
|
|
|
2115
|
-
</
|
|
1978
|
+
</tbody>
|
|
1979
|
+
</table>
|
|
2116
1980
|
|
|
2117
|
-
</dl>
|
|
2118
|
-
|
|
2119
|
-
</article>
|
|
2120
1981
|
|
|
2121
|
-
</section>
|
|
2122
1982
|
|
|
2123
1983
|
|
|
2124
1984
|
|
|
1985
|
+
<dl class="details">
|
|
2125
1986
|
|
|
2126
|
-
|
|
2127
|
-
</div>
|
|
1987
|
+
|
|
2128
1988
|
|
|
2129
|
-
|
|
1989
|
+
|
|
2130
1990
|
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
1991
|
+
|
|
1992
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
1993
|
+
<dd class="inherited-from">
|
|
1994
|
+
<ul class="dummy">
|
|
1995
|
+
<li>
|
|
1996
|
+
<a href="TachoMotor.html#event:rotate">TachoMotor#event:rotate</a>
|
|
1997
|
+
</li>
|
|
1998
|
+
</ul>
|
|
1999
|
+
</dd>
|
|
2000
|
+
|
|
2136
2001
|
|
|
2137
|
-
|
|
2138
|
-
</div>
|
|
2002
|
+
|
|
2139
2003
|
|
|
2004
|
+
|
|
2140
2005
|
|
|
2141
|
-
|
|
2142
|
-
<div class="modal-dialog">
|
|
2143
|
-
<div class="modal-content">
|
|
2144
|
-
<div class="modal-header">
|
|
2145
|
-
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
2146
|
-
<h4 class="modal-title">Search results</h4>
|
|
2147
|
-
</div>
|
|
2148
|
-
<div class="modal-body"></div>
|
|
2149
|
-
<div class="modal-footer">
|
|
2150
|
-
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
2151
|
-
</div>
|
|
2152
|
-
</div><!-- /.modal-content -->
|
|
2153
|
-
</div><!-- /.modal-dialog -->
|
|
2154
|
-
</div>
|
|
2006
|
+
|
|
2155
2007
|
|
|
2008
|
+
|
|
2156
2009
|
|
|
2157
|
-
|
|
2010
|
+
|
|
2158
2011
|
|
|
2012
|
+
|
|
2159
2013
|
|
|
2160
|
-
|
|
2161
|
-
node-poweredup by Nathan Kellenicki licensed under the MIT license.
|
|
2162
|
-
</span>
|
|
2014
|
+
|
|
2163
2015
|
|
|
2164
|
-
|
|
2165
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a>
|
|
2166
|
-
|
|
2167
|
-
on Tue Apr 6th 2021
|
|
2168
|
-
|
|
2169
|
-
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
|
2170
|
-
</span>
|
|
2171
|
-
</footer>
|
|
2016
|
+
|
|
2172
2017
|
|
|
2173
|
-
|
|
2174
|
-
<script src="scripts/toc.js"></script>
|
|
2018
|
+
|
|
2175
2019
|
|
|
2176
|
-
|
|
2020
|
+
|
|
2021
|
+
<dt class="tag-source">Source:</dt>
|
|
2022
|
+
<dd class="tag-source">
|
|
2023
|
+
<ul class="dummy">
|
|
2024
|
+
<li>
|
|
2025
|
+
<a href="devices_tachomotor.js.html">devices/tachomotor.js</a>, <a href="devices_tachomotor.js.html#line43">line 43</a>
|
|
2026
|
+
</li>
|
|
2027
|
+
</ul>
|
|
2028
|
+
</dd>
|
|
2029
|
+
|
|
2030
|
+
|
|
2031
|
+
|
|
2177
2032
|
|
|
2033
|
+
|
|
2034
|
+
|
|
2035
|
+
|
|
2036
|
+
</dl>
|
|
2178
2037
|
|
|
2179
|
-
<script>
|
|
2180
|
-
$( function () {
|
|
2181
|
-
$( "[id*='$']" ).each( function () {
|
|
2182
|
-
var $this = $( this );
|
|
2183
2038
|
|
|
2184
|
-
$this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) );
|
|
2185
|
-
} );
|
|
2186
2039
|
|
|
2187
|
-
$( ".tutorial-section pre, .readme-section pre, pre.prettyprint.source" ).each( function () {
|
|
2188
|
-
var $this = $( this );
|
|
2189
2040
|
|
|
2190
|
-
var example = $this.find( "code" );
|
|
2191
|
-
exampleText = example.html();
|
|
2192
|
-
var lang = /{@lang (.*?)}/.exec( exampleText );
|
|
2193
|
-
if ( lang && lang[1] ) {
|
|
2194
|
-
exampleText = exampleText.replace( lang[0], "" );
|
|
2195
|
-
example.html( exampleText );
|
|
2196
|
-
lang = lang[1];
|
|
2197
|
-
} else {
|
|
2198
|
-
var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/);
|
|
2199
|
-
lang = langClassMatch ? langClassMatch[1] : "javascript";
|
|
2200
|
-
}
|
|
2201
2041
|
|
|
2202
|
-
if ( lang ) {
|
|
2203
2042
|
|
|
2204
|
-
$this
|
|
2205
|
-
.addClass( "sunlight-highlight-" + lang )
|
|
2206
|
-
.addClass( "linenums" )
|
|
2207
|
-
.html( example.html() );
|
|
2208
2043
|
|
|
2209
|
-
}
|
|
2210
|
-
} );
|
|
2211
2044
|
|
|
2212
|
-
Sunlight.highlightAll( {
|
|
2213
|
-
lineNumbers : true,
|
|
2214
|
-
showMenu : true,
|
|
2215
|
-
enableDoclinks : true
|
|
2216
|
-
} );
|
|
2217
2045
|
|
|
2218
|
-
$.catchAnchorLinks( {
|
|
2219
|
-
navbarOffset: 10
|
|
2220
|
-
} );
|
|
2221
|
-
$( "#toc" ).toc( {
|
|
2222
|
-
anchorName : function ( i, heading, prefix ) {
|
|
2223
|
-
return $( heading ).attr( "id" ) || ( prefix + i );
|
|
2224
|
-
},
|
|
2225
|
-
selectors : "#toc-content h1,#toc-content h2,#toc-content h3,#toc-content h4",
|
|
2226
|
-
showAndHide : false,
|
|
2227
|
-
smoothScrolling: true
|
|
2228
|
-
} );
|
|
2229
2046
|
|
|
2230
|
-
$( "#main span[id^='toc']" ).addClass( "toc-shim" );
|
|
2231
|
-
$( '.dropdown-toggle' ).dropdown();
|
|
2232
2047
|
|
|
2233
|
-
$( "table" ).each( function () {
|
|
2234
|
-
var $this = $( this );
|
|
2235
|
-
$this.addClass('table');
|
|
2236
|
-
} );
|
|
2237
2048
|
|
|
2238
|
-
} );
|
|
2239
|
-
</script>
|
|
2240
2049
|
|
|
2241
2050
|
|
|
2051
|
+
|
|
2052
|
+
|
|
2053
|
+
</article>
|
|
2054
|
+
</section>
|
|
2055
|
+
|
|
2242
2056
|
|
|
2243
|
-
<!--Navigation and Symbol Display-->
|
|
2244
2057
|
|
|
2245
2058
|
|
|
2246
|
-
|
|
2059
|
+
</div>
|
|
2247
2060
|
|
|
2061
|
+
<br class="clear">
|
|
2248
2062
|
|
|
2063
|
+
<footer>
|
|
2064
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.7</a>
|
|
2065
|
+
</footer>
|
|
2249
2066
|
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
SearcherDisplay.init();
|
|
2253
|
-
});
|
|
2254
|
-
</script>
|
|
2067
|
+
<script src="scripts/linenumber.js"></script>
|
|
2068
|
+
<script src="scripts/pagelocation.js"></script>
|
|
2255
2069
|
|
|
2070
|
+
|
|
2256
2071
|
|
|
2257
2072
|
</body>
|
|
2258
2073
|
</html>
|