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