node-poweredup 6.11.0 → 8.0.1

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