node-poweredup 6.11.0 → 8.0.1
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 +6 -6
- 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.js +2 -0
- 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 +6 -6
- 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 +20 -19
- 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 +30 -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 +95 -197
- 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 +91 -191
- 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 +95 -197
- 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 +109 -210
- 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 +314 -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/colordistancesensor.ts +98 -3
- package/src/devices/device.ts +1 -0
- package/src/devices/duplotrainbasecolorsensor.ts +17 -2
- 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 +8 -9
- 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 +9 -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
package/docs/TachoMotor.html
CHANGED
|
@@ -1,2906 +1,2715 @@
|
|
|
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: TachoMotor</title>
|
|
8
4
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<![endif]-->
|
|
12
|
-
<link type="text/css" rel="stylesheet" href="styles/sunlight.default.css">
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
13
7
|
|
|
14
|
-
|
|
8
|
+
<title>
|
|
9
|
+
TachoMotor - Documentation
|
|
10
|
+
</title>
|
|
15
11
|
|
|
16
|
-
|
|
12
|
+
<link href="https://www.braintreepayments.com/images/favicon-ccda0b14.png" rel="icon" type="image/png">
|
|
17
13
|
|
|
18
|
-
<
|
|
14
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.7.0/highlight.min.js"></script>
|
|
15
|
+
<script>hljs.initHighlightingOnLoad();</script>
|
|
19
16
|
|
|
20
|
-
<
|
|
21
|
-
<div class="container">
|
|
22
|
-
<div class="navbar-header">
|
|
23
|
-
<a class="navbar-brand" href="index.html">node-poweredup</a>
|
|
24
|
-
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation">
|
|
25
|
-
<span class="icon-bar"></span>
|
|
26
|
-
<span class="icon-bar"></span>
|
|
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: TachoMotor</h1>
|
|
76
|
-
<section>
|
|
17
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
|
|
77
18
|
|
|
78
|
-
<
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
TachoMotor
|
|
82
|
-
</h2>
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
</header>
|
|
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
|
+
|
|
86
22
|
|
|
23
|
+
|
|
87
24
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
</dt>
|
|
98
|
-
<dd>
|
|
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 -->
|
|
31
|
+
</head>
|
|
99
32
|
|
|
100
|
-
|
|
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
|
+
|
|
101
65
|
|
|
102
|
-
|
|
66
|
+
</ul>
|
|
67
|
+
</div>
|
|
103
68
|
|
|
104
|
-
|
|
69
|
+
<nav>
|
|
70
|
+
<h3 class="reference-title">
|
|
71
|
+
node-poweredup Reference
|
|
72
|
+
</h3>
|
|
105
73
|
|
|
106
74
|
|
|
107
|
-
|
|
108
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>
|
|
78
|
+
|
|
79
|
+
<div id="main">
|
|
109
80
|
|
|
110
|
-
<
|
|
81
|
+
<h1 class="page-title">
|
|
82
|
+
TachoMotor
|
|
83
|
+
</h1>
|
|
111
84
|
|
|
112
85
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
86
|
|
|
120
87
|
|
|
88
|
+
<section>
|
|
89
|
+
<header>
|
|
121
90
|
|
|
91
|
+
<h2>
|
|
92
|
+
|
|
93
|
+
TachoMotor
|
|
94
|
+
|
|
95
|
+
</h2>
|
|
122
96
|
|
|
97
|
+
|
|
123
98
|
|
|
99
|
+
</header>
|
|
124
100
|
|
|
125
|
-
|
|
101
|
+
<article>
|
|
102
|
+
<div class="container-overview">
|
|
103
|
+
|
|
104
|
+
|
|
126
105
|
|
|
127
|
-
|
|
128
106
|
|
|
129
|
-
|
|
107
|
+
|
|
130
108
|
|
|
131
|
-
|
|
109
|
+
<span class='name-container'>
|
|
110
|
+
<a class="link-icon" href="#TachoMotor">
|
|
111
|
+
<svg height="20" width="20" style="fill: black;">
|
|
112
|
+
<use xlink:href="#linkIcon"></use>
|
|
113
|
+
</svg>
|
|
114
|
+
</a>
|
|
115
|
+
<h4 class="name" id="TachoMotor">
|
|
116
|
+
<span class="type-signature"></span>new TachoMotor<span class="signature">()</span><span class="type-signature"></span>
|
|
117
|
+
</h4>
|
|
118
|
+
</span>
|
|
132
119
|
|
|
133
|
-
|
|
120
|
+
|
|
134
121
|
|
|
135
|
-
|
|
136
122
|
|
|
137
123
|
|
|
138
124
|
|
|
139
|
-
|
|
140
|
-
<dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
|
|
141
|
-
<dd class="tag-source">
|
|
142
|
-
<ul class="dummy">
|
|
143
|
-
<li>
|
|
144
|
-
<a href="devices_tachomotor.js.html">devices/tachomotor.js</a>,
|
|
145
|
-
<a href="devices_tachomotor.js.html#sunlight-1-line-26">line 26</a>
|
|
146
|
-
</li>
|
|
147
|
-
</ul>
|
|
148
|
-
</dd>
|
|
149
|
-
|
|
150
125
|
|
|
151
|
-
|
|
152
126
|
|
|
153
|
-
|
|
154
127
|
|
|
155
|
-
|
|
156
|
-
</dl>
|
|
157
128
|
|
|
158
129
|
|
|
159
|
-
|
|
160
130
|
|
|
161
|
-
|
|
162
131
|
|
|
163
|
-
|
|
164
132
|
|
|
165
|
-
|
|
133
|
+
<dl class="details">
|
|
166
134
|
|
|
167
|
-
|
|
135
|
+
|
|
168
136
|
|
|
169
|
-
|
|
137
|
+
|
|
170
138
|
|
|
171
|
-
|
|
172
|
-
</dd>
|
|
139
|
+
|
|
173
140
|
|
|
174
|
-
|
|
175
|
-
</div>
|
|
141
|
+
|
|
176
142
|
|
|
177
|
-
|
|
178
|
-
<h3 class="subsection-title">Extends</h3>
|
|
143
|
+
|
|
179
144
|
|
|
180
|
-
|
|
145
|
+
|
|
181
146
|
|
|
147
|
+
|
|
182
148
|
|
|
183
|
-
|
|
184
|
-
<li><a href="BasicMotor.html">BasicMotor</a></li>
|
|
185
|
-
</ul>
|
|
149
|
+
|
|
186
150
|
|
|
151
|
+
|
|
187
152
|
|
|
188
|
-
|
|
153
|
+
|
|
189
154
|
|
|
190
|
-
|
|
155
|
+
|
|
191
156
|
|
|
192
|
-
|
|
157
|
+
|
|
193
158
|
|
|
194
|
-
|
|
159
|
+
|
|
160
|
+
<dt class="tag-source">Source:</dt>
|
|
161
|
+
<dd class="tag-source">
|
|
162
|
+
<ul class="dummy">
|
|
163
|
+
<li>
|
|
164
|
+
<a href="devices_tachomotor.js.html">devices/tachomotor.js</a>, <a href="devices_tachomotor.js.html#line26">line 26</a>
|
|
165
|
+
</li>
|
|
166
|
+
</ul>
|
|
167
|
+
</dd>
|
|
168
|
+
|
|
195
169
|
|
|
196
|
-
|
|
170
|
+
|
|
197
171
|
|
|
198
|
-
|
|
199
|
-
<h3 class="subsection-title">Members</h3>
|
|
172
|
+
|
|
200
173
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
<hr>
|
|
204
|
-
<dt class="name" id="connected">
|
|
205
|
-
<h4 id="connected"><span class="type-signature"><readonly> </span>connected<span class="type-signature"></span></h4>
|
|
174
|
+
|
|
175
|
+
</dl>
|
|
206
176
|
|
|
207
|
-
|
|
208
|
-
</dt>
|
|
209
|
-
<dd>
|
|
210
|
-
|
|
211
177
|
|
|
212
|
-
|
|
213
178
|
|
|
214
|
-
|
|
215
|
-
<dl class="details">
|
|
216
|
-
|
|
217
179
|
|
|
218
|
-
<h5 class="subsection-title">Properties:</h5>
|
|
219
180
|
|
|
220
|
-
<dl>
|
|
221
181
|
|
|
222
|
-
<table class="props table table-striped">
|
|
223
|
-
<thead>
|
|
224
|
-
<tr>
|
|
225
|
-
|
|
226
|
-
<th>Name</th>
|
|
227
|
-
|
|
228
182
|
|
|
229
|
-
<th>Type</th>
|
|
230
183
|
|
|
231
|
-
|
|
232
184
|
|
|
233
|
-
|
|
234
185
|
|
|
235
|
-
<th class="last">Description</th>
|
|
236
|
-
</tr>
|
|
237
|
-
</thead>
|
|
238
186
|
|
|
239
|
-
<tbody>
|
|
240
|
-
|
|
241
187
|
|
|
242
|
-
<tr>
|
|
243
|
-
|
|
244
|
-
<td class="name"><code>connected</code></td>
|
|
245
|
-
|
|
246
188
|
|
|
247
|
-
<td class="type">
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
<span class="param-type">boolean</span>
|
|
251
189
|
|
|
190
|
+
|
|
191
|
+
</div>
|
|
252
192
|
|
|
193
|
+
|
|
194
|
+
<h3 class="subsection-title">Extends</h3>
|
|
253
195
|
|
|
254
|
-
|
|
255
|
-
</td>
|
|
196
|
+
|
|
256
197
|
|
|
257
|
-
|
|
258
198
|
|
|
259
|
-
|
|
199
|
+
<ul>
|
|
200
|
+
<li><a href="BasicMotor.html">BasicMotor</a></li>
|
|
201
|
+
</ul>
|
|
260
202
|
|
|
261
|
-
<td class="description last"><p>Check if the device is still attached.</p></td>
|
|
262
|
-
</tr>
|
|
263
203
|
|
|
264
204
|
|
|
265
|
-
</tbody>
|
|
266
|
-
</table>
|
|
267
|
-
</dl>
|
|
268
205
|
|
|
269
206
|
|
|
270
207
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
<dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
|
|
277
|
-
<dd class="inherited-from">
|
|
278
|
-
<ul class="dummy">
|
|
279
|
-
<li>
|
|
280
|
-
<a href="Device.html#connected">Device#connected</a>
|
|
281
|
-
</li>
|
|
282
|
-
</ul>
|
|
283
|
-
</dd>
|
|
284
|
-
|
|
285
|
-
|
|
286
208
|
|
|
287
209
|
|
|
288
|
-
|
|
210
|
+
|
|
289
211
|
|
|
290
212
|
|
|
291
213
|
|
|
292
214
|
|
|
215
|
+
<h3 class="subsection-title">Members</h3>
|
|
293
216
|
|
|
294
|
-
|
|
217
|
+
|
|
218
|
+
|
|
295
219
|
|
|
296
|
-
|
|
220
|
+
<h4 class="name" id="connected">
|
|
221
|
+
<span class="type-signature">(readonly) </span>connected<span class="type-signature"></span>
|
|
222
|
+
</h4>
|
|
297
223
|
|
|
298
|
-
|
|
299
224
|
|
|
300
|
-
|
|
301
225
|
|
|
302
|
-
|
|
303
226
|
|
|
304
227
|
|
|
305
228
|
|
|
306
|
-
|
|
307
|
-
<dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
|
|
308
|
-
<dd class="tag-source">
|
|
309
|
-
<ul class="dummy">
|
|
310
|
-
<li>
|
|
311
|
-
<a href="devices_device.js.html">devices/device.js</a>,
|
|
312
|
-
<a href="devices_device.js.html#sunlight-1-line-76">line 76</a>
|
|
313
|
-
</li>
|
|
314
|
-
</ul>
|
|
315
|
-
</dd>
|
|
316
|
-
|
|
317
229
|
|
|
318
|
-
|
|
230
|
+
<h5 class="subsection-title">Properties:</h5>
|
|
319
231
|
|
|
320
|
-
|
|
232
|
+
|
|
321
233
|
|
|
322
|
-
|
|
323
|
-
|
|
234
|
+
<table class="props">
|
|
235
|
+
<thead>
|
|
236
|
+
<tr>
|
|
237
|
+
|
|
238
|
+
<th>Name</th>
|
|
239
|
+
|
|
324
240
|
|
|
241
|
+
<th>Type</th>
|
|
325
242
|
|
|
326
|
-
|
|
327
|
-
</dd>
|
|
243
|
+
|
|
328
244
|
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
<hr>
|
|
332
|
-
<dt class="name" id="hub">
|
|
333
|
-
<h4 id="hub"><span class="type-signature"><readonly> </span>hub<span class="type-signature"></span></h4>
|
|
245
|
+
|
|
334
246
|
|
|
335
|
-
|
|
336
|
-
</
|
|
337
|
-
|
|
338
|
-
|
|
247
|
+
<th class="last">Description</th>
|
|
248
|
+
</tr>
|
|
249
|
+
</thead>
|
|
339
250
|
|
|
251
|
+
<tbody>
|
|
340
252
|
|
|
341
253
|
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
254
|
+
<tr>
|
|
255
|
+
|
|
256
|
+
<td class="name"><code>connected</code></td>
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
<td class="type">
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
<span class="param-type">
|
|
263
|
+
boolean
|
|
264
|
+
</span>
|
|
345
265
|
|
|
346
|
-
|
|
266
|
+
|
|
347
267
|
|
|
348
|
-
<dl>
|
|
349
268
|
|
|
350
|
-
<table class="props table table-striped">
|
|
351
|
-
<thead>
|
|
352
|
-
<tr>
|
|
353
|
-
|
|
354
|
-
<th>Name</th>
|
|
355
269
|
|
|
356
|
-
|
|
357
|
-
<th>Type</th>
|
|
270
|
+
</td>
|
|
358
271
|
|
|
359
272
|
|
|
360
273
|
|
|
361
274
|
|
|
362
275
|
|
|
363
|
-
<
|
|
276
|
+
<td class="description last">
|
|
277
|
+
<p>Check if the device is still attached.</p>
|
|
278
|
+
</td>
|
|
364
279
|
</tr>
|
|
365
|
-
</thead>
|
|
366
|
-
|
|
367
|
-
<tbody>
|
|
368
|
-
|
|
369
280
|
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
281
|
+
|
|
282
|
+
</tbody>
|
|
283
|
+
</table>
|
|
374
284
|
|
|
375
|
-
<td class="type">
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
<span class="param-type"><a href="Hub.html">Hub</a></span>
|
|
379
285
|
|
|
380
286
|
|
|
381
287
|
|
|
382
|
-
|
|
383
|
-
</td>
|
|
288
|
+
<dl class="details">
|
|
384
289
|
|
|
385
|
-
|
|
290
|
+
|
|
386
291
|
|
|
387
|
-
|
|
292
|
+
|
|
388
293
|
|
|
389
|
-
|
|
390
|
-
|
|
294
|
+
|
|
295
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
296
|
+
<dd class="inherited-from">
|
|
297
|
+
<ul class="dummy">
|
|
298
|
+
<li>
|
|
299
|
+
<a href="Device.html#connected">Device#connected</a>
|
|
300
|
+
</li>
|
|
301
|
+
</ul>
|
|
302
|
+
</dd>
|
|
303
|
+
|
|
391
304
|
|
|
392
|
-
|
|
393
|
-
</tbody>
|
|
394
|
-
</table>
|
|
395
|
-
</dl>
|
|
305
|
+
|
|
396
306
|
|
|
397
|
-
|
|
307
|
+
|
|
398
308
|
|
|
399
|
-
|
|
309
|
+
|
|
400
310
|
|
|
401
|
-
|
|
311
|
+
|
|
402
312
|
|
|
403
|
-
|
|
404
|
-
<dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
|
|
405
|
-
<dd class="inherited-from">
|
|
406
|
-
<ul class="dummy">
|
|
407
|
-
<li>
|
|
408
|
-
<a href="Device.html#hub">Device#hub</a>
|
|
409
|
-
</li>
|
|
410
|
-
</ul>
|
|
411
|
-
</dd>
|
|
412
|
-
|
|
313
|
+
|
|
413
314
|
|
|
414
|
-
|
|
315
|
+
|
|
415
316
|
|
|
416
|
-
|
|
317
|
+
|
|
417
318
|
|
|
418
|
-
|
|
319
|
+
|
|
419
320
|
|
|
420
|
-
|
|
321
|
+
|
|
421
322
|
|
|
422
|
-
|
|
323
|
+
|
|
324
|
+
<dt class="tag-source">Source:</dt>
|
|
325
|
+
<dd class="tag-source">
|
|
326
|
+
<ul class="dummy">
|
|
327
|
+
<li>
|
|
328
|
+
<a href="devices_device.js.html">devices/device.js</a>, <a href="devices_device.js.html#line76">line 76</a>
|
|
329
|
+
</li>
|
|
330
|
+
</ul>
|
|
331
|
+
</dd>
|
|
332
|
+
|
|
423
333
|
|
|
424
|
-
|
|
334
|
+
|
|
425
335
|
|
|
426
|
-
|
|
336
|
+
|
|
427
337
|
|
|
428
|
-
|
|
338
|
+
|
|
339
|
+
</dl>
|
|
429
340
|
|
|
430
|
-
|
|
431
341
|
|
|
432
342
|
|
|
433
343
|
|
|
434
|
-
|
|
435
|
-
<dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
|
|
436
|
-
<dd class="tag-source">
|
|
437
|
-
<ul class="dummy">
|
|
438
|
-
<li>
|
|
439
|
-
<a href="devices_device.js.html">devices/device.js</a>,
|
|
440
|
-
<a href="devices_device.js.html#sunlight-1-line-83">line 83</a>
|
|
441
|
-
</li>
|
|
442
|
-
</ul>
|
|
443
|
-
</dd>
|
|
444
|
-
|
|
445
344
|
|
|
446
|
-
|
|
447
345
|
|
|
448
|
-
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
|
|
449
349
|
|
|
450
|
-
|
|
451
|
-
</
|
|
350
|
+
<h4 class="name" id="hub">
|
|
351
|
+
<span class="type-signature">(readonly) </span>hub<span class="type-signature"></span>
|
|
352
|
+
</h4>
|
|
452
353
|
|
|
453
354
|
|
|
454
|
-
|
|
455
|
-
</dd>
|
|
456
355
|
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
<hr>
|
|
460
|
-
<dt class="name" id="isVirtualPort">
|
|
461
|
-
<h4 id="isVirtualPort"><span class="type-signature"><readonly> </span>isVirtualPort<span class="type-signature"></span></h4>
|
|
462
356
|
|
|
463
|
-
|
|
464
|
-
</dt>
|
|
465
|
-
<dd>
|
|
466
|
-
|
|
467
357
|
|
|
468
|
-
|
|
469
358
|
|
|
470
|
-
|
|
471
|
-
<dl class="details">
|
|
472
|
-
|
|
473
359
|
|
|
474
|
-
|
|
360
|
+
<h5 class="subsection-title">Properties:</h5>
|
|
475
361
|
|
|
476
|
-
|
|
362
|
+
|
|
477
363
|
|
|
478
|
-
<table class="props
|
|
479
|
-
|
|
364
|
+
<table class="props">
|
|
365
|
+
<thead>
|
|
480
366
|
<tr>
|
|
481
|
-
|
|
367
|
+
|
|
482
368
|
<th>Name</th>
|
|
483
|
-
|
|
369
|
+
|
|
484
370
|
|
|
485
|
-
|
|
371
|
+
<th>Type</th>
|
|
486
372
|
|
|
487
|
-
|
|
373
|
+
|
|
488
374
|
|
|
489
|
-
|
|
375
|
+
|
|
490
376
|
|
|
491
|
-
|
|
377
|
+
<th class="last">Description</th>
|
|
492
378
|
</tr>
|
|
493
|
-
|
|
379
|
+
</thead>
|
|
494
380
|
|
|
495
|
-
|
|
381
|
+
<tbody>
|
|
496
382
|
|
|
497
383
|
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
384
|
+
<tr>
|
|
385
|
+
|
|
386
|
+
<td class="name"><code>hub</code></td>
|
|
387
|
+
|
|
502
388
|
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
<span class="param-type">
|
|
389
|
+
<td class="type">
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
<span class="param-type">
|
|
393
|
+
<a href="Hub.html">Hub</a>
|
|
394
|
+
</span>
|
|
507
395
|
|
|
396
|
+
|
|
508
397
|
|
|
509
398
|
|
|
510
|
-
|
|
511
|
-
|
|
399
|
+
|
|
400
|
+
</td>
|
|
512
401
|
|
|
513
|
-
|
|
402
|
+
|
|
514
403
|
|
|
515
|
-
|
|
404
|
+
|
|
516
405
|
|
|
517
|
-
|
|
518
|
-
|
|
406
|
+
<td class="description last">
|
|
407
|
+
<p>The Hub the device is attached to.</p>
|
|
408
|
+
</td>
|
|
409
|
+
</tr>
|
|
519
410
|
|
|
520
|
-
|
|
521
|
-
|
|
411
|
+
|
|
412
|
+
</tbody>
|
|
522
413
|
</table>
|
|
523
|
-
</dl>
|
|
524
414
|
|
|
525
|
-
|
|
526
415
|
|
|
527
|
-
|
|
528
416
|
|
|
529
|
-
|
|
530
417
|
|
|
531
|
-
|
|
532
|
-
<dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
|
|
533
|
-
<dd class="inherited-from">
|
|
534
|
-
<ul class="dummy">
|
|
535
|
-
<li>
|
|
536
|
-
<a href="Device.html#isVirtualPort">Device#isVirtualPort</a>
|
|
537
|
-
</li>
|
|
538
|
-
</ul>
|
|
539
|
-
</dd>
|
|
540
|
-
|
|
418
|
+
<dl class="details">
|
|
541
419
|
|
|
542
|
-
|
|
420
|
+
|
|
543
421
|
|
|
544
|
-
|
|
422
|
+
|
|
545
423
|
|
|
546
|
-
|
|
424
|
+
|
|
425
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
426
|
+
<dd class="inherited-from">
|
|
427
|
+
<ul class="dummy">
|
|
428
|
+
<li>
|
|
429
|
+
<a href="Device.html#hub">Device#hub</a>
|
|
430
|
+
</li>
|
|
431
|
+
</ul>
|
|
432
|
+
</dd>
|
|
433
|
+
|
|
547
434
|
|
|
548
|
-
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
|
|
549
438
|
|
|
550
|
-
|
|
439
|
+
|
|
551
440
|
|
|
552
|
-
|
|
441
|
+
|
|
553
442
|
|
|
554
|
-
|
|
443
|
+
|
|
555
444
|
|
|
556
|
-
|
|
445
|
+
|
|
557
446
|
|
|
558
|
-
|
|
447
|
+
|
|
559
448
|
|
|
449
|
+
|
|
560
450
|
|
|
451
|
+
|
|
561
452
|
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
453
|
+
|
|
454
|
+
<dt class="tag-source">Source:</dt>
|
|
455
|
+
<dd class="tag-source">
|
|
456
|
+
<ul class="dummy">
|
|
457
|
+
<li>
|
|
458
|
+
<a href="devices_device.js.html">devices/device.js</a>, <a href="devices_device.js.html#line83">line 83</a>
|
|
459
|
+
</li>
|
|
460
|
+
</ul>
|
|
461
|
+
</dd>
|
|
462
|
+
|
|
573
463
|
|
|
574
|
-
|
|
464
|
+
|
|
575
465
|
|
|
576
|
-
|
|
466
|
+
|
|
577
467
|
|
|
578
|
-
|
|
468
|
+
|
|
579
469
|
</dl>
|
|
580
470
|
|
|
581
471
|
|
|
582
|
-
|
|
583
|
-
</dd>
|
|
584
472
|
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
|
|
585
477
|
|
|
586
478
|
|
|
587
|
-
<hr>
|
|
588
|
-
<dt class="name" id="mode">
|
|
589
|
-
<h4 id="mode"><span class="type-signature"><readonly> </span>mode<span class="type-signature"></span></h4>
|
|
590
479
|
|
|
591
|
-
|
|
592
|
-
</
|
|
593
|
-
|
|
594
|
-
|
|
480
|
+
<h4 class="name" id="isVirtualPort">
|
|
481
|
+
<span class="type-signature">(readonly) </span>isVirtualPort<span class="type-signature"></span>
|
|
482
|
+
</h4>
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
|
|
595
486
|
|
|
596
|
-
|
|
597
487
|
|
|
598
|
-
|
|
599
|
-
<dl class="details">
|
|
600
|
-
|
|
601
488
|
|
|
602
|
-
<h5 class="subsection-title">Properties:</h5>
|
|
603
489
|
|
|
604
|
-
|
|
490
|
+
<h5 class="subsection-title">Properties:</h5>
|
|
605
491
|
|
|
606
|
-
|
|
607
|
-
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
<table class="props">
|
|
495
|
+
<thead>
|
|
608
496
|
<tr>
|
|
609
|
-
|
|
497
|
+
|
|
610
498
|
<th>Name</th>
|
|
611
|
-
|
|
499
|
+
|
|
612
500
|
|
|
613
|
-
|
|
501
|
+
<th>Type</th>
|
|
614
502
|
|
|
615
|
-
|
|
503
|
+
|
|
616
504
|
|
|
617
|
-
|
|
505
|
+
|
|
618
506
|
|
|
619
|
-
|
|
507
|
+
<th class="last">Description</th>
|
|
620
508
|
</tr>
|
|
621
|
-
|
|
509
|
+
</thead>
|
|
622
510
|
|
|
623
|
-
|
|
511
|
+
<tbody>
|
|
624
512
|
|
|
625
513
|
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
514
|
+
<tr>
|
|
515
|
+
|
|
516
|
+
<td class="name"><code>isVirtualPort</code></td>
|
|
517
|
+
|
|
630
518
|
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
<span class="param-type">
|
|
519
|
+
<td class="type">
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
<span class="param-type">
|
|
523
|
+
boolean
|
|
524
|
+
</span>
|
|
635
525
|
|
|
526
|
+
|
|
636
527
|
|
|
637
528
|
|
|
638
|
-
|
|
639
|
-
|
|
529
|
+
|
|
530
|
+
</td>
|
|
640
531
|
|
|
641
|
-
|
|
532
|
+
|
|
642
533
|
|
|
643
|
-
|
|
534
|
+
|
|
644
535
|
|
|
645
|
-
|
|
646
|
-
|
|
536
|
+
<td class="description last">
|
|
537
|
+
<p>Is this device attached to a virtual port (ie. a combined device)</p>
|
|
538
|
+
</td>
|
|
539
|
+
</tr>
|
|
647
540
|
|
|
648
|
-
|
|
649
|
-
|
|
541
|
+
|
|
542
|
+
</tbody>
|
|
650
543
|
</table>
|
|
651
|
-
</dl>
|
|
652
544
|
|
|
653
|
-
|
|
654
545
|
|
|
655
|
-
|
|
656
546
|
|
|
657
|
-
|
|
658
547
|
|
|
659
|
-
|
|
660
|
-
<dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
|
|
661
|
-
<dd class="inherited-from">
|
|
662
|
-
<ul class="dummy">
|
|
663
|
-
<li>
|
|
664
|
-
<a href="Device.html#mode">Device#mode</a>
|
|
665
|
-
</li>
|
|
666
|
-
</ul>
|
|
667
|
-
</dd>
|
|
668
|
-
|
|
548
|
+
<dl class="details">
|
|
669
549
|
|
|
670
|
-
|
|
550
|
+
|
|
671
551
|
|
|
672
|
-
|
|
552
|
+
|
|
673
553
|
|
|
674
|
-
|
|
554
|
+
|
|
555
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
556
|
+
<dd class="inherited-from">
|
|
557
|
+
<ul class="dummy">
|
|
558
|
+
<li>
|
|
559
|
+
<a href="Device.html#isVirtualPort">Device#isVirtualPort</a>
|
|
560
|
+
</li>
|
|
561
|
+
</ul>
|
|
562
|
+
</dd>
|
|
563
|
+
|
|
675
564
|
|
|
676
|
-
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
|
|
677
568
|
|
|
678
|
-
|
|
569
|
+
|
|
679
570
|
|
|
680
|
-
|
|
571
|
+
|
|
681
572
|
|
|
682
|
-
|
|
573
|
+
|
|
683
574
|
|
|
684
|
-
|
|
575
|
+
|
|
685
576
|
|
|
686
|
-
|
|
577
|
+
|
|
687
578
|
|
|
579
|
+
|
|
688
580
|
|
|
581
|
+
|
|
689
582
|
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
583
|
+
|
|
584
|
+
<dt class="tag-source">Source:</dt>
|
|
585
|
+
<dd class="tag-source">
|
|
586
|
+
<ul class="dummy">
|
|
587
|
+
<li>
|
|
588
|
+
<a href="devices_device.js.html">devices/device.js</a>, <a href="devices_device.js.html#line120">line 120</a>
|
|
589
|
+
</li>
|
|
590
|
+
</ul>
|
|
591
|
+
</dd>
|
|
592
|
+
|
|
701
593
|
|
|
702
|
-
|
|
594
|
+
|
|
703
595
|
|
|
704
|
-
|
|
596
|
+
|
|
705
597
|
|
|
706
|
-
|
|
598
|
+
|
|
707
599
|
</dl>
|
|
708
600
|
|
|
709
601
|
|
|
710
|
-
|
|
711
|
-
</dd>
|
|
712
602
|
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
|
|
713
607
|
|
|
714
608
|
|
|
715
|
-
<hr>
|
|
716
|
-
<dt class="name" id="portName">
|
|
717
|
-
<h4 id="portName"><span class="type-signature"><readonly> </span>portName<span class="type-signature"></span></h4>
|
|
718
609
|
|
|
719
|
-
|
|
720
|
-
</
|
|
721
|
-
|
|
722
|
-
|
|
610
|
+
<h4 class="name" id="mode">
|
|
611
|
+
<span class="type-signature">(readonly) </span>mode<span class="type-signature"></span>
|
|
612
|
+
</h4>
|
|
613
|
+
|
|
723
614
|
|
|
724
|
-
|
|
725
615
|
|
|
726
|
-
|
|
727
|
-
<dl class="details">
|
|
728
|
-
|
|
729
616
|
|
|
730
|
-
<h5 class="subsection-title">Properties:</h5>
|
|
731
617
|
|
|
732
|
-
<dl>
|
|
733
618
|
|
|
734
|
-
|
|
735
|
-
|
|
619
|
+
|
|
620
|
+
<h5 class="subsection-title">Properties:</h5>
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
<table class="props">
|
|
625
|
+
<thead>
|
|
736
626
|
<tr>
|
|
737
|
-
|
|
627
|
+
|
|
738
628
|
<th>Name</th>
|
|
739
|
-
|
|
629
|
+
|
|
740
630
|
|
|
741
|
-
|
|
631
|
+
<th>Type</th>
|
|
742
632
|
|
|
743
|
-
|
|
633
|
+
|
|
744
634
|
|
|
745
|
-
|
|
635
|
+
|
|
746
636
|
|
|
747
|
-
|
|
637
|
+
<th class="last">Description</th>
|
|
748
638
|
</tr>
|
|
749
|
-
|
|
639
|
+
</thead>
|
|
750
640
|
|
|
751
|
-
|
|
641
|
+
<tbody>
|
|
752
642
|
|
|
753
643
|
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
644
|
+
<tr>
|
|
645
|
+
|
|
646
|
+
<td class="name"><code>mode</code></td>
|
|
647
|
+
|
|
758
648
|
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
<span class="param-type">
|
|
649
|
+
<td class="type">
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
<span class="param-type">
|
|
653
|
+
number
|
|
654
|
+
</span>
|
|
763
655
|
|
|
656
|
+
|
|
764
657
|
|
|
765
658
|
|
|
766
|
-
|
|
767
|
-
|
|
659
|
+
|
|
660
|
+
</td>
|
|
768
661
|
|
|
769
|
-
|
|
662
|
+
|
|
770
663
|
|
|
771
|
-
|
|
664
|
+
|
|
772
665
|
|
|
773
|
-
|
|
774
|
-
|
|
666
|
+
<td class="description last">
|
|
667
|
+
<p>The mode the device is currently in</p>
|
|
668
|
+
</td>
|
|
669
|
+
</tr>
|
|
775
670
|
|
|
776
|
-
|
|
777
|
-
|
|
671
|
+
|
|
672
|
+
</tbody>
|
|
778
673
|
</table>
|
|
779
|
-
</dl>
|
|
780
674
|
|
|
781
|
-
|
|
782
675
|
|
|
783
|
-
|
|
784
676
|
|
|
785
|
-
|
|
786
677
|
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
<ul class="dummy">
|
|
791
|
-
<li>
|
|
792
|
-
<a href="Device.html#portName">Device#portName</a>
|
|
793
|
-
</li>
|
|
794
|
-
</ul>
|
|
795
|
-
</dd>
|
|
796
|
-
|
|
678
|
+
<dl class="details">
|
|
679
|
+
|
|
680
|
+
|
|
797
681
|
|
|
798
|
-
|
|
682
|
+
|
|
799
683
|
|
|
800
|
-
|
|
684
|
+
|
|
685
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
686
|
+
<dd class="inherited-from">
|
|
687
|
+
<ul class="dummy">
|
|
688
|
+
<li>
|
|
689
|
+
<a href="Device.html#mode">Device#mode</a>
|
|
690
|
+
</li>
|
|
691
|
+
</ul>
|
|
692
|
+
</dd>
|
|
693
|
+
|
|
801
694
|
|
|
802
|
-
|
|
695
|
+
|
|
803
696
|
|
|
804
|
-
|
|
697
|
+
|
|
805
698
|
|
|
806
|
-
|
|
699
|
+
|
|
807
700
|
|
|
808
|
-
|
|
701
|
+
|
|
809
702
|
|
|
810
|
-
|
|
703
|
+
|
|
811
704
|
|
|
812
|
-
|
|
705
|
+
|
|
813
706
|
|
|
814
|
-
|
|
707
|
+
|
|
815
708
|
|
|
709
|
+
|
|
816
710
|
|
|
711
|
+
|
|
817
712
|
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
713
|
+
|
|
714
|
+
<dt class="tag-source">Source:</dt>
|
|
715
|
+
<dd class="tag-source">
|
|
716
|
+
<ul class="dummy">
|
|
717
|
+
<li>
|
|
718
|
+
<a href="devices_device.js.html">devices/device.js</a>, <a href="devices_device.js.html#line110">line 110</a>
|
|
719
|
+
</li>
|
|
720
|
+
</ul>
|
|
721
|
+
</dd>
|
|
722
|
+
|
|
829
723
|
|
|
830
|
-
|
|
724
|
+
|
|
831
725
|
|
|
832
|
-
|
|
726
|
+
|
|
833
727
|
|
|
834
|
-
|
|
728
|
+
|
|
835
729
|
</dl>
|
|
836
730
|
|
|
837
731
|
|
|
838
|
-
|
|
839
|
-
</dd>
|
|
840
732
|
|
|
733
|
+
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
|
|
841
737
|
|
|
842
738
|
|
|
843
|
-
<hr>
|
|
844
|
-
<dt class="name" id="type">
|
|
845
|
-
<h4 id="type"><span class="type-signature"><readonly> </span>type<span class="type-signature"></span></h4>
|
|
846
739
|
|
|
847
|
-
|
|
848
|
-
</
|
|
849
|
-
|
|
850
|
-
|
|
740
|
+
<h4 class="name" id="portName">
|
|
741
|
+
<span class="type-signature">(readonly) </span>portName<span class="type-signature"></span>
|
|
742
|
+
</h4>
|
|
851
743
|
|
|
852
|
-
|
|
853
744
|
|
|
854
|
-
|
|
855
|
-
<dl class="details">
|
|
856
|
-
|
|
857
745
|
|
|
858
|
-
<h5 class="subsection-title">Properties:</h5>
|
|
859
746
|
|
|
860
|
-
<dl>
|
|
861
747
|
|
|
862
|
-
|
|
863
|
-
|
|
748
|
+
|
|
749
|
+
|
|
750
|
+
<h5 class="subsection-title">Properties:</h5>
|
|
751
|
+
|
|
752
|
+
|
|
753
|
+
|
|
754
|
+
<table class="props">
|
|
755
|
+
<thead>
|
|
864
756
|
<tr>
|
|
865
|
-
|
|
757
|
+
|
|
866
758
|
<th>Name</th>
|
|
867
|
-
|
|
759
|
+
|
|
868
760
|
|
|
869
|
-
|
|
761
|
+
<th>Type</th>
|
|
870
762
|
|
|
871
|
-
|
|
763
|
+
|
|
872
764
|
|
|
873
|
-
|
|
765
|
+
|
|
874
766
|
|
|
875
|
-
|
|
767
|
+
<th class="last">Description</th>
|
|
876
768
|
</tr>
|
|
877
|
-
|
|
769
|
+
</thead>
|
|
878
770
|
|
|
879
|
-
|
|
771
|
+
<tbody>
|
|
880
772
|
|
|
881
773
|
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
774
|
+
<tr>
|
|
775
|
+
|
|
776
|
+
<td class="name"><code>portName</code></td>
|
|
777
|
+
|
|
886
778
|
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
<span class="param-type">
|
|
779
|
+
<td class="type">
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
<span class="param-type">
|
|
783
|
+
string
|
|
784
|
+
</span>
|
|
891
785
|
|
|
786
|
+
|
|
892
787
|
|
|
893
788
|
|
|
894
|
-
|
|
895
|
-
|
|
789
|
+
|
|
790
|
+
</td>
|
|
896
791
|
|
|
897
|
-
|
|
792
|
+
|
|
898
793
|
|
|
899
|
-
|
|
794
|
+
|
|
900
795
|
|
|
901
|
-
|
|
902
|
-
|
|
796
|
+
<td class="description last">
|
|
797
|
+
<p>The port the device is attached to.</p>
|
|
798
|
+
</td>
|
|
799
|
+
</tr>
|
|
903
800
|
|
|
904
|
-
|
|
905
|
-
|
|
801
|
+
|
|
802
|
+
</tbody>
|
|
906
803
|
</table>
|
|
907
|
-
</dl>
|
|
908
804
|
|
|
909
|
-
|
|
910
805
|
|
|
911
|
-
|
|
912
806
|
|
|
913
|
-
|
|
914
807
|
|
|
915
|
-
|
|
916
|
-
<dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
|
|
917
|
-
<dd class="inherited-from">
|
|
918
|
-
<ul class="dummy">
|
|
919
|
-
<li>
|
|
920
|
-
<a href="Device.html#type">Device#type</a>
|
|
921
|
-
</li>
|
|
922
|
-
</ul>
|
|
923
|
-
</dd>
|
|
924
|
-
|
|
808
|
+
<dl class="details">
|
|
925
809
|
|
|
926
|
-
|
|
810
|
+
|
|
927
811
|
|
|
928
|
-
|
|
812
|
+
|
|
929
813
|
|
|
930
|
-
|
|
814
|
+
|
|
815
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
816
|
+
<dd class="inherited-from">
|
|
817
|
+
<ul class="dummy">
|
|
818
|
+
<li>
|
|
819
|
+
<a href="Device.html#portName">Device#portName</a>
|
|
820
|
+
</li>
|
|
821
|
+
</ul>
|
|
822
|
+
</dd>
|
|
823
|
+
|
|
931
824
|
|
|
932
|
-
|
|
825
|
+
|
|
933
826
|
|
|
934
|
-
|
|
827
|
+
|
|
935
828
|
|
|
936
|
-
|
|
829
|
+
|
|
937
830
|
|
|
938
|
-
|
|
831
|
+
|
|
939
832
|
|
|
940
|
-
|
|
833
|
+
|
|
941
834
|
|
|
942
|
-
|
|
835
|
+
|
|
943
836
|
|
|
837
|
+
|
|
944
838
|
|
|
839
|
+
|
|
945
840
|
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
841
|
+
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
<dt class="tag-source">Source:</dt>
|
|
845
|
+
<dd class="tag-source">
|
|
846
|
+
<ul class="dummy">
|
|
847
|
+
<li>
|
|
848
|
+
<a href="devices_device.js.html">devices/device.js</a>, <a href="devices_device.js.html#line93">line 93</a>
|
|
849
|
+
</li>
|
|
850
|
+
</ul>
|
|
851
|
+
</dd>
|
|
852
|
+
|
|
957
853
|
|
|
958
|
-
|
|
854
|
+
|
|
959
855
|
|
|
960
|
-
|
|
856
|
+
|
|
961
857
|
|
|
962
|
-
|
|
858
|
+
|
|
963
859
|
</dl>
|
|
964
860
|
|
|
965
861
|
|
|
966
|
-
|
|
967
|
-
</dd>
|
|
968
862
|
|
|
969
|
-
</dl>
|
|
970
|
-
|
|
971
863
|
|
|
972
|
-
|
|
973
|
-
<h3 class="subsection-title">Methods</h3>
|
|
974
864
|
|
|
975
|
-
|
|
865
|
+
|
|
866
|
+
|
|
867
|
+
|
|
976
868
|
|
|
977
|
-
<hr>
|
|
978
|
-
<dt>
|
|
979
|
-
<h4 class="name" id="brake"><span class="type-signature"></span>brake()</h4>
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
</dt>
|
|
983
|
-
<dd>
|
|
984
869
|
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
</div>
|
|
989
|
-
|
|
870
|
+
<h4 class="name" id="type">
|
|
871
|
+
<span class="type-signature">(readonly) </span>type<span class="type-signature"></span>
|
|
872
|
+
</h4>
|
|
990
873
|
|
|
991
|
-
|
|
992
874
|
|
|
993
|
-
|
|
994
875
|
|
|
995
|
-
|
|
996
|
-
|
|
997
876
|
|
|
998
|
-
|
|
999
|
-
<dl class="details">
|
|
1000
|
-
|
|
1001
877
|
|
|
1002
|
-
|
|
1003
878
|
|
|
1004
|
-
|
|
1005
879
|
|
|
1006
|
-
|
|
1007
|
-
<dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
|
|
1008
|
-
<dd class="inherited-from">
|
|
1009
|
-
<ul class="dummy">
|
|
1010
|
-
<li>
|
|
1011
|
-
<a href="BasicMotor.html#brake">BasicMotor#brake</a>
|
|
1012
|
-
</li>
|
|
1013
|
-
</ul>
|
|
1014
|
-
</dd>
|
|
1015
|
-
|
|
880
|
+
<h5 class="subsection-title">Properties:</h5>
|
|
1016
881
|
|
|
1017
|
-
|
|
882
|
+
|
|
1018
883
|
|
|
1019
|
-
|
|
884
|
+
<table class="props">
|
|
885
|
+
<thead>
|
|
886
|
+
<tr>
|
|
887
|
+
|
|
888
|
+
<th>Name</th>
|
|
889
|
+
|
|
890
|
+
|
|
891
|
+
<th>Type</th>
|
|
892
|
+
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
|
|
1020
896
|
|
|
897
|
+
<th class="last">Description</th>
|
|
898
|
+
</tr>
|
|
899
|
+
</thead>
|
|
900
|
+
|
|
901
|
+
<tbody>
|
|
1021
902
|
|
|
1022
903
|
|
|
904
|
+
<tr>
|
|
905
|
+
|
|
906
|
+
<td class="name"><code>type</code></td>
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
<td class="type">
|
|
910
|
+
|
|
911
|
+
|
|
912
|
+
<span class="param-type">
|
|
913
|
+
number
|
|
914
|
+
</span>
|
|
915
|
+
|
|
1023
916
|
|
|
1024
917
|
|
|
1025
|
-
|
|
1026
918
|
|
|
1027
|
-
|
|
919
|
+
|
|
920
|
+
</td>
|
|
1028
921
|
|
|
1029
|
-
|
|
922
|
+
|
|
1030
923
|
|
|
1031
|
-
|
|
924
|
+
|
|
925
|
+
|
|
926
|
+
<td class="description last">
|
|
927
|
+
<p>The type of the device</p>
|
|
928
|
+
</td>
|
|
929
|
+
</tr>
|
|
930
|
+
|
|
931
|
+
|
|
932
|
+
</tbody>
|
|
933
|
+
</table>
|
|
1032
934
|
|
|
1033
|
-
|
|
1034
935
|
|
|
1035
936
|
|
|
1036
937
|
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
<ul class="dummy">
|
|
1041
|
-
<li>
|
|
1042
|
-
<a href="devices_basicmotor.js.html">devices/basicmotor.js</a>,
|
|
1043
|
-
<a href="devices_basicmotor.js.html#sunlight-1-line-73">line 73</a>
|
|
1044
|
-
</li>
|
|
1045
|
-
</ul>
|
|
1046
|
-
</dd>
|
|
1047
|
-
|
|
938
|
+
<dl class="details">
|
|
939
|
+
|
|
940
|
+
|
|
1048
941
|
|
|
1049
|
-
|
|
942
|
+
|
|
943
|
+
|
|
944
|
+
|
|
945
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
946
|
+
<dd class="inherited-from">
|
|
947
|
+
<ul class="dummy">
|
|
948
|
+
<li>
|
|
949
|
+
<a href="Device.html#type">Device#type</a>
|
|
950
|
+
</li>
|
|
951
|
+
</ul>
|
|
952
|
+
</dd>
|
|
953
|
+
|
|
1050
954
|
|
|
1051
|
-
|
|
955
|
+
|
|
1052
956
|
|
|
1053
|
-
|
|
957
|
+
|
|
958
|
+
|
|
959
|
+
|
|
960
|
+
|
|
961
|
+
|
|
962
|
+
|
|
963
|
+
|
|
964
|
+
|
|
965
|
+
|
|
966
|
+
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
|
|
973
|
+
|
|
974
|
+
<dt class="tag-source">Source:</dt>
|
|
975
|
+
<dd class="tag-source">
|
|
976
|
+
<ul class="dummy">
|
|
977
|
+
<li>
|
|
978
|
+
<a href="devices_device.js.html">devices/device.js</a>, <a href="devices_device.js.html#line100">line 100</a>
|
|
979
|
+
</li>
|
|
980
|
+
</ul>
|
|
981
|
+
</dd>
|
|
982
|
+
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
|
|
1054
989
|
</dl>
|
|
1055
990
|
|
|
1056
991
|
|
|
1057
|
-
|
|
1058
992
|
|
|
1059
|
-
|
|
1060
993
|
|
|
1061
|
-
|
|
1062
994
|
|
|
1063
|
-
|
|
1064
995
|
|
|
996
|
+
|
|
997
|
+
|
|
1065
998
|
|
|
1066
999
|
|
|
1067
1000
|
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
<p>Resolved upon successful issuance of the command.</p>
|
|
1073
|
-
</div>
|
|
1001
|
+
<h3 class="subsection-title">Methods</h3>
|
|
1002
|
+
|
|
1003
|
+
|
|
1004
|
+
|
|
1074
1005
|
|
|
1075
1006
|
|
|
1007
|
+
|
|
1076
1008
|
|
|
1077
|
-
<
|
|
1078
|
-
<
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
<
|
|
1009
|
+
<span class='name-container'>
|
|
1010
|
+
<a class="link-icon" href="#brake">
|
|
1011
|
+
<svg height="20" width="20" style="fill: black;">
|
|
1012
|
+
<use xlink:href="#linkIcon"></use>
|
|
1013
|
+
</svg>
|
|
1014
|
+
</a>
|
|
1015
|
+
<h4 class="name" id="brake">
|
|
1016
|
+
<span class="type-signature"></span>brake<span class="signature">()</span><span class="type-signature"> → {Promise}</span>
|
|
1017
|
+
</h4>
|
|
1018
|
+
</span>
|
|
1019
|
+
|
|
1020
|
+
|
|
1021
|
+
|
|
1022
|
+
|
|
1023
|
+
|
|
1024
|
+
<div class="description">
|
|
1025
|
+
<p>Brake the motor.</p>
|
|
1026
|
+
</div>
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
|
|
1030
|
+
|
|
1031
|
+
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
<dl class="details">
|
|
1038
|
+
|
|
1039
|
+
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
|
+
|
|
1043
|
+
|
|
1044
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
1045
|
+
<dd class="inherited-from">
|
|
1046
|
+
<ul class="dummy">
|
|
1047
|
+
<li>
|
|
1048
|
+
<a href="BasicMotor.html#brake">BasicMotor#brake</a>
|
|
1049
|
+
</li>
|
|
1050
|
+
</ul>
|
|
1051
|
+
</dd>
|
|
1052
|
+
|
|
1053
|
+
|
|
1054
|
+
|
|
1055
|
+
|
|
1056
|
+
|
|
1057
|
+
|
|
1058
|
+
|
|
1059
|
+
|
|
1060
|
+
|
|
1061
|
+
|
|
1062
|
+
|
|
1063
|
+
|
|
1064
|
+
|
|
1065
|
+
|
|
1066
|
+
|
|
1084
1067
|
|
|
1068
|
+
|
|
1085
1069
|
|
|
1070
|
+
|
|
1086
1071
|
|
|
1072
|
+
|
|
1073
|
+
<dt class="tag-source">Source:</dt>
|
|
1074
|
+
<dd class="tag-source">
|
|
1075
|
+
<ul class="dummy">
|
|
1076
|
+
<li>
|
|
1077
|
+
<a href="devices_basicmotor.js.html">devices/basicmotor.js</a>, <a href="devices_basicmotor.js.html#line73">line 73</a>
|
|
1078
|
+
</li>
|
|
1079
|
+
</ul>
|
|
1087
1080
|
</dd>
|
|
1081
|
+
|
|
1082
|
+
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
|
|
1086
|
+
|
|
1087
|
+
|
|
1088
1088
|
</dl>
|
|
1089
1089
|
|
|
1090
1090
|
|
|
1091
|
-
|
|
1092
1091
|
|
|
1093
|
-
|
|
1094
|
-
</dd>
|
|
1095
1092
|
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
<hr>
|
|
1099
|
-
<dt>
|
|
1100
|
-
<h4 class="name" id="rampPower"><span class="type-signature"></span>rampPower(fromPower, toPower, time)</h4>
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
</dt>
|
|
1104
|
-
<dd>
|
|
1105
1093
|
|
|
1106
|
-
|
|
1107
|
-
<div class="description">
|
|
1108
|
-
<p>Ramp the motor power.</p>
|
|
1109
|
-
</div>
|
|
1110
|
-
|
|
1111
1094
|
|
|
1112
|
-
|
|
1113
1095
|
|
|
1114
|
-
|
|
1115
1096
|
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1097
|
+
|
|
1098
|
+
|
|
1099
|
+
|
|
1100
|
+
|
|
1101
|
+
|
|
1102
|
+
|
|
1103
|
+
|
|
1119
1104
|
|
|
1120
1105
|
|
|
1121
|
-
|
|
1122
|
-
|
|
1106
|
+
|
|
1107
|
+
|
|
1108
|
+
|
|
1109
|
+
<span class='name-container'>
|
|
1110
|
+
<a class="link-icon" href="#rampPower">
|
|
1111
|
+
<svg height="20" width="20" style="fill: black;">
|
|
1112
|
+
<use xlink:href="#linkIcon"></use>
|
|
1113
|
+
</svg>
|
|
1114
|
+
</a>
|
|
1115
|
+
<h4 class="name" id="rampPower">
|
|
1116
|
+
<span class="type-signature"></span>rampPower<span class="signature">(fromPower, toPower, time)</span><span class="type-signature"> → {Promise}</span>
|
|
1117
|
+
</h4>
|
|
1118
|
+
</span>
|
|
1119
|
+
|
|
1120
|
+
|
|
1121
|
+
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
<div class="description">
|
|
1125
|
+
<p>Ramp the motor power.</p>
|
|
1126
|
+
</div>
|
|
1127
|
+
|
|
1128
|
+
|
|
1129
|
+
|
|
1130
|
+
|
|
1131
|
+
|
|
1132
|
+
|
|
1133
|
+
|
|
1134
|
+
<h5>Parameters:</h5>
|
|
1135
|
+
|
|
1136
|
+
|
|
1137
|
+
<table class="params">
|
|
1138
|
+
<thead>
|
|
1123
1139
|
<tr>
|
|
1124
|
-
|
|
1140
|
+
|
|
1125
1141
|
<th>Name</th>
|
|
1126
|
-
|
|
1142
|
+
|
|
1127
1143
|
|
|
1128
|
-
|
|
1144
|
+
<th>Type</th>
|
|
1129
1145
|
|
|
1130
|
-
|
|
1146
|
+
|
|
1131
1147
|
|
|
1132
|
-
|
|
1148
|
+
|
|
1133
1149
|
|
|
1134
|
-
|
|
1150
|
+
<th class="last">Description</th>
|
|
1135
1151
|
</tr>
|
|
1136
|
-
|
|
1152
|
+
</thead>
|
|
1137
1153
|
|
|
1138
|
-
|
|
1154
|
+
<tbody>
|
|
1139
1155
|
|
|
1156
|
+
<tr>
|
|
1157
|
+
|
|
1158
|
+
<td class="name"><code>fromPower</code></td>
|
|
1159
|
+
|
|
1140
1160
|
|
|
1141
|
-
<
|
|
1142
|
-
|
|
1143
|
-
<td class="name"><code>fromPower</code></td>
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
<td class="type">
|
|
1161
|
+
<td class="type">
|
|
1162
|
+
|
|
1147
1163
|
|
|
1148
|
-
|
|
1149
|
-
|
|
1164
|
+
<span class="param-type">
|
|
1165
|
+
number
|
|
1166
|
+
</span>
|
|
1150
1167
|
|
|
1168
|
+
|
|
1151
1169
|
|
|
1152
1170
|
|
|
1153
|
-
|
|
1154
|
-
|
|
1171
|
+
|
|
1172
|
+
</td>
|
|
1155
1173
|
|
|
1156
|
-
|
|
1174
|
+
|
|
1157
1175
|
|
|
1158
|
-
|
|
1176
|
+
|
|
1159
1177
|
|
|
1160
|
-
|
|
1161
|
-
|
|
1178
|
+
<td class="description last">
|
|
1179
|
+
<p>For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.</p>
|
|
1180
|
+
|
|
1181
|
+
</td>
|
|
1182
|
+
</tr>
|
|
1162
1183
|
|
|
1163
1184
|
|
|
1185
|
+
<tr>
|
|
1186
|
+
|
|
1187
|
+
<td class="name"><code>toPower</code></td>
|
|
1188
|
+
|
|
1164
1189
|
|
|
1165
|
-
<
|
|
1166
|
-
|
|
1167
|
-
<td class="name"><code>toPower</code></td>
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
<td class="type">
|
|
1190
|
+
<td class="type">
|
|
1191
|
+
|
|
1171
1192
|
|
|
1172
|
-
|
|
1173
|
-
|
|
1193
|
+
<span class="param-type">
|
|
1194
|
+
number
|
|
1195
|
+
</span>
|
|
1174
1196
|
|
|
1197
|
+
|
|
1175
1198
|
|
|
1176
1199
|
|
|
1177
|
-
|
|
1178
|
-
|
|
1200
|
+
|
|
1201
|
+
</td>
|
|
1179
1202
|
|
|
1180
|
-
|
|
1203
|
+
|
|
1181
1204
|
|
|
1182
|
-
|
|
1205
|
+
|
|
1183
1206
|
|
|
1184
|
-
|
|
1185
|
-
|
|
1207
|
+
<td class="description last">
|
|
1208
|
+
<p>For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.</p>
|
|
1209
|
+
|
|
1210
|
+
</td>
|
|
1211
|
+
</tr>
|
|
1186
1212
|
|
|
1187
1213
|
|
|
1214
|
+
<tr>
|
|
1215
|
+
|
|
1216
|
+
<td class="name"><code>time</code></td>
|
|
1217
|
+
|
|
1188
1218
|
|
|
1189
|
-
<
|
|
1190
|
-
|
|
1191
|
-
<td class="name"><code>time</code></td>
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
<td class="type">
|
|
1219
|
+
<td class="type">
|
|
1220
|
+
|
|
1195
1221
|
|
|
1196
|
-
|
|
1197
|
-
|
|
1222
|
+
<span class="param-type">
|
|
1223
|
+
number
|
|
1224
|
+
</span>
|
|
1198
1225
|
|
|
1226
|
+
|
|
1199
1227
|
|
|
1200
1228
|
|
|
1201
|
-
|
|
1202
|
-
|
|
1229
|
+
|
|
1230
|
+
</td>
|
|
1203
1231
|
|
|
1204
|
-
|
|
1232
|
+
|
|
1205
1233
|
|
|
1206
|
-
|
|
1234
|
+
|
|
1207
1235
|
|
|
1208
|
-
|
|
1209
|
-
|
|
1236
|
+
<td class="description last">
|
|
1237
|
+
<p>How long the ramp should last (in milliseconds).</p>
|
|
1238
|
+
|
|
1239
|
+
</td>
|
|
1240
|
+
</tr>
|
|
1210
1241
|
|
|
1211
1242
|
|
|
1212
|
-
|
|
1243
|
+
</tbody>
|
|
1213
1244
|
</table>
|
|
1214
1245
|
|
|
1215
|
-
|
|
1216
1246
|
|
|
1217
|
-
|
|
1218
|
-
<dl class="details">
|
|
1219
|
-
|
|
1220
1247
|
|
|
1221
|
-
|
|
1222
1248
|
|
|
1223
|
-
|
|
1224
1249
|
|
|
1225
|
-
|
|
1226
|
-
<dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
|
|
1227
|
-
<dd class="inherited-from">
|
|
1228
|
-
<ul class="dummy">
|
|
1229
|
-
<li>
|
|
1230
|
-
<a href="BasicMotor.html#rampPower">BasicMotor#rampPower</a>
|
|
1231
|
-
</li>
|
|
1232
|
-
</ul>
|
|
1233
|
-
</dd>
|
|
1234
|
-
|
|
1250
|
+
<dl class="details">
|
|
1235
1251
|
|
|
1236
|
-
|
|
1252
|
+
|
|
1237
1253
|
|
|
1238
|
-
|
|
1254
|
+
|
|
1239
1255
|
|
|
1240
|
-
|
|
1256
|
+
|
|
1257
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
1258
|
+
<dd class="inherited-from">
|
|
1259
|
+
<ul class="dummy">
|
|
1260
|
+
<li>
|
|
1261
|
+
<a href="BasicMotor.html#rampPower">BasicMotor#rampPower</a>
|
|
1262
|
+
</li>
|
|
1263
|
+
</ul>
|
|
1264
|
+
</dd>
|
|
1265
|
+
|
|
1241
1266
|
|
|
1242
|
-
|
|
1267
|
+
|
|
1268
|
+
|
|
1269
|
+
|
|
1243
1270
|
|
|
1244
|
-
|
|
1271
|
+
|
|
1245
1272
|
|
|
1246
|
-
|
|
1273
|
+
|
|
1247
1274
|
|
|
1248
|
-
|
|
1275
|
+
|
|
1249
1276
|
|
|
1250
|
-
|
|
1277
|
+
|
|
1251
1278
|
|
|
1252
|
-
|
|
1279
|
+
|
|
1253
1280
|
|
|
1281
|
+
|
|
1254
1282
|
|
|
1283
|
+
|
|
1255
1284
|
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1285
|
+
|
|
1286
|
+
<dt class="tag-source">Source:</dt>
|
|
1287
|
+
<dd class="tag-source">
|
|
1288
|
+
<ul class="dummy">
|
|
1289
|
+
<li>
|
|
1290
|
+
<a href="devices_basicmotor.js.html">devices/basicmotor.js</a>, <a href="devices_basicmotor.js.html#line46">line 46</a>
|
|
1291
|
+
</li>
|
|
1292
|
+
</ul>
|
|
1293
|
+
</dd>
|
|
1294
|
+
|
|
1267
1295
|
|
|
1268
|
-
|
|
1296
|
+
|
|
1269
1297
|
|
|
1270
|
-
|
|
1298
|
+
|
|
1271
1299
|
|
|
1272
|
-
|
|
1300
|
+
|
|
1273
1301
|
</dl>
|
|
1274
1302
|
|
|
1275
1303
|
|
|
1276
|
-
|
|
1277
1304
|
|
|
1278
|
-
|
|
1279
1305
|
|
|
1280
|
-
|
|
1281
1306
|
|
|
1282
|
-
|
|
1283
1307
|
|
|
1284
|
-
|
|
1285
1308
|
|
|
1286
|
-
|
|
1287
|
-
<h5>Returns:</h5>
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
<div class="param-desc">
|
|
1291
|
-
<p>Resolved upon successful completion of command.</p>
|
|
1292
|
-
</div>
|
|
1293
1309
|
|
|
1294
1310
|
|
|
1295
1311
|
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1312
|
+
|
|
1313
|
+
|
|
1314
|
+
|
|
1315
|
+
|
|
1316
|
+
|
|
1301
1317
|
|
|
1302
|
-
<span class="param-type">Promise</span>
|
|
1303
1318
|
|
|
1304
1319
|
|
|
1320
|
+
|
|
1305
1321
|
|
|
1306
|
-
|
|
1307
|
-
|
|
1322
|
+
<span class='name-container'>
|
|
1323
|
+
<a class="link-icon" href="#rotateByDegrees">
|
|
1324
|
+
<svg height="20" width="20" style="fill: black;">
|
|
1325
|
+
<use xlink:href="#linkIcon"></use>
|
|
1326
|
+
</svg>
|
|
1327
|
+
</a>
|
|
1328
|
+
<h4 class="name" id="rotateByDegrees">
|
|
1329
|
+
<span class="type-signature"></span>rotateByDegrees<span class="signature">(degrees, speed<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {Promise}</span>
|
|
1330
|
+
</h4>
|
|
1331
|
+
</span>
|
|
1308
1332
|
|
|
1333
|
+
|
|
1309
1334
|
|
|
1310
|
-
|
|
1311
1335
|
|
|
1312
|
-
|
|
1313
|
-
</dd>
|
|
1314
1336
|
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
<h4 class="name" id="rotateByDegrees"><span class="type-signature"></span>rotateByDegrees(degrees [, speed])</h4>
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
</dt>
|
|
1323
|
-
<dd>
|
|
1337
|
+
<div class="description">
|
|
1338
|
+
<p>Rotate a motor by a given amount of degrees.</p>
|
|
1339
|
+
</div>
|
|
1340
|
+
|
|
1324
1341
|
|
|
1325
|
-
|
|
1326
|
-
<div class="description">
|
|
1327
|
-
<p>Rotate a motor by a given amount of degrees.</p>
|
|
1328
|
-
</div>
|
|
1329
|
-
|
|
1330
1342
|
|
|
1331
|
-
|
|
1332
1343
|
|
|
1333
|
-
|
|
1334
1344
|
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
<h5>Parameters:</h5>
|
|
1338
|
-
|
|
1339
1345
|
|
|
1340
|
-
|
|
1341
|
-
|
|
1346
|
+
|
|
1347
|
+
<h5>Parameters:</h5>
|
|
1348
|
+
|
|
1349
|
+
|
|
1350
|
+
<table class="params">
|
|
1351
|
+
<thead>
|
|
1342
1352
|
<tr>
|
|
1343
|
-
|
|
1353
|
+
|
|
1344
1354
|
<th>Name</th>
|
|
1345
|
-
|
|
1355
|
+
|
|
1346
1356
|
|
|
1347
|
-
|
|
1357
|
+
<th>Type</th>
|
|
1348
1358
|
|
|
1349
|
-
|
|
1350
|
-
<th>
|
|
1351
|
-
|
|
1359
|
+
|
|
1360
|
+
<th>Attributes</th>
|
|
1361
|
+
|
|
1352
1362
|
|
|
1353
|
-
|
|
1363
|
+
|
|
1354
1364
|
<th>Default</th>
|
|
1355
|
-
|
|
1365
|
+
|
|
1356
1366
|
|
|
1357
|
-
|
|
1367
|
+
<th class="last">Description</th>
|
|
1358
1368
|
</tr>
|
|
1359
|
-
|
|
1369
|
+
</thead>
|
|
1360
1370
|
|
|
1361
|
-
|
|
1371
|
+
<tbody>
|
|
1362
1372
|
|
|
1373
|
+
<tr>
|
|
1374
|
+
|
|
1375
|
+
<td class="name"><code>degrees</code></td>
|
|
1376
|
+
|
|
1363
1377
|
|
|
1364
|
-
<
|
|
1365
|
-
|
|
1366
|
-
<td class="name"><code>degrees</code></td>
|
|
1378
|
+
<td class="type">
|
|
1379
|
+
|
|
1367
1380
|
|
|
1381
|
+
<span class="param-type">
|
|
1382
|
+
number
|
|
1383
|
+
</span>
|
|
1368
1384
|
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
<span class="param-type">number</span>
|
|
1385
|
+
|
|
1373
1386
|
|
|
1374
1387
|
|
|
1388
|
+
|
|
1389
|
+
</td>
|
|
1375
1390
|
|
|
1391
|
+
|
|
1392
|
+
<td class="attributes">
|
|
1376
1393
|
|
|
1377
|
-
</td>
|
|
1378
1394
|
|
|
1379
1395
|
|
|
1380
|
-
<td class="attributes">
|
|
1381
|
-
|
|
1382
1396
|
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
</td>
|
|
1387
1397
|
|
|
1398
|
+
</td>
|
|
1399
|
+
|
|
1388
1400
|
|
|
1401
|
+
|
|
1402
|
+
<td class="default">
|
|
1389
1403
|
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
</td>
|
|
1393
|
-
|
|
1404
|
+
</td>
|
|
1405
|
+
|
|
1394
1406
|
|
|
1395
|
-
|
|
1396
|
-
|
|
1407
|
+
<td class="description last">
|
|
1408
|
+
<p>How much the motor should be rotated (in degrees).</p>
|
|
1409
|
+
|
|
1410
|
+
</td>
|
|
1411
|
+
</tr>
|
|
1397
1412
|
|
|
1398
1413
|
|
|
1414
|
+
<tr>
|
|
1415
|
+
|
|
1416
|
+
<td class="name"><code>speed</code></td>
|
|
1417
|
+
|
|
1399
1418
|
|
|
1400
|
-
<
|
|
1401
|
-
|
|
1402
|
-
<td class="name"><code>speed</code></td>
|
|
1419
|
+
<td class="type">
|
|
1420
|
+
|
|
1403
1421
|
|
|
1422
|
+
<span class="param-type">
|
|
1423
|
+
number
|
|
1424
|
+
</span>
|
|
1404
1425
|
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
<span class="param-type">number</span>
|
|
1426
|
+
|
|
1409
1427
|
|
|
1410
1428
|
|
|
1429
|
+
|
|
1430
|
+
</td>
|
|
1411
1431
|
|
|
1432
|
+
|
|
1433
|
+
<td class="attributes">
|
|
1412
1434
|
|
|
1413
|
-
|
|
1414
|
-
|
|
1435
|
+
<optional><br>
|
|
1415
1436
|
|
|
1416
|
-
<td class="attributes">
|
|
1417
|
-
|
|
1418
|
-
<optional><br>
|
|
1419
|
-
|
|
1420
1437
|
|
|
1421
|
-
|
|
1438
|
+
|
|
1422
1439
|
|
|
1423
|
-
|
|
1424
|
-
</td>
|
|
1425
1440
|
|
|
1441
|
+
</td>
|
|
1442
|
+
|
|
1426
1443
|
|
|
1444
|
+
|
|
1445
|
+
<td class="default">
|
|
1427
1446
|
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
100
|
|
1431
|
-
|
|
1432
|
-
</td>
|
|
1447
|
+
100
|
|
1433
1448
|
|
|
1449
|
+
</td>
|
|
1450
|
+
|
|
1434
1451
|
|
|
1435
|
-
|
|
1436
|
-
|
|
1452
|
+
<td class="description last">
|
|
1453
|
+
<p>For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.</p>
|
|
1454
|
+
|
|
1455
|
+
</td>
|
|
1456
|
+
</tr>
|
|
1437
1457
|
|
|
1438
1458
|
|
|
1439
|
-
|
|
1459
|
+
</tbody>
|
|
1440
1460
|
</table>
|
|
1441
1461
|
|
|
1442
|
-
|
|
1443
1462
|
|
|
1444
|
-
|
|
1445
|
-
<dl class="details">
|
|
1446
|
-
|
|
1447
1463
|
|
|
1448
|
-
|
|
1449
1464
|
|
|
1450
|
-
|
|
1451
1465
|
|
|
1452
|
-
|
|
1466
|
+
<dl class="details">
|
|
1453
1467
|
|
|
1454
|
-
|
|
1468
|
+
|
|
1455
1469
|
|
|
1456
|
-
|
|
1470
|
+
|
|
1457
1471
|
|
|
1458
|
-
|
|
1472
|
+
|
|
1459
1473
|
|
|
1460
|
-
|
|
1474
|
+
|
|
1475
|
+
|
|
1476
|
+
|
|
1461
1477
|
|
|
1462
|
-
|
|
1478
|
+
|
|
1463
1479
|
|
|
1464
|
-
|
|
1480
|
+
|
|
1465
1481
|
|
|
1466
|
-
|
|
1482
|
+
|
|
1467
1483
|
|
|
1468
|
-
|
|
1484
|
+
|
|
1469
1485
|
|
|
1470
|
-
|
|
1486
|
+
|
|
1471
1487
|
|
|
1488
|
+
|
|
1472
1489
|
|
|
1490
|
+
|
|
1473
1491
|
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1492
|
+
|
|
1493
|
+
<dt class="tag-source">Source:</dt>
|
|
1494
|
+
<dd class="tag-source">
|
|
1495
|
+
<ul class="dummy">
|
|
1496
|
+
<li>
|
|
1497
|
+
<a href="devices_tachomotor.js.html">devices/tachomotor.js</a>, <a href="devices_tachomotor.js.html#line138">line 138</a>
|
|
1498
|
+
</li>
|
|
1499
|
+
</ul>
|
|
1500
|
+
</dd>
|
|
1501
|
+
|
|
1485
1502
|
|
|
1486
|
-
|
|
1503
|
+
|
|
1487
1504
|
|
|
1488
|
-
|
|
1505
|
+
|
|
1489
1506
|
|
|
1490
|
-
|
|
1507
|
+
|
|
1491
1508
|
</dl>
|
|
1492
1509
|
|
|
1493
1510
|
|
|
1494
|
-
|
|
1495
1511
|
|
|
1496
|
-
|
|
1497
1512
|
|
|
1498
|
-
|
|
1499
1513
|
|
|
1500
|
-
|
|
1501
1514
|
|
|
1502
|
-
|
|
1503
1515
|
|
|
1504
|
-
|
|
1505
|
-
<h5>Returns:</h5>
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
<div class="param-desc">
|
|
1509
|
-
<p>Resolved upon successful completion of command (ie. once the motor is finished).</p>
|
|
1510
|
-
</div>
|
|
1511
1516
|
|
|
1512
1517
|
|
|
1513
1518
|
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
+
|
|
1520
|
+
|
|
1521
|
+
|
|
1522
|
+
|
|
1523
|
+
|
|
1519
1524
|
|
|
1520
|
-
<span class="param-type">Promise</span>
|
|
1521
1525
|
|
|
1522
1526
|
|
|
1527
|
+
|
|
1523
1528
|
|
|
1524
|
-
|
|
1525
|
-
|
|
1529
|
+
<span class='name-container'>
|
|
1530
|
+
<a class="link-icon" href="#setAccelerationTime">
|
|
1531
|
+
<svg height="20" width="20" style="fill: black;">
|
|
1532
|
+
<use xlink:href="#linkIcon"></use>
|
|
1533
|
+
</svg>
|
|
1534
|
+
</a>
|
|
1535
|
+
<h4 class="name" id="setAccelerationTime">
|
|
1536
|
+
<span class="type-signature"></span>setAccelerationTime<span class="signature">(time)</span><span class="type-signature"> → {Promise}</span>
|
|
1537
|
+
</h4>
|
|
1538
|
+
</span>
|
|
1526
1539
|
|
|
1540
|
+
|
|
1527
1541
|
|
|
1528
|
-
|
|
1529
1542
|
|
|
1530
|
-
|
|
1531
|
-
</dd>
|
|
1532
1543
|
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
<dt>
|
|
1537
|
-
<h4 class="name" id="setAccelerationTime"><span class="type-signature"></span>setAccelerationTime(time)</h4>
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
</dt>
|
|
1541
|
-
<dd>
|
|
1544
|
+
<div class="description">
|
|
1545
|
+
<p>Set the global acceleration time</p>
|
|
1546
|
+
</div>
|
|
1542
1547
|
|
|
1543
|
-
|
|
1544
|
-
<div class="description">
|
|
1545
|
-
<p>Set the global acceleration time</p>
|
|
1546
|
-
</div>
|
|
1547
|
-
|
|
1548
1548
|
|
|
1549
|
-
|
|
1550
1549
|
|
|
1551
|
-
|
|
1552
1550
|
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
<h5>Parameters:</h5>
|
|
1556
|
-
|
|
1557
1551
|
|
|
1558
|
-
|
|
1559
|
-
|
|
1552
|
+
|
|
1553
|
+
|
|
1554
|
+
<h5>Parameters:</h5>
|
|
1555
|
+
|
|
1556
|
+
|
|
1557
|
+
<table class="params">
|
|
1558
|
+
<thead>
|
|
1560
1559
|
<tr>
|
|
1561
|
-
|
|
1560
|
+
|
|
1562
1561
|
<th>Name</th>
|
|
1563
|
-
|
|
1562
|
+
|
|
1564
1563
|
|
|
1565
|
-
|
|
1564
|
+
<th>Type</th>
|
|
1566
1565
|
|
|
1567
|
-
|
|
1566
|
+
|
|
1568
1567
|
|
|
1569
|
-
|
|
1568
|
+
|
|
1570
1569
|
|
|
1571
|
-
|
|
1570
|
+
<th class="last">Description</th>
|
|
1572
1571
|
</tr>
|
|
1573
|
-
|
|
1572
|
+
</thead>
|
|
1574
1573
|
|
|
1575
|
-
|
|
1574
|
+
<tbody>
|
|
1576
1575
|
|
|
1576
|
+
<tr>
|
|
1577
|
+
|
|
1578
|
+
<td class="name"><code>time</code></td>
|
|
1579
|
+
|
|
1577
1580
|
|
|
1578
|
-
<
|
|
1579
|
-
|
|
1580
|
-
<td class="name"><code>time</code></td>
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
<td class="type">
|
|
1581
|
+
<td class="type">
|
|
1582
|
+
|
|
1584
1583
|
|
|
1585
|
-
|
|
1586
|
-
|
|
1584
|
+
<span class="param-type">
|
|
1585
|
+
number
|
|
1586
|
+
</span>
|
|
1587
1587
|
|
|
1588
|
+
|
|
1588
1589
|
|
|
1589
1590
|
|
|
1590
|
-
|
|
1591
|
-
|
|
1591
|
+
|
|
1592
|
+
</td>
|
|
1592
1593
|
|
|
1593
|
-
|
|
1594
|
+
|
|
1594
1595
|
|
|
1595
|
-
|
|
1596
|
+
|
|
1596
1597
|
|
|
1597
|
-
|
|
1598
|
-
|
|
1598
|
+
<td class="description last">
|
|
1599
|
+
<p>How long acceleration should last (in milliseconds).</p>
|
|
1600
|
+
|
|
1601
|
+
</td>
|
|
1602
|
+
</tr>
|
|
1599
1603
|
|
|
1600
1604
|
|
|
1601
|
-
|
|
1605
|
+
</tbody>
|
|
1602
1606
|
</table>
|
|
1603
1607
|
|
|
1604
|
-
|
|
1605
1608
|
|
|
1606
|
-
|
|
1607
|
-
<dl class="details">
|
|
1608
|
-
|
|
1609
1609
|
|
|
1610
|
-
|
|
1611
1610
|
|
|
1612
|
-
|
|
1613
1611
|
|
|
1614
|
-
|
|
1612
|
+
<dl class="details">
|
|
1615
1613
|
|
|
1616
|
-
|
|
1614
|
+
|
|
1617
1615
|
|
|
1618
|
-
|
|
1616
|
+
|
|
1619
1617
|
|
|
1620
|
-
|
|
1618
|
+
|
|
1621
1619
|
|
|
1622
|
-
|
|
1620
|
+
|
|
1623
1621
|
|
|
1624
|
-
|
|
1622
|
+
|
|
1625
1623
|
|
|
1626
|
-
|
|
1624
|
+
|
|
1627
1625
|
|
|
1628
|
-
|
|
1626
|
+
|
|
1629
1627
|
|
|
1630
|
-
|
|
1628
|
+
|
|
1631
1629
|
|
|
1632
|
-
|
|
1630
|
+
|
|
1633
1631
|
|
|
1632
|
+
|
|
1634
1633
|
|
|
1634
|
+
|
|
1635
1635
|
|
|
1636
|
-
|
|
1637
|
-
<dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
|
|
1638
|
-
<dd class="tag-source">
|
|
1639
|
-
<ul class="dummy">
|
|
1640
|
-
<li>
|
|
1641
|
-
<a href="devices_tachomotor.js.html">devices/tachomotor.js</a>,
|
|
1642
|
-
<a href="devices_tachomotor.js.html#sunlight-1-line-73">line 73</a>
|
|
1643
|
-
</li>
|
|
1644
|
-
</ul>
|
|
1645
|
-
</dd>
|
|
1646
|
-
|
|
1636
|
+
|
|
1647
1637
|
|
|
1648
|
-
|
|
1638
|
+
|
|
1639
|
+
<dt class="tag-source">Source:</dt>
|
|
1640
|
+
<dd class="tag-source">
|
|
1641
|
+
<ul class="dummy">
|
|
1642
|
+
<li>
|
|
1643
|
+
<a href="devices_tachomotor.js.html">devices/tachomotor.js</a>, <a href="devices_tachomotor.js.html#line73">line 73</a>
|
|
1644
|
+
</li>
|
|
1645
|
+
</ul>
|
|
1646
|
+
</dd>
|
|
1647
|
+
|
|
1649
1648
|
|
|
1650
|
-
|
|
1649
|
+
|
|
1651
1650
|
|
|
1652
|
-
|
|
1653
|
-
</dl>
|
|
1651
|
+
|
|
1654
1652
|
|
|
1653
|
+
|
|
1654
|
+
</dl>
|
|
1655
1655
|
|
|
1656
|
-
|
|
1657
1656
|
|
|
1658
|
-
|
|
1659
1657
|
|
|
1660
|
-
|
|
1661
1658
|
|
|
1662
|
-
|
|
1663
1659
|
|
|
1664
|
-
|
|
1665
1660
|
|
|
1666
|
-
|
|
1667
|
-
<h5>Returns:</h5>
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
<div class="param-desc">
|
|
1671
|
-
<p>Resolved upon successful completion of command (ie. once the motor is finished).</p>
|
|
1672
|
-
</div>
|
|
1673
1661
|
|
|
1674
1662
|
|
|
1675
1663
|
|
|
1676
|
-
<dl>
|
|
1677
|
-
<dt>
|
|
1678
|
-
Type
|
|
1679
|
-
</dt>
|
|
1680
|
-
<dd>
|
|
1681
|
-
|
|
1682
|
-
<span class="param-type">Promise</span>
|
|
1683
1664
|
|
|
1684
1665
|
|
|
1685
1666
|
|
|
1686
|
-
</dd>
|
|
1687
|
-
</dl>
|
|
1688
1667
|
|
|
1689
1668
|
|
|
1669
|
+
|
|
1690
1670
|
|
|
1691
1671
|
|
|
1692
|
-
|
|
1693
|
-
</dd>
|
|
1694
1672
|
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
<hr>
|
|
1698
|
-
<dt>
|
|
1699
|
-
<h4 class="name" id="setBrakingStyle"><span class="type-signature"></span>setBrakingStyle(style)</h4>
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
</dt>
|
|
1703
|
-
<dd>
|
|
1673
|
+
|
|
1704
1674
|
|
|
1705
|
-
|
|
1706
|
-
<
|
|
1707
|
-
|
|
1675
|
+
<span class='name-container'>
|
|
1676
|
+
<a class="link-icon" href="#setBrakingStyle">
|
|
1677
|
+
<svg height="20" width="20" style="fill: black;">
|
|
1678
|
+
<use xlink:href="#linkIcon"></use>
|
|
1679
|
+
</svg>
|
|
1680
|
+
</a>
|
|
1681
|
+
<h4 class="name" id="setBrakingStyle">
|
|
1682
|
+
<span class="type-signature"></span>setBrakingStyle<span class="signature">(style)</span><span class="type-signature"></span>
|
|
1683
|
+
</h4>
|
|
1684
|
+
</span>
|
|
1685
|
+
|
|
1686
|
+
|
|
1687
|
+
|
|
1688
|
+
|
|
1689
|
+
|
|
1690
|
+
<div class="description">
|
|
1691
|
+
<p>Set the braking style of the motor.</p>
|
|
1708
1692
|
<p>Note: This applies to setSpeed, rotateByDegrees, and gotoAngle.</p>
|
|
1709
|
-
|
|
1710
|
-
|
|
1693
|
+
</div>
|
|
1694
|
+
|
|
1711
1695
|
|
|
1712
|
-
|
|
1713
1696
|
|
|
1714
|
-
|
|
1715
1697
|
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
<h5>Parameters:</h5>
|
|
1719
|
-
|
|
1720
1698
|
|
|
1721
|
-
|
|
1722
|
-
|
|
1699
|
+
|
|
1700
|
+
|
|
1701
|
+
<h5>Parameters:</h5>
|
|
1702
|
+
|
|
1703
|
+
|
|
1704
|
+
<table class="params">
|
|
1705
|
+
<thead>
|
|
1723
1706
|
<tr>
|
|
1724
|
-
|
|
1707
|
+
|
|
1725
1708
|
<th>Name</th>
|
|
1726
|
-
|
|
1709
|
+
|
|
1727
1710
|
|
|
1728
|
-
|
|
1711
|
+
<th>Type</th>
|
|
1729
1712
|
|
|
1730
|
-
|
|
1713
|
+
|
|
1731
1714
|
|
|
1732
|
-
|
|
1715
|
+
|
|
1733
1716
|
|
|
1734
|
-
|
|
1717
|
+
<th class="last">Description</th>
|
|
1735
1718
|
</tr>
|
|
1736
|
-
|
|
1719
|
+
</thead>
|
|
1737
1720
|
|
|
1738
|
-
|
|
1721
|
+
<tbody>
|
|
1739
1722
|
|
|
1723
|
+
<tr>
|
|
1724
|
+
|
|
1725
|
+
<td class="name"><code>style</code></td>
|
|
1726
|
+
|
|
1740
1727
|
|
|
1741
|
-
<
|
|
1742
|
-
|
|
1743
|
-
<td class="name"><code>style</code></td>
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
<td class="type">
|
|
1728
|
+
<td class="type">
|
|
1729
|
+
|
|
1747
1730
|
|
|
1748
|
-
|
|
1749
|
-
|
|
1731
|
+
<span class="param-type">
|
|
1732
|
+
number
|
|
1733
|
+
</span>
|
|
1750
1734
|
|
|
1735
|
+
|
|
1751
1736
|
|
|
1752
1737
|
|
|
1753
|
-
|
|
1754
|
-
|
|
1738
|
+
|
|
1739
|
+
</td>
|
|
1755
1740
|
|
|
1756
|
-
|
|
1741
|
+
|
|
1757
1742
|
|
|
1758
|
-
|
|
1743
|
+
|
|
1759
1744
|
|
|
1760
|
-
|
|
1761
|
-
|
|
1745
|
+
<td class="description last">
|
|
1746
|
+
<p>Either BRAKE or HOLD</p>
|
|
1747
|
+
|
|
1748
|
+
</td>
|
|
1749
|
+
</tr>
|
|
1762
1750
|
|
|
1763
1751
|
|
|
1764
|
-
|
|
1752
|
+
</tbody>
|
|
1765
1753
|
</table>
|
|
1766
1754
|
|
|
1767
|
-
|
|
1768
1755
|
|
|
1769
|
-
|
|
1770
|
-
<dl class="details">
|
|
1771
|
-
|
|
1772
1756
|
|
|
1773
|
-
|
|
1774
1757
|
|
|
1775
|
-
|
|
1776
1758
|
|
|
1777
|
-
|
|
1759
|
+
<dl class="details">
|
|
1778
1760
|
|
|
1779
|
-
|
|
1761
|
+
|
|
1780
1762
|
|
|
1781
|
-
|
|
1763
|
+
|
|
1782
1764
|
|
|
1783
|
-
|
|
1765
|
+
|
|
1784
1766
|
|
|
1785
|
-
|
|
1767
|
+
|
|
1768
|
+
|
|
1769
|
+
|
|
1786
1770
|
|
|
1787
|
-
|
|
1771
|
+
|
|
1788
1772
|
|
|
1789
|
-
|
|
1773
|
+
|
|
1790
1774
|
|
|
1791
|
-
|
|
1775
|
+
|
|
1792
1776
|
|
|
1793
|
-
|
|
1777
|
+
|
|
1794
1778
|
|
|
1795
|
-
|
|
1779
|
+
|
|
1796
1780
|
|
|
1781
|
+
|
|
1797
1782
|
|
|
1783
|
+
|
|
1798
1784
|
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1785
|
+
|
|
1786
|
+
<dt class="tag-source">Source:</dt>
|
|
1787
|
+
<dd class="tag-source">
|
|
1788
|
+
<ul class="dummy">
|
|
1789
|
+
<li>
|
|
1790
|
+
<a href="devices_tachomotor.js.html">devices/tachomotor.js</a>, <a href="devices_tachomotor.js.html#line53">line 53</a>
|
|
1791
|
+
</li>
|
|
1792
|
+
</ul>
|
|
1793
|
+
</dd>
|
|
1794
|
+
|
|
1810
1795
|
|
|
1811
|
-
|
|
1796
|
+
|
|
1812
1797
|
|
|
1813
|
-
|
|
1798
|
+
|
|
1814
1799
|
|
|
1815
|
-
|
|
1800
|
+
|
|
1816
1801
|
</dl>
|
|
1817
1802
|
|
|
1818
1803
|
|
|
1819
|
-
|
|
1820
1804
|
|
|
1821
|
-
|
|
1822
1805
|
|
|
1823
|
-
|
|
1824
1806
|
|
|
1825
|
-
|
|
1826
1807
|
|
|
1827
|
-
|
|
1828
1808
|
|
|
1829
|
-
|
|
1830
1809
|
|
|
1831
|
-
|
|
1832
|
-
</dd>
|
|
1833
1810
|
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
<hr>
|
|
1837
|
-
<dt>
|
|
1838
|
-
<h4 class="name" id="setDecelerationTime"><span class="type-signature"></span>setDecelerationTime(time)</h4>
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
</dt>
|
|
1842
|
-
<dd>
|
|
1843
1811
|
|
|
1844
|
-
|
|
1845
|
-
<div class="description">
|
|
1846
|
-
<p>Set the global deceleration time</p>
|
|
1847
|
-
</div>
|
|
1848
|
-
|
|
1849
1812
|
|
|
1850
|
-
|
|
1851
1813
|
|
|
1852
|
-
|
|
1853
1814
|
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
<h5>Parameters:</h5>
|
|
1815
|
+
|
|
1816
|
+
|
|
1857
1817
|
|
|
1858
1818
|
|
|
1859
|
-
|
|
1860
|
-
|
|
1819
|
+
|
|
1820
|
+
|
|
1821
|
+
|
|
1822
|
+
<span class='name-container'>
|
|
1823
|
+
<a class="link-icon" href="#setDecelerationTime">
|
|
1824
|
+
<svg height="20" width="20" style="fill: black;">
|
|
1825
|
+
<use xlink:href="#linkIcon"></use>
|
|
1826
|
+
</svg>
|
|
1827
|
+
</a>
|
|
1828
|
+
<h4 class="name" id="setDecelerationTime">
|
|
1829
|
+
<span class="type-signature"></span>setDecelerationTime<span class="signature">(time)</span><span class="type-signature"> → {Promise}</span>
|
|
1830
|
+
</h4>
|
|
1831
|
+
</span>
|
|
1832
|
+
|
|
1833
|
+
|
|
1834
|
+
|
|
1835
|
+
|
|
1836
|
+
|
|
1837
|
+
<div class="description">
|
|
1838
|
+
<p>Set the global deceleration time</p>
|
|
1839
|
+
</div>
|
|
1840
|
+
|
|
1841
|
+
|
|
1842
|
+
|
|
1843
|
+
|
|
1844
|
+
|
|
1845
|
+
|
|
1846
|
+
|
|
1847
|
+
<h5>Parameters:</h5>
|
|
1848
|
+
|
|
1849
|
+
|
|
1850
|
+
<table class="params">
|
|
1851
|
+
<thead>
|
|
1861
1852
|
<tr>
|
|
1862
|
-
|
|
1853
|
+
|
|
1863
1854
|
<th>Name</th>
|
|
1864
|
-
|
|
1855
|
+
|
|
1865
1856
|
|
|
1866
|
-
|
|
1857
|
+
<th>Type</th>
|
|
1867
1858
|
|
|
1868
|
-
|
|
1859
|
+
|
|
1869
1860
|
|
|
1870
|
-
|
|
1861
|
+
|
|
1871
1862
|
|
|
1872
|
-
|
|
1863
|
+
<th class="last">Description</th>
|
|
1873
1864
|
</tr>
|
|
1874
|
-
|
|
1865
|
+
</thead>
|
|
1875
1866
|
|
|
1876
|
-
|
|
1867
|
+
<tbody>
|
|
1877
1868
|
|
|
1869
|
+
<tr>
|
|
1870
|
+
|
|
1871
|
+
<td class="name"><code>time</code></td>
|
|
1872
|
+
|
|
1878
1873
|
|
|
1879
|
-
<
|
|
1880
|
-
|
|
1881
|
-
<td class="name"><code>time</code></td>
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
<td class="type">
|
|
1874
|
+
<td class="type">
|
|
1875
|
+
|
|
1885
1876
|
|
|
1886
|
-
|
|
1887
|
-
|
|
1877
|
+
<span class="param-type">
|
|
1878
|
+
number
|
|
1879
|
+
</span>
|
|
1888
1880
|
|
|
1881
|
+
|
|
1889
1882
|
|
|
1890
1883
|
|
|
1891
|
-
|
|
1892
|
-
|
|
1884
|
+
|
|
1885
|
+
</td>
|
|
1893
1886
|
|
|
1894
|
-
|
|
1887
|
+
|
|
1895
1888
|
|
|
1896
|
-
|
|
1889
|
+
|
|
1897
1890
|
|
|
1898
|
-
|
|
1899
|
-
|
|
1891
|
+
<td class="description last">
|
|
1892
|
+
<p>How long deceleration should last (in milliseconds).</p>
|
|
1893
|
+
|
|
1894
|
+
</td>
|
|
1895
|
+
</tr>
|
|
1900
1896
|
|
|
1901
1897
|
|
|
1902
|
-
|
|
1898
|
+
</tbody>
|
|
1903
1899
|
</table>
|
|
1904
1900
|
|
|
1905
|
-
|
|
1906
1901
|
|
|
1907
|
-
|
|
1908
|
-
<dl class="details">
|
|
1909
|
-
|
|
1910
1902
|
|
|
1911
|
-
|
|
1912
1903
|
|
|
1913
|
-
|
|
1914
1904
|
|
|
1915
|
-
|
|
1905
|
+
<dl class="details">
|
|
1916
1906
|
|
|
1917
|
-
|
|
1907
|
+
|
|
1918
1908
|
|
|
1919
|
-
|
|
1909
|
+
|
|
1920
1910
|
|
|
1921
|
-
|
|
1911
|
+
|
|
1922
1912
|
|
|
1923
|
-
|
|
1913
|
+
|
|
1924
1914
|
|
|
1925
|
-
|
|
1915
|
+
|
|
1926
1916
|
|
|
1927
|
-
|
|
1917
|
+
|
|
1928
1918
|
|
|
1929
|
-
|
|
1919
|
+
|
|
1930
1920
|
|
|
1931
|
-
|
|
1921
|
+
|
|
1932
1922
|
|
|
1933
|
-
|
|
1923
|
+
|
|
1934
1924
|
|
|
1925
|
+
|
|
1935
1926
|
|
|
1927
|
+
|
|
1936
1928
|
|
|
1937
|
-
|
|
1938
|
-
<dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
|
|
1939
|
-
<dd class="tag-source">
|
|
1940
|
-
<ul class="dummy">
|
|
1941
|
-
<li>
|
|
1942
|
-
<a href="devices_tachomotor.js.html">devices/tachomotor.js</a>,
|
|
1943
|
-
<a href="devices_tachomotor.js.html#sunlight-1-line-84">line 84</a>
|
|
1944
|
-
</li>
|
|
1945
|
-
</ul>
|
|
1946
|
-
</dd>
|
|
1947
|
-
|
|
1929
|
+
|
|
1948
1930
|
|
|
1949
|
-
|
|
1931
|
+
|
|
1932
|
+
<dt class="tag-source">Source:</dt>
|
|
1933
|
+
<dd class="tag-source">
|
|
1934
|
+
<ul class="dummy">
|
|
1935
|
+
<li>
|
|
1936
|
+
<a href="devices_tachomotor.js.html">devices/tachomotor.js</a>, <a href="devices_tachomotor.js.html#line84">line 84</a>
|
|
1937
|
+
</li>
|
|
1938
|
+
</ul>
|
|
1939
|
+
</dd>
|
|
1940
|
+
|
|
1950
1941
|
|
|
1951
|
-
|
|
1942
|
+
|
|
1952
1943
|
|
|
1953
|
-
|
|
1954
|
-
</dl>
|
|
1944
|
+
|
|
1955
1945
|
|
|
1946
|
+
|
|
1947
|
+
</dl>
|
|
1956
1948
|
|
|
1957
|
-
|
|
1958
1949
|
|
|
1959
|
-
|
|
1960
1950
|
|
|
1961
|
-
|
|
1962
1951
|
|
|
1963
|
-
|
|
1964
1952
|
|
|
1965
|
-
|
|
1966
1953
|
|
|
1967
|
-
|
|
1968
|
-
<h5>Returns:</h5>
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
<div class="param-desc">
|
|
1972
|
-
<p>Resolved upon successful completion of command (ie. once the motor is finished).</p>
|
|
1973
|
-
</div>
|
|
1974
1954
|
|
|
1975
1955
|
|
|
1976
1956
|
|
|
1977
|
-
<dl>
|
|
1978
|
-
<dt>
|
|
1979
|
-
Type
|
|
1980
|
-
</dt>
|
|
1981
|
-
<dd>
|
|
1982
|
-
|
|
1983
|
-
<span class="param-type">Promise</span>
|
|
1984
1957
|
|
|
1985
1958
|
|
|
1986
1959
|
|
|
1987
|
-
</dd>
|
|
1988
|
-
</dl>
|
|
1989
1960
|
|
|
1990
1961
|
|
|
1962
|
+
|
|
1991
1963
|
|
|
1992
1964
|
|
|
1993
|
-
|
|
1994
|
-
</dd>
|
|
1995
1965
|
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
<hr>
|
|
1999
|
-
<dt>
|
|
2000
|
-
<h4 class="name" id="setMaxPower"><span class="type-signature"></span>setMaxPower(style)</h4>
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
</dt>
|
|
2004
|
-
<dd>
|
|
1966
|
+
|
|
2005
1967
|
|
|
2006
|
-
|
|
2007
|
-
<
|
|
2008
|
-
|
|
1968
|
+
<span class='name-container'>
|
|
1969
|
+
<a class="link-icon" href="#setMaxPower">
|
|
1970
|
+
<svg height="20" width="20" style="fill: black;">
|
|
1971
|
+
<use xlink:href="#linkIcon"></use>
|
|
1972
|
+
</svg>
|
|
1973
|
+
</a>
|
|
1974
|
+
<h4 class="name" id="setMaxPower">
|
|
1975
|
+
<span class="type-signature"></span>setMaxPower<span class="signature">(style)</span><span class="type-signature"></span>
|
|
1976
|
+
</h4>
|
|
1977
|
+
</span>
|
|
1978
|
+
|
|
1979
|
+
|
|
1980
|
+
|
|
1981
|
+
|
|
1982
|
+
|
|
1983
|
+
<div class="description">
|
|
1984
|
+
<p>Set the max power of the motor.</p>
|
|
2009
1985
|
<p>Note: This applies to setSpeed, rotateByDegrees, and gotoAngle.</p>
|
|
2010
|
-
|
|
2011
|
-
|
|
1986
|
+
</div>
|
|
1987
|
+
|
|
1988
|
+
|
|
1989
|
+
|
|
2012
1990
|
|
|
2013
|
-
|
|
2014
1991
|
|
|
2015
|
-
|
|
2016
1992
|
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
<h5>Parameters:</h5>
|
|
2020
|
-
|
|
2021
1993
|
|
|
2022
|
-
<
|
|
2023
|
-
|
|
1994
|
+
<h5>Parameters:</h5>
|
|
1995
|
+
|
|
1996
|
+
|
|
1997
|
+
<table class="params">
|
|
1998
|
+
<thead>
|
|
2024
1999
|
<tr>
|
|
2025
|
-
|
|
2000
|
+
|
|
2026
2001
|
<th>Name</th>
|
|
2002
|
+
|
|
2003
|
+
|
|
2004
|
+
<th>Type</th>
|
|
2005
|
+
|
|
2006
|
+
|
|
2007
|
+
|
|
2008
|
+
|
|
2009
|
+
|
|
2010
|
+
<th class="last">Description</th>
|
|
2011
|
+
</tr>
|
|
2012
|
+
</thead>
|
|
2013
|
+
|
|
2014
|
+
<tbody>
|
|
2015
|
+
|
|
2016
|
+
<tr>
|
|
2017
|
+
|
|
2018
|
+
<td class="name"><code>style</code></td>
|
|
2027
2019
|
|
|
2028
2020
|
|
|
2029
|
-
<
|
|
2021
|
+
<td class="type">
|
|
2022
|
+
|
|
2023
|
+
|
|
2024
|
+
<span class="param-type">
|
|
2025
|
+
number
|
|
2026
|
+
</span>
|
|
2027
|
+
|
|
2028
|
+
|
|
2029
|
+
|
|
2030
|
+
|
|
2031
|
+
|
|
2032
|
+
</td>
|
|
2030
2033
|
|
|
2031
2034
|
|
|
2032
2035
|
|
|
2033
2036
|
|
|
2034
2037
|
|
|
2035
|
-
<
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
+
<td class="description last">
|
|
2039
|
+
<p>Either BRAKE or HOLD</p>
|
|
2040
|
+
|
|
2041
|
+
</td>
|
|
2042
|
+
</tr>
|
|
2043
|
+
|
|
2044
|
+
|
|
2045
|
+
</tbody>
|
|
2046
|
+
</table>
|
|
2047
|
+
|
|
2048
|
+
|
|
2049
|
+
|
|
2050
|
+
|
|
2051
|
+
|
|
2052
|
+
<dl class="details">
|
|
2053
|
+
|
|
2054
|
+
|
|
2038
2055
|
|
|
2039
|
-
|
|
2040
|
-
|
|
2056
|
+
|
|
2041
2057
|
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
<td class="name"><code>style</code></td>
|
|
2045
|
-
|
|
2058
|
+
|
|
2046
2059
|
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
<span class="param-type">number</span>
|
|
2060
|
+
|
|
2051
2061
|
|
|
2062
|
+
|
|
2052
2063
|
|
|
2064
|
+
|
|
2053
2065
|
|
|
2054
|
-
|
|
2055
|
-
</td>
|
|
2066
|
+
|
|
2056
2067
|
|
|
2057
|
-
|
|
2068
|
+
|
|
2058
2069
|
|
|
2059
|
-
|
|
2070
|
+
|
|
2060
2071
|
|
|
2061
|
-
|
|
2062
|
-
</tr>
|
|
2072
|
+
|
|
2063
2073
|
|
|
2064
|
-
|
|
2065
|
-
</tbody>
|
|
2066
|
-
</table>
|
|
2074
|
+
|
|
2067
2075
|
|
|
2068
|
-
|
|
2076
|
+
|
|
2069
2077
|
|
|
2070
|
-
|
|
2071
|
-
<
|
|
2072
|
-
|
|
2078
|
+
|
|
2079
|
+
<dt class="tag-source">Source:</dt>
|
|
2080
|
+
<dd class="tag-source">
|
|
2081
|
+
<ul class="dummy">
|
|
2082
|
+
<li>
|
|
2083
|
+
<a href="devices_tachomotor.js.html">devices/tachomotor.js</a>, <a href="devices_tachomotor.js.html#line63">line 63</a>
|
|
2084
|
+
</li>
|
|
2085
|
+
</ul>
|
|
2086
|
+
</dd>
|
|
2087
|
+
|
|
2073
2088
|
|
|
2074
|
-
|
|
2089
|
+
|
|
2075
2090
|
|
|
2076
|
-
|
|
2091
|
+
|
|
2077
2092
|
|
|
2078
|
-
|
|
2093
|
+
|
|
2094
|
+
</dl>
|
|
2079
2095
|
|
|
2080
|
-
|
|
2081
2096
|
|
|
2082
|
-
|
|
2083
2097
|
|
|
2084
|
-
|
|
2085
2098
|
|
|
2086
|
-
|
|
2087
2099
|
|
|
2088
|
-
|
|
2089
2100
|
|
|
2090
|
-
|
|
2091
2101
|
|
|
2092
|
-
|
|
2093
2102
|
|
|
2094
|
-
|
|
2095
2103
|
|
|
2096
|
-
|
|
2097
2104
|
|
|
2098
2105
|
|
|
2099
2106
|
|
|
2100
|
-
|
|
2101
|
-
<dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
|
|
2102
|
-
<dd class="tag-source">
|
|
2103
|
-
<ul class="dummy">
|
|
2104
|
-
<li>
|
|
2105
|
-
<a href="devices_tachomotor.js.html">devices/tachomotor.js</a>,
|
|
2106
|
-
<a href="devices_tachomotor.js.html#sunlight-1-line-63">line 63</a>
|
|
2107
|
-
</li>
|
|
2108
|
-
</ul>
|
|
2109
|
-
</dd>
|
|
2110
|
-
|
|
2111
2107
|
|
|
2112
|
-
|
|
2113
2108
|
|
|
2114
|
-
|
|
2109
|
+
|
|
2110
|
+
|
|
2115
2111
|
|
|
2116
|
-
|
|
2117
|
-
</dl>
|
|
2118
2112
|
|
|
2113
|
+
|
|
2119
2114
|
|
|
2120
|
-
|
|
2115
|
+
<span class='name-container'>
|
|
2116
|
+
<a class="link-icon" href="#setPower">
|
|
2117
|
+
<svg height="20" width="20" style="fill: black;">
|
|
2118
|
+
<use xlink:href="#linkIcon"></use>
|
|
2119
|
+
</svg>
|
|
2120
|
+
</a>
|
|
2121
|
+
<h4 class="name" id="setPower">
|
|
2122
|
+
<span class="type-signature"></span>setPower<span class="signature">(power)</span><span class="type-signature"> → {Promise}</span>
|
|
2123
|
+
</h4>
|
|
2124
|
+
</span>
|
|
2121
2125
|
|
|
2122
|
-
|
|
2126
|
+
|
|
2123
2127
|
|
|
2124
|
-
|
|
2125
2128
|
|
|
2126
|
-
|
|
2127
2129
|
|
|
2128
|
-
|
|
2130
|
+
<div class="description">
|
|
2131
|
+
<p>Set the motor power.</p>
|
|
2132
|
+
</div>
|
|
2129
2133
|
|
|
2130
|
-
|
|
2131
2134
|
|
|
2132
|
-
|
|
2133
|
-
</dd>
|
|
2134
2135
|
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
<hr>
|
|
2138
|
-
<dt>
|
|
2139
|
-
<h4 class="name" id="setPower"><span class="type-signature"></span>setPower(power)</h4>
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
</dt>
|
|
2143
|
-
<dd>
|
|
2144
2136
|
|
|
2145
|
-
|
|
2146
|
-
<div class="description">
|
|
2147
|
-
<p>Set the motor power.</p>
|
|
2148
|
-
</div>
|
|
2149
|
-
|
|
2150
2137
|
|
|
2151
|
-
|
|
2152
2138
|
|
|
2153
|
-
|
|
2154
2139
|
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
<h5>Parameters:</h5>
|
|
2158
|
-
|
|
2140
|
+
<h5>Parameters:</h5>
|
|
2141
|
+
|
|
2159
2142
|
|
|
2160
|
-
<table class="params
|
|
2161
|
-
|
|
2143
|
+
<table class="params">
|
|
2144
|
+
<thead>
|
|
2162
2145
|
<tr>
|
|
2163
|
-
|
|
2146
|
+
|
|
2164
2147
|
<th>Name</th>
|
|
2165
|
-
|
|
2148
|
+
|
|
2166
2149
|
|
|
2167
|
-
|
|
2150
|
+
<th>Type</th>
|
|
2168
2151
|
|
|
2169
|
-
|
|
2152
|
+
|
|
2170
2153
|
|
|
2171
|
-
|
|
2154
|
+
|
|
2172
2155
|
|
|
2173
|
-
|
|
2156
|
+
<th class="last">Description</th>
|
|
2174
2157
|
</tr>
|
|
2175
|
-
|
|
2158
|
+
</thead>
|
|
2176
2159
|
|
|
2177
|
-
|
|
2160
|
+
<tbody>
|
|
2178
2161
|
|
|
2162
|
+
<tr>
|
|
2163
|
+
|
|
2164
|
+
<td class="name"><code>power</code></td>
|
|
2165
|
+
|
|
2179
2166
|
|
|
2180
|
-
<
|
|
2181
|
-
|
|
2182
|
-
<td class="name"><code>power</code></td>
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
<td class="type">
|
|
2167
|
+
<td class="type">
|
|
2168
|
+
|
|
2186
2169
|
|
|
2187
|
-
|
|
2188
|
-
|
|
2170
|
+
<span class="param-type">
|
|
2171
|
+
number
|
|
2172
|
+
</span>
|
|
2189
2173
|
|
|
2174
|
+
|
|
2190
2175
|
|
|
2191
2176
|
|
|
2192
|
-
|
|
2193
|
-
|
|
2177
|
+
|
|
2178
|
+
</td>
|
|
2194
2179
|
|
|
2195
|
-
|
|
2180
|
+
|
|
2196
2181
|
|
|
2197
|
-
|
|
2182
|
+
|
|
2198
2183
|
|
|
2199
|
-
|
|
2200
|
-
|
|
2184
|
+
<td class="description last">
|
|
2185
|
+
<p>For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.</p>
|
|
2186
|
+
|
|
2187
|
+
</td>
|
|
2188
|
+
</tr>
|
|
2201
2189
|
|
|
2202
2190
|
|
|
2203
|
-
|
|
2191
|
+
</tbody>
|
|
2204
2192
|
</table>
|
|
2205
2193
|
|
|
2206
|
-
|
|
2207
2194
|
|
|
2208
|
-
|
|
2209
|
-
<dl class="details">
|
|
2210
|
-
|
|
2211
2195
|
|
|
2212
|
-
|
|
2213
2196
|
|
|
2214
|
-
|
|
2215
2197
|
|
|
2216
|
-
|
|
2217
|
-
<dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
|
|
2218
|
-
<dd class="inherited-from">
|
|
2219
|
-
<ul class="dummy">
|
|
2220
|
-
<li>
|
|
2221
|
-
<a href="BasicMotor.html#setPower">BasicMotor#setPower</a>
|
|
2222
|
-
</li>
|
|
2223
|
-
</ul>
|
|
2224
|
-
</dd>
|
|
2225
|
-
|
|
2198
|
+
<dl class="details">
|
|
2226
2199
|
|
|
2227
|
-
|
|
2200
|
+
|
|
2228
2201
|
|
|
2229
|
-
|
|
2202
|
+
|
|
2230
2203
|
|
|
2231
|
-
|
|
2204
|
+
|
|
2205
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
2206
|
+
<dd class="inherited-from">
|
|
2207
|
+
<ul class="dummy">
|
|
2208
|
+
<li>
|
|
2209
|
+
<a href="BasicMotor.html#setPower">BasicMotor#setPower</a>
|
|
2210
|
+
</li>
|
|
2211
|
+
</ul>
|
|
2212
|
+
</dd>
|
|
2213
|
+
|
|
2232
2214
|
|
|
2233
|
-
|
|
2215
|
+
|
|
2216
|
+
|
|
2217
|
+
|
|
2234
2218
|
|
|
2235
|
-
|
|
2219
|
+
|
|
2236
2220
|
|
|
2237
|
-
|
|
2221
|
+
|
|
2238
2222
|
|
|
2239
|
-
|
|
2223
|
+
|
|
2240
2224
|
|
|
2241
|
-
|
|
2225
|
+
|
|
2242
2226
|
|
|
2243
|
-
|
|
2227
|
+
|
|
2244
2228
|
|
|
2229
|
+
|
|
2245
2230
|
|
|
2231
|
+
|
|
2246
2232
|
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2233
|
+
|
|
2234
|
+
<dt class="tag-source">Source:</dt>
|
|
2235
|
+
<dd class="tag-source">
|
|
2236
|
+
<ul class="dummy">
|
|
2237
|
+
<li>
|
|
2238
|
+
<a href="devices_basicmotor.js.html">devices/basicmotor.js</a>, <a href="devices_basicmotor.js.html#line34">line 34</a>
|
|
2239
|
+
</li>
|
|
2240
|
+
</ul>
|
|
2241
|
+
</dd>
|
|
2242
|
+
|
|
2258
2243
|
|
|
2259
|
-
|
|
2244
|
+
|
|
2260
2245
|
|
|
2261
|
-
|
|
2246
|
+
|
|
2262
2247
|
|
|
2263
|
-
|
|
2248
|
+
|
|
2264
2249
|
</dl>
|
|
2265
2250
|
|
|
2266
2251
|
|
|
2267
|
-
|
|
2268
2252
|
|
|
2269
|
-
|
|
2270
2253
|
|
|
2271
|
-
|
|
2272
2254
|
|
|
2273
|
-
|
|
2274
2255
|
|
|
2275
|
-
|
|
2276
2256
|
|
|
2277
|
-
|
|
2278
|
-
<h5>Returns:</h5>
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
<div class="param-desc">
|
|
2282
|
-
<p>Resolved upon successful issuance of the command.</p>
|
|
2283
|
-
</div>
|
|
2284
2257
|
|
|
2285
2258
|
|
|
2286
2259
|
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2260
|
+
|
|
2261
|
+
|
|
2262
|
+
|
|
2263
|
+
|
|
2264
|
+
|
|
2292
2265
|
|
|
2293
|
-
<span class="param-type">Promise</span>
|
|
2294
2266
|
|
|
2295
2267
|
|
|
2268
|
+
|
|
2296
2269
|
|
|
2297
|
-
|
|
2298
|
-
|
|
2270
|
+
<span class='name-container'>
|
|
2271
|
+
<a class="link-icon" href="#setSpeed">
|
|
2272
|
+
<svg height="20" width="20" style="fill: black;">
|
|
2273
|
+
<use xlink:href="#linkIcon"></use>
|
|
2274
|
+
</svg>
|
|
2275
|
+
</a>
|
|
2276
|
+
<h4 class="name" id="setSpeed">
|
|
2277
|
+
<span class="type-signature"></span>setSpeed<span class="signature">(speed, time)</span><span class="type-signature"> → {Promise}</span>
|
|
2278
|
+
</h4>
|
|
2279
|
+
</span>
|
|
2299
2280
|
|
|
2281
|
+
|
|
2300
2282
|
|
|
2301
|
-
|
|
2302
2283
|
|
|
2303
|
-
|
|
2304
|
-
</dd>
|
|
2305
2284
|
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
<dt>
|
|
2310
|
-
<h4 class="name" id="setSpeed"><span class="type-signature"></span>setSpeed(speed, time)</h4>
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
</dt>
|
|
2314
|
-
<dd>
|
|
2285
|
+
<div class="description">
|
|
2286
|
+
<p>Set the motor speed.</p>
|
|
2287
|
+
</div>
|
|
2315
2288
|
|
|
2316
|
-
|
|
2317
|
-
<div class="description">
|
|
2318
|
-
<p>Set the motor speed.</p>
|
|
2319
|
-
</div>
|
|
2320
|
-
|
|
2321
2289
|
|
|
2322
|
-
|
|
2323
2290
|
|
|
2324
|
-
|
|
2325
2291
|
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
<h5>Parameters:</h5>
|
|
2329
|
-
|
|
2330
2292
|
|
|
2331
|
-
|
|
2332
|
-
|
|
2293
|
+
|
|
2294
|
+
|
|
2295
|
+
<h5>Parameters:</h5>
|
|
2296
|
+
|
|
2297
|
+
|
|
2298
|
+
<table class="params">
|
|
2299
|
+
<thead>
|
|
2333
2300
|
<tr>
|
|
2334
|
-
|
|
2301
|
+
|
|
2335
2302
|
<th>Name</th>
|
|
2336
|
-
|
|
2303
|
+
|
|
2337
2304
|
|
|
2338
|
-
|
|
2305
|
+
<th>Type</th>
|
|
2339
2306
|
|
|
2340
|
-
|
|
2307
|
+
|
|
2341
2308
|
|
|
2342
|
-
|
|
2309
|
+
|
|
2343
2310
|
|
|
2344
|
-
|
|
2311
|
+
<th class="last">Description</th>
|
|
2345
2312
|
</tr>
|
|
2346
|
-
|
|
2313
|
+
</thead>
|
|
2347
2314
|
|
|
2348
|
-
|
|
2315
|
+
<tbody>
|
|
2349
2316
|
|
|
2317
|
+
<tr>
|
|
2318
|
+
|
|
2319
|
+
<td class="name"><code>speed</code></td>
|
|
2320
|
+
|
|
2350
2321
|
|
|
2351
|
-
<
|
|
2352
|
-
|
|
2353
|
-
<td class="name"><code>speed</code></td>
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
<td class="type">
|
|
2322
|
+
<td class="type">
|
|
2323
|
+
|
|
2357
2324
|
|
|
2358
|
-
|
|
2359
|
-
|
|
2325
|
+
<span class="param-type">
|
|
2326
|
+
number
|
|
2327
|
+
</span>
|
|
2360
2328
|
|
|
2329
|
+
|
|
2361
2330
|
|
|
2362
2331
|
|
|
2363
|
-
|
|
2364
|
-
|
|
2332
|
+
|
|
2333
|
+
</td>
|
|
2365
2334
|
|
|
2366
|
-
|
|
2335
|
+
|
|
2367
2336
|
|
|
2368
|
-
|
|
2337
|
+
|
|
2369
2338
|
|
|
2370
|
-
|
|
2371
|
-
|
|
2339
|
+
<td class="description last">
|
|
2340
|
+
<p>For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.</p>
|
|
2341
|
+
|
|
2342
|
+
</td>
|
|
2343
|
+
</tr>
|
|
2372
2344
|
|
|
2373
2345
|
|
|
2346
|
+
<tr>
|
|
2347
|
+
|
|
2348
|
+
<td class="name"><code>time</code></td>
|
|
2349
|
+
|
|
2374
2350
|
|
|
2375
|
-
<
|
|
2376
|
-
|
|
2377
|
-
<td class="name"><code>time</code></td>
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
<td class="type">
|
|
2351
|
+
<td class="type">
|
|
2352
|
+
|
|
2381
2353
|
|
|
2382
|
-
|
|
2383
|
-
|
|
2354
|
+
<span class="param-type">
|
|
2355
|
+
number
|
|
2356
|
+
</span>
|
|
2384
2357
|
|
|
2358
|
+
|
|
2385
2359
|
|
|
2386
2360
|
|
|
2387
|
-
|
|
2388
|
-
|
|
2361
|
+
|
|
2362
|
+
</td>
|
|
2389
2363
|
|
|
2390
|
-
|
|
2364
|
+
|
|
2391
2365
|
|
|
2392
|
-
|
|
2366
|
+
|
|
2393
2367
|
|
|
2394
|
-
|
|
2395
|
-
|
|
2368
|
+
<td class="description last">
|
|
2369
|
+
<p>How long the motor should run for (in milliseconds).</p>
|
|
2370
|
+
|
|
2371
|
+
</td>
|
|
2372
|
+
</tr>
|
|
2396
2373
|
|
|
2397
2374
|
|
|
2398
|
-
|
|
2375
|
+
</tbody>
|
|
2399
2376
|
</table>
|
|
2400
2377
|
|
|
2401
|
-
|
|
2402
2378
|
|
|
2403
|
-
|
|
2404
|
-
<dl class="details">
|
|
2405
|
-
|
|
2406
2379
|
|
|
2407
|
-
|
|
2408
2380
|
|
|
2409
|
-
|
|
2410
2381
|
|
|
2411
|
-
|
|
2382
|
+
<dl class="details">
|
|
2412
2383
|
|
|
2413
|
-
|
|
2384
|
+
|
|
2414
2385
|
|
|
2415
|
-
|
|
2386
|
+
|
|
2416
2387
|
|
|
2417
|
-
|
|
2388
|
+
|
|
2418
2389
|
|
|
2419
|
-
|
|
2390
|
+
|
|
2391
|
+
|
|
2392
|
+
|
|
2420
2393
|
|
|
2421
|
-
|
|
2394
|
+
|
|
2422
2395
|
|
|
2423
|
-
|
|
2396
|
+
|
|
2424
2397
|
|
|
2425
|
-
|
|
2398
|
+
|
|
2426
2399
|
|
|
2427
|
-
|
|
2400
|
+
|
|
2428
2401
|
|
|
2429
|
-
|
|
2402
|
+
|
|
2430
2403
|
|
|
2404
|
+
|
|
2431
2405
|
|
|
2406
|
+
|
|
2432
2407
|
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2408
|
+
|
|
2409
|
+
<dt class="tag-source">Source:</dt>
|
|
2410
|
+
<dd class="tag-source">
|
|
2411
|
+
<ul class="dummy">
|
|
2412
|
+
<li>
|
|
2413
|
+
<a href="devices_tachomotor.js.html">devices/tachomotor.js</a>, <a href="devices_tachomotor.js.html#line95">line 95</a>
|
|
2414
|
+
</li>
|
|
2415
|
+
</ul>
|
|
2416
|
+
</dd>
|
|
2417
|
+
|
|
2444
2418
|
|
|
2445
|
-
|
|
2419
|
+
|
|
2446
2420
|
|
|
2447
|
-
|
|
2421
|
+
|
|
2448
2422
|
|
|
2449
|
-
|
|
2423
|
+
|
|
2450
2424
|
</dl>
|
|
2451
2425
|
|
|
2452
2426
|
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
2427
|
|
|
2457
|
-
|
|
2458
2428
|
|
|
2459
|
-
|
|
2460
2429
|
|
|
2461
|
-
|
|
2462
2430
|
|
|
2463
|
-
|
|
2464
|
-
<h5>Returns:</h5>
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
<div class="param-desc">
|
|
2468
|
-
<p>Resolved upon successful issuance of the command.</p>
|
|
2469
|
-
</div>
|
|
2470
2431
|
|
|
2471
2432
|
|
|
2472
2433
|
|
|
2473
|
-
<dl>
|
|
2474
|
-
<dt>
|
|
2475
|
-
Type
|
|
2476
|
-
</dt>
|
|
2477
|
-
<dd>
|
|
2478
|
-
|
|
2479
|
-
<span class="param-type">Promise</span>
|
|
2480
2434
|
|
|
2481
2435
|
|
|
2482
2436
|
|
|
2483
|
-
</dd>
|
|
2484
|
-
</dl>
|
|
2485
2437
|
|
|
2486
2438
|
|
|
2439
|
+
|
|
2487
2440
|
|
|
2488
2441
|
|
|
2489
|
-
|
|
2490
|
-
</dd>
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
<hr>
|
|
2495
|
-
<dt>
|
|
2496
|
-
<h4 class="name" id="stop"><span class="type-signature"></span>stop()</h4>
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
</dt>
|
|
2500
|
-
<dd>
|
|
2501
2442
|
|
|
2502
|
-
|
|
2503
|
-
<div class="description">
|
|
2504
|
-
<p>Stop the motor.</p>
|
|
2505
|
-
</div>
|
|
2506
|
-
|
|
2443
|
+
|
|
2507
2444
|
|
|
2508
|
-
|
|
2445
|
+
<span class='name-container'>
|
|
2446
|
+
<a class="link-icon" href="#stop">
|
|
2447
|
+
<svg height="20" width="20" style="fill: black;">
|
|
2448
|
+
<use xlink:href="#linkIcon"></use>
|
|
2449
|
+
</svg>
|
|
2450
|
+
</a>
|
|
2451
|
+
<h4 class="name" id="stop">
|
|
2452
|
+
<span class="type-signature"></span>stop<span class="signature">()</span><span class="type-signature"> → {Promise}</span>
|
|
2453
|
+
</h4>
|
|
2454
|
+
</span>
|
|
2509
2455
|
|
|
2510
|
-
|
|
2456
|
+
|
|
2511
2457
|
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
2458
|
|
|
2515
|
-
|
|
2516
|
-
<dl class="details">
|
|
2517
|
-
|
|
2518
2459
|
|
|
2519
|
-
|
|
2460
|
+
<div class="description">
|
|
2461
|
+
<p>Stop the motor.</p>
|
|
2462
|
+
</div>
|
|
2520
2463
|
|
|
2521
|
-
|
|
2522
2464
|
|
|
2523
|
-
|
|
2524
|
-
<dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
|
|
2525
|
-
<dd class="inherited-from">
|
|
2526
|
-
<ul class="dummy">
|
|
2527
|
-
<li>
|
|
2528
|
-
<a href="BasicMotor.html#stop">BasicMotor#stop</a>
|
|
2529
|
-
</li>
|
|
2530
|
-
</ul>
|
|
2531
|
-
</dd>
|
|
2532
|
-
|
|
2533
2465
|
|
|
2534
|
-
|
|
2535
2466
|
|
|
2536
|
-
|
|
2537
2467
|
|
|
2538
|
-
|
|
2539
2468
|
|
|
2540
|
-
|
|
2541
2469
|
|
|
2542
|
-
|
|
2543
2470
|
|
|
2544
|
-
|
|
2545
2471
|
|
|
2546
|
-
|
|
2547
2472
|
|
|
2548
|
-
|
|
2473
|
+
<dl class="details">
|
|
2549
2474
|
|
|
2550
|
-
|
|
2475
|
+
|
|
2551
2476
|
|
|
2477
|
+
|
|
2552
2478
|
|
|
2479
|
+
|
|
2480
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
2481
|
+
<dd class="inherited-from">
|
|
2482
|
+
<ul class="dummy">
|
|
2483
|
+
<li>
|
|
2484
|
+
<a href="BasicMotor.html#stop">BasicMotor#stop</a>
|
|
2485
|
+
</li>
|
|
2486
|
+
</ul>
|
|
2487
|
+
</dd>
|
|
2488
|
+
|
|
2553
2489
|
|
|
2554
|
-
|
|
2555
|
-
<dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
|
|
2556
|
-
<dd class="tag-source">
|
|
2557
|
-
<ul class="dummy">
|
|
2558
|
-
<li>
|
|
2559
|
-
<a href="devices_basicmotor.js.html">devices/basicmotor.js</a>,
|
|
2560
|
-
<a href="devices_basicmotor.js.html#sunlight-1-line-64">line 64</a>
|
|
2561
|
-
</li>
|
|
2562
|
-
</ul>
|
|
2563
|
-
</dd>
|
|
2564
|
-
|
|
2490
|
+
|
|
2565
2491
|
|
|
2566
|
-
|
|
2492
|
+
|
|
2567
2493
|
|
|
2568
|
-
|
|
2494
|
+
|
|
2569
2495
|
|
|
2570
|
-
|
|
2571
|
-
</dl>
|
|
2496
|
+
|
|
2572
2497
|
|
|
2498
|
+
|
|
2573
2499
|
|
|
2574
|
-
|
|
2500
|
+
|
|
2575
2501
|
|
|
2576
|
-
|
|
2502
|
+
|
|
2577
2503
|
|
|
2578
|
-
|
|
2504
|
+
|
|
2579
2505
|
|
|
2580
|
-
|
|
2506
|
+
|
|
2581
2507
|
|
|
2582
|
-
|
|
2508
|
+
|
|
2509
|
+
<dt class="tag-source">Source:</dt>
|
|
2510
|
+
<dd class="tag-source">
|
|
2511
|
+
<ul class="dummy">
|
|
2512
|
+
<li>
|
|
2513
|
+
<a href="devices_basicmotor.js.html">devices/basicmotor.js</a>, <a href="devices_basicmotor.js.html#line64">line 64</a>
|
|
2514
|
+
</li>
|
|
2515
|
+
</ul>
|
|
2516
|
+
</dd>
|
|
2517
|
+
|
|
2583
2518
|
|
|
2584
|
-
|
|
2585
|
-
<h5>Returns:</h5>
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
<div class="param-desc">
|
|
2589
|
-
<p>Resolved upon successful issuance of the command.</p>
|
|
2590
|
-
</div>
|
|
2519
|
+
|
|
2591
2520
|
|
|
2521
|
+
|
|
2592
2522
|
|
|
2523
|
+
|
|
2524
|
+
</dl>
|
|
2593
2525
|
|
|
2594
|
-
<dl>
|
|
2595
|
-
<dt>
|
|
2596
|
-
Type
|
|
2597
|
-
</dt>
|
|
2598
|
-
<dd>
|
|
2599
|
-
|
|
2600
|
-
<span class="param-type">Promise</span>
|
|
2601
2526
|
|
|
2602
2527
|
|
|
2603
2528
|
|
|
2604
|
-
</dd>
|
|
2605
|
-
</dl>
|
|
2606
2529
|
|
|
2607
2530
|
|
|
2608
|
-
|
|
2609
2531
|
|
|
2610
|
-
|
|
2611
|
-
</dd>
|
|
2612
2532
|
|
|
2613
|
-
</dl>
|
|
2614
|
-
|
|
2615
2533
|
|
|
2616
|
-
|
|
2617
2534
|
|
|
2618
|
-
|
|
2619
|
-
<h3 class="subsection-title">Events</h3>
|
|
2620
2535
|
|
|
2621
|
-
<dl>
|
|
2622
|
-
|
|
2623
|
-
<hr>
|
|
2624
|
-
<dt>
|
|
2625
|
-
<h4 class="name" id="event:rotate">rotate</h4>
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
</dt>
|
|
2629
|
-
<dd>
|
|
2630
2536
|
|
|
2631
|
-
|
|
2632
|
-
<div class="description">
|
|
2633
|
-
<p>Emits when a rotation sensor is activated.</p>
|
|
2634
|
-
</div>
|
|
2635
|
-
|
|
2636
2537
|
|
|
2637
|
-
|
|
2638
2538
|
|
|
2539
|
+
|
|
2639
2540
|
|
|
2640
|
-
<h5>Type:
|
|
2641
|
-
<span class="param-type">object</span>
|
|
2642
|
-
|
|
2643
2541
|
|
|
2644
|
-
</h5>
|
|
2645
2542
|
|
|
2646
2543
|
|
|
2647
2544
|
|
|
2648
|
-
|
|
2649
|
-
<h5>Parameters:</h5>
|
|
2650
|
-
|
|
2545
|
+
<h3 class="subsection-title">Events</h3>
|
|
2651
2546
|
|
|
2652
|
-
|
|
2653
|
-
<thead>
|
|
2654
|
-
<tr>
|
|
2655
|
-
|
|
2656
|
-
<th>Name</th>
|
|
2547
|
+
|
|
2657
2548
|
|
|
2658
2549
|
|
|
2659
|
-
<th>Type</th>
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
2550
|
|
|
2663
|
-
|
|
2551
|
+
|
|
2664
2552
|
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2553
|
+
<span class='name-container'>
|
|
2554
|
+
<a class="link-icon" href="#event:rotate">
|
|
2555
|
+
<svg height="20" width="20" style="fill: black;">
|
|
2556
|
+
<use xlink:href="#linkIcon"></use>
|
|
2557
|
+
</svg>
|
|
2558
|
+
</a>
|
|
2559
|
+
<h4 class="name" id="event:rotate">
|
|
2560
|
+
<span class="type-signature"></span>rotate<span class="type-signature"> :object</span>
|
|
2561
|
+
</h4>
|
|
2562
|
+
</span>
|
|
2668
2563
|
|
|
2669
|
-
|
|
2670
|
-
|
|
2564
|
+
|
|
2671
2565
|
|
|
2672
|
-
<tr>
|
|
2673
|
-
|
|
2674
|
-
<td class="name"><code>rotation</code></td>
|
|
2675
|
-
|
|
2676
2566
|
|
|
2677
|
-
<td class="type">
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
<span class="param-type">number</span>
|
|
2681
2567
|
|
|
2568
|
+
<div class="description">
|
|
2569
|
+
<p>Emits when a rotation sensor is activated.</p>
|
|
2570
|
+
</div>
|
|
2682
2571
|
|
|
2683
2572
|
|
|
2684
|
-
|
|
2685
|
-
</td>
|
|
2686
2573
|
|
|
2687
|
-
|
|
2688
2574
|
|
|
2689
|
-
|
|
2690
2575
|
|
|
2691
|
-
<td class="description last"></td>
|
|
2692
|
-
</tr>
|
|
2693
2576
|
|
|
2694
|
-
|
|
2695
|
-
</tbody>
|
|
2696
|
-
</table>
|
|
2697
2577
|
|
|
2698
|
-
|
|
2578
|
+
<h5>Parameters:</h5>
|
|
2579
|
+
|
|
2699
2580
|
|
|
2700
|
-
|
|
2701
|
-
<
|
|
2702
|
-
|
|
2581
|
+
<table class="params">
|
|
2582
|
+
<thead>
|
|
2583
|
+
<tr>
|
|
2584
|
+
|
|
2585
|
+
<th>Name</th>
|
|
2586
|
+
|
|
2703
2587
|
|
|
2704
|
-
|
|
2588
|
+
<th>Type</th>
|
|
2705
2589
|
|
|
2706
|
-
|
|
2590
|
+
|
|
2707
2591
|
|
|
2708
|
-
|
|
2592
|
+
|
|
2709
2593
|
|
|
2710
|
-
|
|
2594
|
+
<th class="last">Description</th>
|
|
2595
|
+
</tr>
|
|
2596
|
+
</thead>
|
|
2711
2597
|
|
|
2598
|
+
<tbody>
|
|
2712
2599
|
|
|
2600
|
+
<tr>
|
|
2601
|
+
|
|
2602
|
+
<td class="name"><code>rotation</code></td>
|
|
2603
|
+
|
|
2713
2604
|
|
|
2714
|
-
|
|
2605
|
+
<td class="type">
|
|
2606
|
+
|
|
2607
|
+
|
|
2608
|
+
<span class="param-type">
|
|
2609
|
+
number
|
|
2610
|
+
</span>
|
|
2715
2611
|
|
|
2716
2612
|
|
|
2717
2613
|
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
2614
|
|
|
2615
|
+
|
|
2616
|
+
</td>
|
|
2728
2617
|
|
|
2618
|
+
|
|
2729
2619
|
|
|
2730
|
-
|
|
2731
|
-
<dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
|
|
2732
|
-
<dd class="tag-source">
|
|
2733
|
-
<ul class="dummy">
|
|
2734
|
-
<li>
|
|
2735
|
-
<a href="devices_tachomotor.js.html">devices/tachomotor.js</a>,
|
|
2736
|
-
<a href="devices_tachomotor.js.html#sunlight-1-line-43">line 43</a>
|
|
2737
|
-
</li>
|
|
2738
|
-
</ul>
|
|
2739
|
-
</dd>
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
</dl>
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2620
|
+
|
|
2753
2621
|
|
|
2754
|
-
|
|
2622
|
+
<td class="description last">
|
|
2623
|
+
|
|
2624
|
+
|
|
2625
|
+
</td>
|
|
2626
|
+
</tr>
|
|
2755
2627
|
|
|
2756
2628
|
|
|
2629
|
+
</tbody>
|
|
2630
|
+
</table>
|
|
2757
2631
|
|
|
2758
|
-
|
|
2759
2632
|
|
|
2760
|
-
|
|
2761
2633
|
|
|
2762
|
-
|
|
2763
|
-
</dd>
|
|
2764
2634
|
|
|
2765
|
-
</dl>
|
|
2766
|
-
|
|
2767
|
-
</article>
|
|
2768
2635
|
|
|
2769
|
-
|
|
2636
|
+
<dl class="details">
|
|
2770
2637
|
|
|
2638
|
+
|
|
2771
2639
|
|
|
2640
|
+
|
|
2772
2641
|
|
|
2642
|
+
|
|
2773
2643
|
|
|
2774
|
-
|
|
2775
|
-
</div>
|
|
2644
|
+
|
|
2776
2645
|
|
|
2777
|
-
|
|
2646
|
+
|
|
2778
2647
|
|
|
2779
|
-
|
|
2780
|
-
<div class="col-md-3">
|
|
2781
|
-
<div id="toc" class="col-md-3 hidden-xs hidden-sm hidden-md"></div>
|
|
2782
|
-
</div>
|
|
2783
|
-
|
|
2648
|
+
|
|
2784
2649
|
|
|
2785
|
-
|
|
2786
|
-
</div>
|
|
2650
|
+
|
|
2787
2651
|
|
|
2652
|
+
|
|
2788
2653
|
|
|
2789
|
-
|
|
2790
|
-
<div class="modal-dialog">
|
|
2791
|
-
<div class="modal-content">
|
|
2792
|
-
<div class="modal-header">
|
|
2793
|
-
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
2794
|
-
<h4 class="modal-title">Search results</h4>
|
|
2795
|
-
</div>
|
|
2796
|
-
<div class="modal-body"></div>
|
|
2797
|
-
<div class="modal-footer">
|
|
2798
|
-
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
2799
|
-
</div>
|
|
2800
|
-
</div><!-- /.modal-content -->
|
|
2801
|
-
</div><!-- /.modal-dialog -->
|
|
2802
|
-
</div>
|
|
2654
|
+
|
|
2803
2655
|
|
|
2656
|
+
|
|
2804
2657
|
|
|
2805
|
-
|
|
2658
|
+
|
|
2806
2659
|
|
|
2660
|
+
|
|
2807
2661
|
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2662
|
+
|
|
2663
|
+
<dt class="tag-source">Source:</dt>
|
|
2664
|
+
<dd class="tag-source">
|
|
2665
|
+
<ul class="dummy">
|
|
2666
|
+
<li>
|
|
2667
|
+
<a href="devices_tachomotor.js.html">devices/tachomotor.js</a>, <a href="devices_tachomotor.js.html#line43">line 43</a>
|
|
2668
|
+
</li>
|
|
2669
|
+
</ul>
|
|
2670
|
+
</dd>
|
|
2671
|
+
|
|
2811
2672
|
|
|
2812
|
-
|
|
2813
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a>
|
|
2814
|
-
|
|
2815
|
-
on Tue Apr 6th 2021
|
|
2816
|
-
|
|
2817
|
-
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
|
2818
|
-
</span>
|
|
2819
|
-
</footer>
|
|
2673
|
+
|
|
2820
2674
|
|
|
2821
|
-
|
|
2822
|
-
<script src="scripts/toc.js"></script>
|
|
2675
|
+
|
|
2823
2676
|
|
|
2824
|
-
|
|
2677
|
+
|
|
2678
|
+
</dl>
|
|
2825
2679
|
|
|
2826
2680
|
|
|
2827
|
-
<script>
|
|
2828
|
-
$( function () {
|
|
2829
|
-
$( "[id*='$']" ).each( function () {
|
|
2830
|
-
var $this = $( this );
|
|
2831
2681
|
|
|
2832
|
-
$this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) );
|
|
2833
|
-
} );
|
|
2834
2682
|
|
|
2835
|
-
$( ".tutorial-section pre, .readme-section pre, pre.prettyprint.source" ).each( function () {
|
|
2836
|
-
var $this = $( this );
|
|
2837
2683
|
|
|
2838
|
-
var example = $this.find( "code" );
|
|
2839
|
-
exampleText = example.html();
|
|
2840
|
-
var lang = /{@lang (.*?)}/.exec( exampleText );
|
|
2841
|
-
if ( lang && lang[1] ) {
|
|
2842
|
-
exampleText = exampleText.replace( lang[0], "" );
|
|
2843
|
-
example.html( exampleText );
|
|
2844
|
-
lang = lang[1];
|
|
2845
|
-
} else {
|
|
2846
|
-
var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/);
|
|
2847
|
-
lang = langClassMatch ? langClassMatch[1] : "javascript";
|
|
2848
|
-
}
|
|
2849
2684
|
|
|
2850
|
-
if ( lang ) {
|
|
2851
2685
|
|
|
2852
|
-
$this
|
|
2853
|
-
.addClass( "sunlight-highlight-" + lang )
|
|
2854
|
-
.addClass( "linenums" )
|
|
2855
|
-
.html( example.html() );
|
|
2856
2686
|
|
|
2857
|
-
}
|
|
2858
|
-
} );
|
|
2859
2687
|
|
|
2860
|
-
Sunlight.highlightAll( {
|
|
2861
|
-
lineNumbers : true,
|
|
2862
|
-
showMenu : true,
|
|
2863
|
-
enableDoclinks : true
|
|
2864
|
-
} );
|
|
2865
2688
|
|
|
2866
|
-
$.catchAnchorLinks( {
|
|
2867
|
-
navbarOffset: 10
|
|
2868
|
-
} );
|
|
2869
|
-
$( "#toc" ).toc( {
|
|
2870
|
-
anchorName : function ( i, heading, prefix ) {
|
|
2871
|
-
return $( heading ).attr( "id" ) || ( prefix + i );
|
|
2872
|
-
},
|
|
2873
|
-
selectors : "#toc-content h1,#toc-content h2,#toc-content h3,#toc-content h4",
|
|
2874
|
-
showAndHide : false,
|
|
2875
|
-
smoothScrolling: true
|
|
2876
|
-
} );
|
|
2877
2689
|
|
|
2878
|
-
$( "#main span[id^='toc']" ).addClass( "toc-shim" );
|
|
2879
|
-
$( '.dropdown-toggle' ).dropdown();
|
|
2880
2690
|
|
|
2881
|
-
$( "table" ).each( function () {
|
|
2882
|
-
var $this = $( this );
|
|
2883
|
-
$this.addClass('table');
|
|
2884
|
-
} );
|
|
2885
2691
|
|
|
2886
|
-
} );
|
|
2887
|
-
</script>
|
|
2888
2692
|
|
|
2693
|
+
|
|
2694
|
+
|
|
2695
|
+
</article>
|
|
2696
|
+
</section>
|
|
2889
2697
|
|
|
2890
2698
|
|
|
2891
|
-
<!--Navigation and Symbol Display-->
|
|
2892
2699
|
|
|
2893
2700
|
|
|
2894
|
-
|
|
2701
|
+
</div>
|
|
2895
2702
|
|
|
2703
|
+
<br class="clear">
|
|
2896
2704
|
|
|
2705
|
+
<footer>
|
|
2706
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.7</a>
|
|
2707
|
+
</footer>
|
|
2897
2708
|
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
SearcherDisplay.init();
|
|
2901
|
-
});
|
|
2902
|
-
</script>
|
|
2709
|
+
<script src="scripts/linenumber.js"></script>
|
|
2710
|
+
<script src="scripts/pagelocation.js"></script>
|
|
2903
2711
|
|
|
2712
|
+
|
|
2904
2713
|
|
|
2905
2714
|
</body>
|
|
2906
2715
|
</html>
|