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
@@ -1,1565 +1,1426 @@
1
1
  <!DOCTYPE html>
2
-
3
2
  <html lang="en">
4
3
  <head>
5
- <meta charset="utf-8">
6
- <meta name="viewport" content="width=device-width">
7
- <title>node-poweredup Class: MediumLinearMotor</title>
8
4
 
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/sunlight.default.css">
5
+ <meta charset="utf-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+
8
+ <title>
9
+ MediumLinearMotor - Documentation
10
+ </title>
11
+
12
+ <link href="https://www.braintreepayments.com/images/favicon-ccda0b14.png" rel="icon" type="image/png">
13
+
14
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.7.0/highlight.min.js"></script>
15
+ <script>hljs.initHighlightingOnLoad();</script>
13
16
 
14
- <link type="text/css" rel="stylesheet" href="styles/site.simplex.css">
17
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
15
18
 
19
+ <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
20
+ <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
21
+
22
+
23
+
24
+
25
+ <!-- start Mixpanel -->
26
+ <script type="text/javascript">(function(e,a){if(!a.__SV){var b=window;try{var c,l,i,j=b.location,g=j.hash;c=function(a,b){return(l=a.match(RegExp(b+"=([^&]*)")))?l[1]:null};g&&c(g,"state")&&(i=JSON.parse(decodeURIComponent(c(g,"state"))),"mpeditor"===i.action&&(b.sessionStorage.setItem("_mpcehash",g),history.replaceState(i.desiredHash||"",e.title,j.pathname+j.search)))}catch(m){}var k,h;window.mixpanel=a;a._i=[];a.init=function(b,c,f){function e(b,a){var c=a.split(".");2==c.length&&(b=b[c[0]],a=c[1]);b[a]=function(){b.push([a].concat(Array.prototype.slice.call(arguments,
27
+ 0)))}}var d=a;"undefined"!==typeof f?d=a[f]=[]:f="mixpanel";d.people=d.people||[];d.toString=function(b){var a="mixpanel";"mixpanel"!==f&&(a+="."+f);b||(a+=" (stub)");return a};d.people.toString=function(){return d.toString(1)+".people (stub)"};k="disable time_event track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config reset people.set people.set_once people.increment people.append people.union people.track_charge people.clear_charges people.delete_user".split(" ");
28
+ for(h=0;h<k.length;h++)e(d,k[h]);a._i.push([b,c,f])};a.__SV=1.2;b=e.createElement("script");b.type="text/javascript";b.async=!0;b.src="undefined"!==typeof MIXPANEL_CUSTOM_LIB_URL?MIXPANEL_CUSTOM_LIB_URL:"file:"===e.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js";c=e.getElementsByTagName("script")[0];c.parentNode.insertBefore(b,c)}})(document,window.mixpanel||[]);
29
+ mixpanel.init("1919205b2da72e4da3b9b6639b444d59");</script>
30
+ <!-- end Mixpanel -->
16
31
  </head>
17
32
 
18
33
  <body>
34
+ <svg style="display: none;">
35
+ <defs>
36
+ <symbol id="linkIcon" fill="#706d77" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
37
+ <path d="M0 0h24v24H0z" fill="none"/>
38
+ <path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/>
39
+ </symbol>
40
+ </defs>
41
+ </svg>
42
+
43
+ <input type="checkbox" id="nav-trigger" class="nav-trigger" />
44
+ <label for="nav-trigger" class="navicon-button x">
45
+ <div class="navicon"></div>
46
+ </label>
47
+
48
+ <label for="nav-trigger" class="overlay"></label>
49
+
50
+ <div class="top-nav-wrapper">
51
+ <ul>
52
+ <li >
53
+ <a href="index.html">
54
+
55
+ <svg fill="#6D6D6D" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
56
+ <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
57
+ <path d="M0 0h24v24H0z" fill="none"/>
58
+ </svg>
59
+
60
+
61
+ </a>
62
+ </li>
63
+
64
+
19
65
 
20
- <div class="navbar navbar-default navbar-fixed-top navbar-inverse">
21
- <div class="container">
22
- <div class="navbar-header">
23
- <a class="navbar-brand" href="index.html">node-poweredup</a>
24
- <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation">
25
- <span class="icon-bar"></span>
26
- <span class="icon-bar"></span>
27
- <span class="icon-bar"></span>
28
- </button>
29
- </div>
30
- <div class="navbar-collapse collapse" id="topNavigation">
31
- <ul class="nav navbar-nav">
32
-
33
- <li class="dropdown">
34
- <a href="classes.list.html" class="dropdown-toggle" data-toggle="dropdown">Classes<b class="caret"></b></a>
35
- <ul class="dropdown-menu ">
36
- <li><a href="AbsoluteMotor.html">AbsoluteMotor</a></li><li><a href="BaseHub.html">BaseHub</a></li><li><a href="BasicMotor.html">BasicMotor</a></li><li><a href="ColorDistanceSensor.html">ColorDistanceSensor</a></li><li><a href="CurrentSensor.html">CurrentSensor</a></li><li><a href="Device.html">Device</a></li><li><a href="DuploTrainBase.html">DuploTrainBase</a></li><li><a href="DuploTrainBaseColorSensor.html">DuploTrainBaseColorSensor</a></li><li><a href="DuploTrainBaseMotor.html">DuploTrainBaseMotor</a></li><li><a href="DuploTrainBaseSpeaker.html">DuploTrainBaseSpeaker</a></li><li><a href="DuploTraniBaseSpeedometer.html">DuploTraniBaseSpeedometer</a></li><li><a href="Hub.html">Hub</a></li><li><a href="HubLED.html">HubLED</a></li><li><a href="Light.html">Light</a></li><li><a href="LPF2Hub.html">LPF2Hub</a></li><li><a href="Mario.html">Mario</a></li><li><a href="MarioAccelerometer.html">MarioAccelerometer</a></li><li><a href="MarioBarcodeSensor.html">MarioBarcodeSensor</a></li><li><a href="MarioPantsSensor.html">MarioPantsSensor</a></li><li><a href="MediumLinearMotor.html">MediumLinearMotor</a></li><li><a href="MotionSensor.html">MotionSensor</a></li><li><a href="MoveHub.html">MoveHub</a></li><li><a href="MoveHubMediumLinearMotor.html">MoveHubMediumLinearMotor</a></li><li><a href="MoveHubTiltSensor.html">MoveHubTiltSensor</a></li><li><a href="PiezoBuzzer.html">PiezoBuzzer</a></li><li><a href="RemoteControl.html">RemoteControl</a></li><li><a href="RemoteControlButton.html">RemoteControlButton</a></li><li><a href="SimpleMediumLinearMotor.html">SimpleMediumLinearMotor</a></li><li><a href="TachoMotor.html">TachoMotor</a></li><li><a href="TechnicColorSensor.html">TechnicColorSensor</a></li><li><a href="TechnicDistanceSensor.html">TechnicDistanceSensor</a></li><li><a href="TechnicForceSensor.html">TechnicForceSensor</a></li><li><a href="TechnicLargeAngularMotor.html">TechnicLargeAngularMotor</a></li><li><a href="TechnicLargeLinearMotor.html">TechnicLargeLinearMotor</a></li><li><a href="TechnicMediumAngularMotor.html">TechnicMediumAngularMotor</a></li><li><a href="TechnicMediumHub.html">TechnicMediumHub</a></li><li><a href="TechnicMediumHubAccelerometerSensor.html">TechnicMediumHubAccelerometerSensor</a></li><li><a href="TechnicMediumHubGyroSensor.html">TechnicMediumHubGyroSensor</a></li><li><a href="TechnicMediumHubTiltSensor.html">TechnicMediumHubTiltSensor</a></li><li><a href="TechnicXLargeLinearMotor.html">TechnicXLargeLinearMotor</a></li><li><a href="TiltSensor.html">TiltSensor</a></li><li><a href="TrainMotor.html">TrainMotor</a></li><li><a href="VoltageSensor.html">VoltageSensor</a></li><li><a href="WeDo2SmartHub.html">WeDo2SmartHub</a></li>
37
- </ul>
38
- </li>
39
-
40
- <li class="dropdown">
41
- <a href="events.list.html" class="dropdown-toggle" data-toggle="dropdown">Events<b class="caret"></b></a>
42
- <ul class="dropdown-menu ">
43
- <li><a href="AbsoluteMotor.html#event:absolute">AbsoluteMotor#event:absolute</a></li><li><a href="AbsoluteMotor.html#event:rotate">AbsoluteMotor#event:rotate</a></li><li><a href="ColorDistanceSensor.html#event:color">ColorDistanceSensor#event:color</a></li><li><a href="ColorDistanceSensor.html#event:colorAndDistance">ColorDistanceSensor#event:colorAndDistance</a></li><li><a href="ColorDistanceSensor.html#event:distance">ColorDistanceSensor#event:distance</a></li><li><a href="CurrentSensor.html#event:current">CurrentSensor#event:current</a></li><li><a href="DuploTrainBase.html#event:button">DuploTrainBase#event:button</a></li><li><a href="DuploTrainBaseColorSensor.html#event:color">DuploTrainBaseColorSensor#event:color</a></li><li><a href="DuploTrainBaseColorSensor.html#event:reflect">DuploTrainBaseColorSensor#event:reflect</a></li><li><a href="DuploTrainBaseColorSensor.html#event:rgb">DuploTrainBaseColorSensor#event:rgb</a></li><li><a href="DuploTrainBaseSpeedometer.html#event:speed">DuploTrainBaseSpeedometer#event:speed</a></li><li><a href="Hub.html#event:attach">Hub#event:attach</a></li><li><a href="Hub.html#event:button">Hub#event:button</a></li><li><a href="Hub.html#event:detach">Hub#event:detach</a></li><li><a href="Hub.html#event:disconnect">Hub#event:disconnect</a></li><li><a href="LPF2Hub.html#event:button">LPF2Hub#event:button</a></li><li><a href="Mario.html#event:button">Mario#event:button</a></li><li><a href="MarioAccelerometer.html#event:accel">MarioAccelerometer#event:accel</a></li><li><a href="MarioAccelerometer.html#event:gest">MarioAccelerometer#event:gest</a></li><li><a href="MarioBarcodeSensor.html#event:barcode">MarioBarcodeSensor#event:barcode</a></li><li><a href="MarioBarcodeSensor.html#event:rgb">MarioBarcodeSensor#event:rgb</a></li><li><a href="MarioPantsSensor.html#event:pants">MarioPantsSensor#event:pants</a></li><li><a href="MediumLinearMotor.html#event:rotate">MediumLinearMotor#event:rotate</a></li><li><a href="MotionSensor.html#event:distance">MotionSensor#event:distance</a></li><li><a href="MoveHub.html#event:button">MoveHub#event:button</a></li><li><a href="MoveHubMediumLinearMotor.html#event:rotate">MoveHubMediumLinearMotor#event:rotate</a></li><li><a href="MoveHubTiltSensor.html#event:tilt">MoveHubTiltSensor#event:tilt</a></li><li><a href="RemoteControl.html#event:button">RemoteControl#event:button</a></li><li><a href="RemoteControlButton.html#event:button">RemoteControlButton#event:button</a></li><li><a href="TachoMotor.html#event:rotate">TachoMotor#event:rotate</a></li><li><a href="TechnicColorSensor.html#event:ambient">TechnicColorSensor#event:ambient</a></li><li><a href="TechnicColorSensor.html#event:color">TechnicColorSensor#event:color</a></li><li><a href="TechnicColorSensor.html#event:reflect">TechnicColorSensor#event:reflect</a></li><li><a href="TechnicDistanceSensor.html#event:distance">TechnicDistanceSensor#event:distance</a></li><li><a href="TechnicDistanceSensor.html#event:fastDistance">TechnicDistanceSensor#event:fastDistance</a></li><li><a href="TechnicForceSensor.html#event:force">TechnicForceSensor#event:force</a></li><li><a href="TechnicForceSensor.html#event:tapped">TechnicForceSensor#event:tapped</a></li><li><a href="TechnicForceSensor.html#event:touch">TechnicForceSensor#event:touch</a></li><li><a href="TechnicLargeAngularMotor.html#event:absolute">TechnicLargeAngularMotor#event:absolute</a></li><li><a href="TechnicLargeAngularMotor.html#event:rotate">TechnicLargeAngularMotor#event:rotate</a></li><li><a href="TechnicLargeLinearMotor.html#event:absolute">TechnicLargeLinearMotor#event:absolute</a></li><li><a href="TechnicLargeLinearMotor.html#event:rotate">TechnicLargeLinearMotor#event:rotate</a></li><li><a href="TechnicMediumAngularMotor.html#event:absolute">TechnicMediumAngularMotor#event:absolute</a></li><li><a href="TechnicMediumAngularMotor.html#event:rotate">TechnicMediumAngularMotor#event:rotate</a></li><li><a href="TechnicMediumHub.html#event:button">TechnicMediumHub#event:button</a></li><li><a href="TechnicMediumHubAccelerometerSensor.html#event:accel">TechnicMediumHubAccelerometerSensor#event:accel</a></li><li><a href="TechnicMediumHubGyroSensor.html#event:gyro">TechnicMediumHubGyroSensor#event:gyro</a></li><li><a href="TechnicMediumHubTiltSensor.html#event:tilt">TechnicMediumHubTiltSensor#event:tilt</a></li><li><a href="TechnicXLargeLinearMotor.html#event:absolute">TechnicXLargeLinearMotor#event:absolute</a></li><li><a href="TechnicXLargeLinearMotor.html#event:rotate">TechnicXLargeLinearMotor#event:rotate</a></li><li><a href="TiltSensor.html#event:tilt">TiltSensor#event:tilt</a></li><li><a href="VoltageSensor.html#event:voltage">VoltageSensor#event:voltage</a></li><li><a href="WeDo2SmartHub.html#event:button">WeDo2SmartHub#event:button</a></li>
44
- </ul>
45
- </li>
46
-
47
- </ul>
48
-
49
- <div class="col-sm-3 col-md-3">
50
- <form class="navbar-form" role="search">
51
- <div class="input-group">
52
- <input type="text" class="form-control" placeholder="Search" name="q" id="search-input">
53
- <div class="input-group-btn">
54
- <button class="btn btn-default" id="search-submit"><i class="glyphicon glyphicon-search"></i></button>
55
- </div>
56
- </div>
57
- </form>
58
- </div>
59
-
60
- </div>
66
+ </ul>
67
+ </div>
61
68
 
62
- </div>
63
- </div>
69
+ <nav>
70
+ <h3 class="reference-title">
71
+ node-poweredup Reference
72
+ </h3>
64
73
 
74
+
65
75
 
66
- <div class="container" id="toc-content">
67
- <div class="row">
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>
68
78
 
69
-
70
- <div class="col-md-8">
71
-
72
- <div id="main">
73
-
79
+ <div id="main">
80
+
81
+ <h1 class="page-title">
82
+ MediumLinearMotor
83
+ </h1>
84
+
74
85
 
75
- <h1 class="page-title">Class: MediumLinearMotor</h1>
76
- <section>
86
+
77
87
 
78
- <header>
88
+ <section>
89
+ <header>
79
90
 
80
- <h2>
91
+ <h2>
92
+
81
93
  MediumLinearMotor
82
- </h2>
83
94
 
84
-
85
- </header>
95
+ </h2>
86
96
 
97
+
98
+
99
+ </header>
87
100
 
88
- <article>
101
+ <article>
89
102
  <div class="container-overview">
90
-
103
+
91
104
 
92
- <hr>
93
- <dt>
94
- <h4 class="name" id="MediumLinearMotor"><span class="type-signature"></span>new MediumLinearMotor()</h4>
95
-
96
-
97
- </dt>
98
- <dd>
99
105
 
100
-
101
106
 
102
-
107
+
103
108
 
104
-
109
+ <span class='name-container'>
110
+ <a class="link-icon" href="#MediumLinearMotor">
111
+ <svg height="20" width="20" style="fill: black;">
112
+ <use xlink:href="#linkIcon"></use>
113
+ </svg>
114
+ </a>
115
+ <h4 class="name" id="MediumLinearMotor">
116
+ <span class="type-signature"></span>new MediumLinearMotor<span class="signature">()</span><span class="type-signature"></span>
117
+ </h4>
118
+ </span>
105
119
 
106
-
107
-
120
+
108
121
 
109
-
110
- <dl class="details">
111
-
112
122
 
113
-
114
123
 
115
-
116
124
 
117
-
118
125
 
119
-
120
126
 
121
-
122
127
 
123
-
124
128
 
125
-
126
129
 
127
-
128
130
 
129
-
130
131
 
131
-
132
132
 
133
-
133
+ <dl class="details">
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
134
142
 
135
-
143
+
136
144
 
145
+
137
146
 
147
+
138
148
 
139
-
140
- <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
141
- <dd class="tag-source">
142
- <ul class="dummy">
143
- <li>
144
- <a href="devices_mediumlinearmotor.js.html">devices/mediumlinearmotor.js</a>,
145
- <a href="devices_mediumlinearmotor.js.html#sunlight-1-line-25">line 25</a>
146
- </li>
147
- </ul>
148
- </dd>
149
-
149
+
150
150
 
151
-
151
+
152
152
 
153
-
153
+
154
154
 
155
-
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_mediumlinearmotor.js.html">devices/mediumlinearmotor.js</a>, <a href="devices_mediumlinearmotor.js.html#line25">line 25</a>
165
+ </li>
166
+ </ul>
167
+ </dd>
168
+
169
+
170
+
171
+
172
+
173
+
174
+
156
175
  </dl>
157
176
 
158
177
 
159
-
160
178
 
161
-
162
179
 
163
-
164
180
 
165
-
166
181
 
167
-
168
182
 
169
-
170
183
 
171
-
172
- </dd>
173
184
 
174
-
175
- </div>
176
185
 
177
-
178
- <h3 class="subsection-title">Extends</h3>
179
186
 
180
-
181
187
 
182
188
 
183
- <ul>
184
- <li><a href="TachoMotor.html">TachoMotor</a></li>
185
- </ul>
186
189
 
190
+
191
+ </div>
187
192
 
188
193
 
194
+ <h3 class="subsection-title">Extends</h3>
189
195
 
190
-
196
+
191
197
 
192
-
193
198
 
194
-
199
+ <ul>
200
+ <li><a href="TachoMotor.html">TachoMotor</a></li>
201
+ </ul>
195
202
 
196
-
197
203
 
198
204
 
199
205
 
200
206
 
201
- <h3 class="subsection-title">Methods</h3>
202
207
 
203
- <dl>
204
-
205
- <hr>
206
- <dt>
207
- <h4 class="name" id="rotateByDegrees"><span class="type-signature"></span>rotateByDegrees(degrees [, speed])</h4>
208
-
209
208
 
210
- </dt>
211
- <dd>
212
209
 
213
-
214
- <div class="description">
215
- <p>Rotate a motor by a given amount of degrees.</p>
216
- </div>
217
-
210
+
218
211
 
219
212
 
220
213
 
221
214
 
222
215
 
223
216
 
224
-
225
- <h5>Parameters:</h5>
217
+ <h3 class="subsection-title">Methods</h3>
218
+
219
+
226
220
 
227
221
 
228
- <table class="params table table-striped">
229
- <thead>
222
+
223
+
224
+
225
+ <span class='name-container'>
226
+ <a class="link-icon" href="#rotateByDegrees">
227
+ <svg height="20" width="20" style="fill: black;">
228
+ <use xlink:href="#linkIcon"></use>
229
+ </svg>
230
+ </a>
231
+ <h4 class="name" id="rotateByDegrees">
232
+ <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>
233
+ </h4>
234
+ </span>
235
+
236
+
237
+
238
+
239
+
240
+ <div class="description">
241
+ <p>Rotate a motor by a given amount of degrees.</p>
242
+ </div>
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+ <h5>Parameters:</h5>
251
+
252
+
253
+ <table class="params">
254
+ <thead>
230
255
  <tr>
231
-
256
+
232
257
  <th>Name</th>
233
-
258
+
234
259
 
235
- <th>Type</th>
260
+ <th>Type</th>
236
261
 
237
-
238
- <th>Argument</th>
239
-
262
+
263
+ <th>Attributes</th>
264
+
240
265
 
241
-
266
+
242
267
  <th>Default</th>
243
-
268
+
244
269
 
245
- <th class="last">Description</th>
270
+ <th class="last">Description</th>
246
271
  </tr>
247
- </thead>
272
+ </thead>
248
273
 
249
- <tbody>
274
+ <tbody>
250
275
 
276
+ <tr>
277
+
278
+ <td class="name"><code>degrees</code></td>
279
+
251
280
 
252
- <tr>
253
-
254
- <td class="name"><code>degrees</code></td>
281
+ <td class="type">
282
+
255
283
 
284
+ <span class="param-type">
285
+ number
286
+ </span>
256
287
 
257
- <td class="type">
258
-
259
-
260
- <span class="param-type">number</span>
288
+
261
289
 
262
290
 
291
+
292
+ </td>
263
293
 
294
+
295
+ <td class="attributes">
264
296
 
265
- </td>
266
297
 
267
298
 
268
- <td class="attributes">
269
-
270
-
271
-
272
299
 
273
-
274
- </td>
275
300
 
301
+ </td>
302
+
276
303
 
304
+
305
+ <td class="default">
277
306
 
278
- <td class="default">
279
-
280
- </td>
281
-
307
+ </td>
308
+
282
309
 
283
- <td class="description last"><p>How much the motor should be rotated (in degrees).</p></td>
284
- </tr>
310
+ <td class="description last">
311
+ <p>How much the motor should be rotated (in degrees).</p>
312
+
313
+ </td>
314
+ </tr>
285
315
 
286
316
 
317
+ <tr>
318
+
319
+ <td class="name"><code>speed</code></td>
320
+
287
321
 
288
- <tr>
289
-
290
- <td class="name"><code>speed</code></td>
322
+ <td class="type">
323
+
291
324
 
325
+ <span class="param-type">
326
+ number
327
+ </span>
292
328
 
293
- <td class="type">
294
-
295
-
296
- <span class="param-type">number</span>
329
+
297
330
 
298
331
 
332
+
333
+ </td>
299
334
 
335
+
336
+ <td class="attributes">
300
337
 
301
- </td>
302
-
338
+ &lt;optional><br>
303
339
 
304
- <td class="attributes">
305
-
306
- &lt;optional><br>
307
-
308
340
 
309
-
341
+
310
342
 
311
-
312
- </td>
313
343
 
344
+ </td>
345
+
314
346
 
347
+
348
+ <td class="default">
315
349
 
316
- <td class="default">
317
-
318
- 100
319
-
320
- </td>
350
+ 100
321
351
 
352
+ </td>
353
+
322
354
 
323
- <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>
324
- </tr>
355
+ <td class="description last">
356
+ <p>For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.</p>
357
+
358
+ </td>
359
+ </tr>
325
360
 
326
361
 
327
- </tbody>
362
+ </tbody>
328
363
  </table>
329
364
 
330
-
331
365
 
332
-
333
- <dl class="details">
334
-
335
366
 
336
-
337
367
 
338
-
339
368
 
340
-
341
- <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
342
- <dd class="inherited-from">
343
- <ul class="dummy">
344
- <li>
345
- <a href="TachoMotor.html#rotateByDegrees">TachoMotor#rotateByDegrees</a>
346
- </li>
347
- </ul>
348
- </dd>
349
-
369
+ <dl class="details">
350
370
 
351
-
371
+
352
372
 
353
-
373
+
354
374
 
355
-
375
+
376
+ <dt class="inherited-from">Inherited From:</dt>
377
+ <dd class="inherited-from">
378
+ <ul class="dummy">
379
+ <li>
380
+ <a href="TachoMotor.html#rotateByDegrees">TachoMotor#rotateByDegrees</a>
381
+ </li>
382
+ </ul>
383
+ </dd>
384
+
356
385
 
357
-
386
+
387
+
388
+
358
389
 
359
-
390
+
360
391
 
361
-
392
+
362
393
 
363
-
394
+
364
395
 
365
-
396
+
366
397
 
367
-
398
+
368
399
 
400
+
369
401
 
402
+
370
403
 
371
-
372
- <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
373
- <dd class="tag-source">
374
- <ul class="dummy">
375
- <li>
376
- <a href="devices_tachomotor.js.html">devices/tachomotor.js</a>,
377
- <a href="devices_tachomotor.js.html#sunlight-1-line-138">line 138</a>
378
- </li>
379
- </ul>
380
- </dd>
381
-
404
+
405
+ <dt class="tag-source">Source:</dt>
406
+ <dd class="tag-source">
407
+ <ul class="dummy">
408
+ <li>
409
+ <a href="devices_tachomotor.js.html">devices/tachomotor.js</a>, <a href="devices_tachomotor.js.html#line138">line 138</a>
410
+ </li>
411
+ </ul>
412
+ </dd>
413
+
382
414
 
383
-
415
+
384
416
 
385
-
417
+
386
418
 
387
-
419
+
388
420
  </dl>
389
421
 
390
422
 
391
-
392
423
 
393
-
394
424
 
395
-
396
425
 
397
-
398
426
 
399
-
400
427
 
401
-
402
- <h5>Returns:</h5>
403
-
404
-
405
- <div class="param-desc">
406
- <p>Resolved upon successful completion of command (ie. once the motor is finished).</p>
407
- </div>
408
428
 
409
429
 
410
430
 
411
- <dl>
412
- <dt>
413
- Type
414
- </dt>
415
- <dd>
431
+
432
+
433
+
434
+
435
+
416
436
 
417
- <span class="param-type">Promise</span>
418
437
 
419
438
 
439
+
420
440
 
421
- </dd>
422
- </dl>
441
+ <span class='name-container'>
442
+ <a class="link-icon" href="#setAccelerationTime">
443
+ <svg height="20" width="20" style="fill: black;">
444
+ <use xlink:href="#linkIcon"></use>
445
+ </svg>
446
+ </a>
447
+ <h4 class="name" id="setAccelerationTime">
448
+ <span class="type-signature"></span>setAccelerationTime<span class="signature">(time)</span><span class="type-signature"> &rarr; {Promise}</span>
449
+ </h4>
450
+ </span>
423
451
 
452
+
424
453
 
425
-
426
454
 
427
-
428
- </dd>
429
455
 
430
-
431
-
432
- <hr>
433
- <dt>
434
- <h4 class="name" id="setAccelerationTime"><span class="type-signature"></span>setAccelerationTime(time)</h4>
435
-
436
-
437
- </dt>
438
- <dd>
456
+ <div class="description">
457
+ <p>Set the global acceleration time</p>
458
+ </div>
439
459
 
440
-
441
- <div class="description">
442
- <p>Set the global acceleration time</p>
443
- </div>
444
-
445
460
 
446
-
447
461
 
448
-
449
462
 
450
-
451
-
452
- <h5>Parameters:</h5>
453
-
454
463
 
455
- <table class="params table table-striped">
456
- <thead>
464
+
465
+
466
+ <h5>Parameters:</h5>
467
+
468
+
469
+ <table class="params">
470
+ <thead>
457
471
  <tr>
458
-
472
+
459
473
  <th>Name</th>
460
-
474
+
461
475
 
462
- <th>Type</th>
476
+ <th>Type</th>
463
477
 
464
-
478
+
465
479
 
466
-
480
+
467
481
 
468
- <th class="last">Description</th>
482
+ <th class="last">Description</th>
469
483
  </tr>
470
- </thead>
484
+ </thead>
471
485
 
472
- <tbody>
486
+ <tbody>
473
487
 
488
+ <tr>
489
+
490
+ <td class="name"><code>time</code></td>
491
+
474
492
 
475
- <tr>
476
-
477
- <td class="name"><code>time</code></td>
478
-
479
-
480
- <td class="type">
493
+ <td class="type">
494
+
481
495
 
482
-
483
- <span class="param-type">number</span>
496
+ <span class="param-type">
497
+ number
498
+ </span>
484
499
 
500
+
485
501
 
486
502
 
487
-
488
- </td>
503
+
504
+ </td>
489
505
 
490
-
506
+
491
507
 
492
-
508
+
493
509
 
494
- <td class="description last"><p>How long acceleration should last (in milliseconds).</p></td>
495
- </tr>
510
+ <td class="description last">
511
+ <p>How long acceleration should last (in milliseconds).</p>
512
+
513
+ </td>
514
+ </tr>
496
515
 
497
516
 
498
- </tbody>
517
+ </tbody>
499
518
  </table>
500
519
 
501
-
502
520
 
503
-
504
- <dl class="details">
505
-
506
521
 
507
-
508
522
 
509
-
510
523
 
511
-
512
- <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
513
- <dd class="inherited-from">
514
- <ul class="dummy">
515
- <li>
516
- <a href="TachoMotor.html#setAccelerationTime">TachoMotor#setAccelerationTime</a>
517
- </li>
518
- </ul>
519
- </dd>
520
-
524
+ <dl class="details">
525
+
526
+
521
527
 
522
-
528
+
523
529
 
524
-
530
+
531
+ <dt class="inherited-from">Inherited From:</dt>
532
+ <dd class="inherited-from">
533
+ <ul class="dummy">
534
+ <li>
535
+ <a href="TachoMotor.html#setAccelerationTime">TachoMotor#setAccelerationTime</a>
536
+ </li>
537
+ </ul>
538
+ </dd>
539
+
525
540
 
526
-
541
+
527
542
 
528
-
543
+
529
544
 
530
-
545
+
531
546
 
532
-
547
+
533
548
 
534
-
549
+
535
550
 
536
-
551
+
537
552
 
538
-
553
+
539
554
 
555
+
540
556
 
557
+
541
558
 
542
-
543
- <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
544
- <dd class="tag-source">
545
- <ul class="dummy">
546
- <li>
547
- <a href="devices_tachomotor.js.html">devices/tachomotor.js</a>,
548
- <a href="devices_tachomotor.js.html#sunlight-1-line-73">line 73</a>
549
- </li>
550
- </ul>
551
- </dd>
552
-
559
+
560
+ <dt class="tag-source">Source:</dt>
561
+ <dd class="tag-source">
562
+ <ul class="dummy">
563
+ <li>
564
+ <a href="devices_tachomotor.js.html">devices/tachomotor.js</a>, <a href="devices_tachomotor.js.html#line73">line 73</a>
565
+ </li>
566
+ </ul>
567
+ </dd>
568
+
553
569
 
554
-
570
+
555
571
 
556
-
572
+
557
573
 
558
-
574
+
559
575
  </dl>
560
576
 
561
577
 
562
-
563
-
564
-
565
578
 
566
-
567
579
 
568
-
569
580
 
570
-
571
581
 
572
-
573
- <h5>Returns:</h5>
574
-
575
-
576
- <div class="param-desc">
577
- <p>Resolved upon successful completion of command (ie. once the motor is finished).</p>
578
- </div>
579
582
 
580
583
 
581
584
 
582
- <dl>
583
- <dt>
584
- Type
585
- </dt>
586
- <dd>
587
-
588
- <span class="param-type">Promise</span>
589
585
 
590
586
 
591
587
 
592
- </dd>
593
- </dl>
594
588
 
595
589
 
590
+
596
591
 
597
592
 
598
-
599
- </dd>
600
593
 
601
-
602
-
603
- <hr>
604
- <dt>
605
- <h4 class="name" id="setBrakingStyle"><span class="type-signature"></span>setBrakingStyle(style)</h4>
606
-
607
-
608
- </dt>
609
- <dd>
594
+
610
595
 
611
-
612
- <div class="description">
613
- <p>Set the braking style of the motor.</p>
596
+ <span class='name-container'>
597
+ <a class="link-icon" href="#setBrakingStyle">
598
+ <svg height="20" width="20" style="fill: black;">
599
+ <use xlink:href="#linkIcon"></use>
600
+ </svg>
601
+ </a>
602
+ <h4 class="name" id="setBrakingStyle">
603
+ <span class="type-signature"></span>setBrakingStyle<span class="signature">(style)</span><span class="type-signature"></span>
604
+ </h4>
605
+ </span>
606
+
607
+
608
+
609
+
610
+
611
+ <div class="description">
612
+ <p>Set the braking style of the motor.</p>
614
613
  <p>Note: This applies to setSpeed, rotateByDegrees, and gotoAngle.</p>
615
- </div>
616
-
614
+ </div>
617
615
 
618
-
619
616
 
620
-
621
617
 
622
-
623
-
624
- <h5>Parameters:</h5>
625
-
626
618
 
627
- <table class="params table table-striped">
628
- <thead>
619
+
620
+
621
+
622
+ <h5>Parameters:</h5>
623
+
624
+
625
+ <table class="params">
626
+ <thead>
629
627
  <tr>
630
-
628
+
631
629
  <th>Name</th>
632
-
630
+
633
631
 
634
- <th>Type</th>
632
+ <th>Type</th>
635
633
 
636
-
634
+
637
635
 
638
-
636
+
639
637
 
640
- <th class="last">Description</th>
638
+ <th class="last">Description</th>
641
639
  </tr>
642
- </thead>
640
+ </thead>
643
641
 
644
- <tbody>
642
+ <tbody>
645
643
 
644
+ <tr>
645
+
646
+ <td class="name"><code>style</code></td>
647
+
646
648
 
647
- <tr>
648
-
649
- <td class="name"><code>style</code></td>
650
-
651
-
652
- <td class="type">
649
+ <td class="type">
650
+
653
651
 
654
-
655
- <span class="param-type">number</span>
652
+ <span class="param-type">
653
+ number
654
+ </span>
656
655
 
656
+
657
657
 
658
658
 
659
-
660
- </td>
659
+
660
+ </td>
661
661
 
662
-
662
+
663
663
 
664
-
664
+
665
665
 
666
- <td class="description last"><p>Either BRAKE or HOLD</p></td>
667
- </tr>
666
+ <td class="description last">
667
+ <p>Either BRAKE or HOLD</p>
668
+
669
+ </td>
670
+ </tr>
668
671
 
669
672
 
670
- </tbody>
673
+ </tbody>
671
674
  </table>
672
675
 
673
-
674
676
 
675
-
676
- <dl class="details">
677
-
678
677
 
679
-
680
678
 
681
-
682
679
 
683
-
684
- <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
685
- <dd class="inherited-from">
686
- <ul class="dummy">
687
- <li>
688
- <a href="TachoMotor.html#setBrakingStyle">TachoMotor#setBrakingStyle</a>
689
- </li>
690
- </ul>
691
- </dd>
692
-
680
+ <dl class="details">
693
681
 
694
-
682
+
695
683
 
696
-
684
+
697
685
 
698
-
686
+
687
+ <dt class="inherited-from">Inherited From:</dt>
688
+ <dd class="inherited-from">
689
+ <ul class="dummy">
690
+ <li>
691
+ <a href="TachoMotor.html#setBrakingStyle">TachoMotor#setBrakingStyle</a>
692
+ </li>
693
+ </ul>
694
+ </dd>
695
+
699
696
 
700
-
697
+
698
+
699
+
701
700
 
702
-
701
+
703
702
 
704
-
703
+
705
704
 
706
-
705
+
707
706
 
708
-
707
+
709
708
 
710
-
709
+
711
710
 
711
+
712
712
 
713
+
713
714
 
714
-
715
- <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
716
- <dd class="tag-source">
717
- <ul class="dummy">
718
- <li>
719
- <a href="devices_tachomotor.js.html">devices/tachomotor.js</a>,
720
- <a href="devices_tachomotor.js.html#sunlight-1-line-53">line 53</a>
721
- </li>
722
- </ul>
723
- </dd>
724
-
715
+
716
+ <dt class="tag-source">Source:</dt>
717
+ <dd class="tag-source">
718
+ <ul class="dummy">
719
+ <li>
720
+ <a href="devices_tachomotor.js.html">devices/tachomotor.js</a>, <a href="devices_tachomotor.js.html#line53">line 53</a>
721
+ </li>
722
+ </ul>
723
+ </dd>
724
+
725
725
 
726
-
726
+
727
727
 
728
-
728
+
729
729
 
730
-
730
+
731
731
  </dl>
732
732
 
733
733
 
734
-
735
734
 
736
-
737
735
 
738
-
739
736
 
740
-
741
737
 
742
-
743
738
 
744
-
745
739
 
746
-
747
- </dd>
748
740
 
749
-
750
-
751
- <hr>
752
- <dt>
753
- <h4 class="name" id="setDecelerationTime"><span class="type-signature"></span>setDecelerationTime(time)</h4>
754
-
755
-
756
- </dt>
757
- <dd>
758
741
 
759
-
760
- <div class="description">
761
- <p>Set the global deceleration time</p>
762
- </div>
763
-
764
742
 
765
-
766
743
 
767
-
768
744
 
769
-
770
-
771
- <h5>Parameters:</h5>
745
+
746
+
772
747
 
773
748
 
774
- <table class="params table table-striped">
775
- <thead>
749
+
750
+
751
+
752
+ <span class='name-container'>
753
+ <a class="link-icon" href="#setDecelerationTime">
754
+ <svg height="20" width="20" style="fill: black;">
755
+ <use xlink:href="#linkIcon"></use>
756
+ </svg>
757
+ </a>
758
+ <h4 class="name" id="setDecelerationTime">
759
+ <span class="type-signature"></span>setDecelerationTime<span class="signature">(time)</span><span class="type-signature"> &rarr; {Promise}</span>
760
+ </h4>
761
+ </span>
762
+
763
+
764
+
765
+
766
+
767
+ <div class="description">
768
+ <p>Set the global deceleration time</p>
769
+ </div>
770
+
771
+
772
+
773
+
774
+
775
+
776
+
777
+ <h5>Parameters:</h5>
778
+
779
+
780
+ <table class="params">
781
+ <thead>
776
782
  <tr>
777
-
783
+
778
784
  <th>Name</th>
779
-
785
+
780
786
 
781
- <th>Type</th>
787
+ <th>Type</th>
782
788
 
783
-
789
+
784
790
 
785
-
791
+
786
792
 
787
- <th class="last">Description</th>
793
+ <th class="last">Description</th>
788
794
  </tr>
789
- </thead>
795
+ </thead>
790
796
 
791
- <tbody>
797
+ <tbody>
792
798
 
799
+ <tr>
800
+
801
+ <td class="name"><code>time</code></td>
802
+
793
803
 
794
- <tr>
795
-
796
- <td class="name"><code>time</code></td>
797
-
798
-
799
- <td class="type">
804
+ <td class="type">
805
+
800
806
 
801
-
802
- <span class="param-type">number</span>
807
+ <span class="param-type">
808
+ number
809
+ </span>
803
810
 
811
+
804
812
 
805
813
 
806
-
807
- </td>
814
+
815
+ </td>
808
816
 
809
-
817
+
810
818
 
811
-
819
+
812
820
 
813
- <td class="description last"><p>How long deceleration should last (in milliseconds).</p></td>
814
- </tr>
821
+ <td class="description last">
822
+ <p>How long deceleration should last (in milliseconds).</p>
823
+
824
+ </td>
825
+ </tr>
815
826
 
816
827
 
817
- </tbody>
828
+ </tbody>
818
829
  </table>
819
830
 
820
-
821
831
 
822
-
823
- <dl class="details">
824
-
825
832
 
826
-
827
833
 
828
-
829
834
 
830
-
831
- <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
832
- <dd class="inherited-from">
833
- <ul class="dummy">
834
- <li>
835
- <a href="TachoMotor.html#setDecelerationTime">TachoMotor#setDecelerationTime</a>
836
- </li>
837
- </ul>
838
- </dd>
839
-
835
+ <dl class="details">
840
836
 
841
-
837
+
842
838
 
843
-
839
+
844
840
 
845
-
841
+
842
+ <dt class="inherited-from">Inherited From:</dt>
843
+ <dd class="inherited-from">
844
+ <ul class="dummy">
845
+ <li>
846
+ <a href="TachoMotor.html#setDecelerationTime">TachoMotor#setDecelerationTime</a>
847
+ </li>
848
+ </ul>
849
+ </dd>
850
+
846
851
 
847
-
852
+
848
853
 
849
-
854
+
850
855
 
851
-
856
+
852
857
 
853
-
858
+
854
859
 
855
-
860
+
856
861
 
857
-
862
+
858
863
 
864
+
859
865
 
866
+
860
867
 
861
-
862
- <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
863
- <dd class="tag-source">
864
- <ul class="dummy">
865
- <li>
866
- <a href="devices_tachomotor.js.html">devices/tachomotor.js</a>,
867
- <a href="devices_tachomotor.js.html#sunlight-1-line-84">line 84</a>
868
- </li>
869
- </ul>
870
- </dd>
871
-
868
+
872
869
 
873
-
870
+
871
+ <dt class="tag-source">Source:</dt>
872
+ <dd class="tag-source">
873
+ <ul class="dummy">
874
+ <li>
875
+ <a href="devices_tachomotor.js.html">devices/tachomotor.js</a>, <a href="devices_tachomotor.js.html#line84">line 84</a>
876
+ </li>
877
+ </ul>
878
+ </dd>
879
+
874
880
 
875
-
881
+
876
882
 
877
-
878
- </dl>
883
+
879
884
 
885
+
886
+ </dl>
880
887
 
881
-
882
888
 
883
-
884
889
 
885
-
886
890
 
887
-
888
891
 
889
-
890
892
 
891
-
892
- <h5>Returns:</h5>
893
-
894
-
895
- <div class="param-desc">
896
- <p>Resolved upon successful completion of command (ie. once the motor is finished).</p>
897
- </div>
898
893
 
899
894
 
900
895
 
901
- <dl>
902
- <dt>
903
- Type
904
- </dt>
905
- <dd>
906
-
907
- <span class="param-type">Promise</span>
908
896
 
909
897
 
910
898
 
911
- </dd>
912
- </dl>
913
899
 
914
900
 
901
+
915
902
 
916
903
 
917
-
918
- </dd>
919
904
 
920
-
921
-
922
- <hr>
923
- <dt>
924
- <h4 class="name" id="setMaxPower"><span class="type-signature"></span>setMaxPower(style)</h4>
925
-
926
-
927
- </dt>
928
- <dd>
905
+
929
906
 
930
-
931
- <div class="description">
932
- <p>Set the max power of the motor.</p>
907
+ <span class='name-container'>
908
+ <a class="link-icon" href="#setMaxPower">
909
+ <svg height="20" width="20" style="fill: black;">
910
+ <use xlink:href="#linkIcon"></use>
911
+ </svg>
912
+ </a>
913
+ <h4 class="name" id="setMaxPower">
914
+ <span class="type-signature"></span>setMaxPower<span class="signature">(style)</span><span class="type-signature"></span>
915
+ </h4>
916
+ </span>
917
+
918
+
919
+
920
+
921
+
922
+ <div class="description">
923
+ <p>Set the max power of the motor.</p>
933
924
  <p>Note: This applies to setSpeed, rotateByDegrees, and gotoAngle.</p>
934
- </div>
935
-
925
+ </div>
926
+
936
927
 
937
-
938
928
 
939
-
940
929
 
941
-
942
-
943
- <h5>Parameters:</h5>
944
-
945
930
 
946
- <table class="params table table-striped">
947
- <thead>
931
+
932
+
933
+ <h5>Parameters:</h5>
934
+
935
+
936
+ <table class="params">
937
+ <thead>
948
938
  <tr>
949
-
939
+
950
940
  <th>Name</th>
951
-
941
+
952
942
 
953
- <th>Type</th>
943
+ <th>Type</th>
954
944
 
955
-
945
+
956
946
 
957
-
947
+
958
948
 
959
- <th class="last">Description</th>
949
+ <th class="last">Description</th>
960
950
  </tr>
961
- </thead>
951
+ </thead>
962
952
 
963
- <tbody>
953
+ <tbody>
964
954
 
955
+ <tr>
956
+
957
+ <td class="name"><code>style</code></td>
958
+
965
959
 
966
- <tr>
967
-
968
- <td class="name"><code>style</code></td>
969
-
970
-
971
- <td class="type">
960
+ <td class="type">
961
+
972
962
 
973
-
974
- <span class="param-type">number</span>
963
+ <span class="param-type">
964
+ number
965
+ </span>
975
966
 
967
+
976
968
 
977
969
 
978
-
979
- </td>
970
+
971
+ </td>
980
972
 
981
-
973
+
982
974
 
983
-
975
+
984
976
 
985
- <td class="description last"><p>Either BRAKE or HOLD</p></td>
986
- </tr>
977
+ <td class="description last">
978
+ <p>Either BRAKE or HOLD</p>
979
+
980
+ </td>
981
+ </tr>
987
982
 
988
983
 
989
- </tbody>
984
+ </tbody>
990
985
  </table>
991
986
 
992
-
993
987
 
994
-
995
- <dl class="details">
996
-
997
988
 
998
-
999
989
 
1000
-
1001
990
 
1002
-
1003
- <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
1004
- <dd class="inherited-from">
1005
- <ul class="dummy">
1006
- <li>
1007
- <a href="TachoMotor.html#setMaxPower">TachoMotor#setMaxPower</a>
1008
- </li>
1009
- </ul>
1010
- </dd>
1011
-
991
+ <dl class="details">
1012
992
 
1013
-
993
+
1014
994
 
1015
-
995
+
1016
996
 
1017
-
997
+
998
+ <dt class="inherited-from">Inherited From:</dt>
999
+ <dd class="inherited-from">
1000
+ <ul class="dummy">
1001
+ <li>
1002
+ <a href="TachoMotor.html#setMaxPower">TachoMotor#setMaxPower</a>
1003
+ </li>
1004
+ </ul>
1005
+ </dd>
1006
+
1018
1007
 
1019
-
1008
+
1020
1009
 
1021
-
1010
+
1022
1011
 
1023
-
1012
+
1024
1013
 
1025
-
1014
+
1026
1015
 
1027
-
1016
+
1028
1017
 
1029
-
1018
+
1030
1019
 
1020
+
1031
1021
 
1022
+
1032
1023
 
1033
-
1034
- <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
1035
- <dd class="tag-source">
1036
- <ul class="dummy">
1037
- <li>
1038
- <a href="devices_tachomotor.js.html">devices/tachomotor.js</a>,
1039
- <a href="devices_tachomotor.js.html#sunlight-1-line-63">line 63</a>
1040
- </li>
1041
- </ul>
1042
- </dd>
1043
-
1024
+
1044
1025
 
1045
-
1026
+
1027
+ <dt class="tag-source">Source:</dt>
1028
+ <dd class="tag-source">
1029
+ <ul class="dummy">
1030
+ <li>
1031
+ <a href="devices_tachomotor.js.html">devices/tachomotor.js</a>, <a href="devices_tachomotor.js.html#line63">line 63</a>
1032
+ </li>
1033
+ </ul>
1034
+ </dd>
1035
+
1036
+
1037
+
1046
1038
 
1047
-
1039
+
1048
1040
 
1049
-
1041
+
1050
1042
  </dl>
1051
1043
 
1052
1044
 
1053
-
1054
1045
 
1055
-
1056
1046
 
1057
-
1058
1047
 
1059
-
1060
1048
 
1061
-
1062
1049
 
1063
-
1064
1050
 
1065
-
1066
- </dd>
1067
1051
 
1068
-
1069
-
1070
- <hr>
1071
- <dt>
1072
- <h4 class="name" id="setSpeed"><span class="type-signature"></span>setSpeed(speed, time)</h4>
1073
-
1074
-
1075
- </dt>
1076
- <dd>
1077
1052
 
1078
-
1079
- <div class="description">
1080
- <p>Set the motor speed.</p>
1081
- </div>
1082
-
1083
1053
 
1084
-
1085
1054
 
1086
-
1087
1055
 
1088
-
1089
-
1090
- <h5>Parameters:</h5>
1091
-
1092
1056
 
1093
- <table class="params table table-striped">
1094
- <thead>
1095
- <tr>
1096
-
1097
- <th>Name</th>
1057
+
1098
1058
 
1099
1059
 
1100
- <th>Type</th>
1101
1060
 
1102
-
1061
+
1103
1062
 
1104
-
1063
+ <span class='name-container'>
1064
+ <a class="link-icon" href="#setSpeed">
1065
+ <svg height="20" width="20" style="fill: black;">
1066
+ <use xlink:href="#linkIcon"></use>
1067
+ </svg>
1068
+ </a>
1069
+ <h4 class="name" id="setSpeed">
1070
+ <span class="type-signature"></span>setSpeed<span class="signature">(speed, time)</span><span class="type-signature"> &rarr; {Promise}</span>
1071
+ </h4>
1072
+ </span>
1105
1073
 
1106
- <th class="last">Description</th>
1107
- </tr>
1108
- </thead>
1074
+
1109
1075
 
1110
- <tbody>
1111
-
1112
1076
 
1113
- <tr>
1114
-
1115
- <td class="name"><code>speed</code></td>
1116
-
1117
1077
 
1118
- <td class="type">
1119
-
1120
-
1121
- <span class="param-type">number</span>
1078
+ <div class="description">
1079
+ <p>Set the motor speed.</p>
1080
+ </div>
1122
1081
 
1123
1082
 
1124
1083
 
1125
-
1126
- </td>
1127
1084
 
1128
-
1129
1085
 
1130
-
1131
1086
 
1132
- <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>
1133
- </tr>
1134
1087
 
1135
-
1088
+ <h5>Parameters:</h5>
1089
+
1136
1090
 
1137
- <tr>
1138
-
1139
- <td class="name"><code>time</code></td>
1140
-
1091
+ <table class="params">
1092
+ <thead>
1093
+ <tr>
1094
+
1095
+ <th>Name</th>
1096
+
1141
1097
 
1142
- <td class="type">
1143
-
1144
-
1145
- <span class="param-type">number</span>
1098
+ <th>Type</th>
1146
1099
 
1100
+
1147
1101
 
1102
+
1148
1103
 
1149
-
1150
- </td>
1104
+ <th class="last">Description</th>
1105
+ </tr>
1106
+ </thead>
1151
1107
 
1152
-
1108
+ <tbody>
1109
+
1110
+ <tr>
1111
+
1112
+ <td class="name"><code>speed</code></td>
1113
+
1153
1114
 
1115
+ <td class="type">
1116
+
1154
1117
 
1155
-
1156
- <td class="description last"><p>How long the motor should run for (in milliseconds).</p></td>
1157
- </tr>
1158
-
1159
-
1160
- </tbody>
1161
- </table>
1118
+ <span class="param-type">
1119
+ number
1120
+ </span>
1162
1121
 
1163
1122
 
1164
1123
 
1165
-
1166
- <dl class="details">
1167
-
1168
1124
 
1169
-
1125
+
1126
+ </td>
1170
1127
 
1171
-
1128
+
1172
1129
 
1173
-
1174
- <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
1175
- <dd class="inherited-from">
1176
- <ul class="dummy">
1177
- <li>
1178
- <a href="TachoMotor.html#setSpeed">TachoMotor#setSpeed</a>
1179
- </li>
1180
- </ul>
1181
- </dd>
1182
-
1130
+
1183
1131
 
1184
-
1132
+ <td class="description last">
1133
+ <p>For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.</p>
1134
+
1135
+ </td>
1136
+ </tr>
1185
1137
 
1186
1138
 
1139
+ <tr>
1140
+
1141
+ <td class="name"><code>time</code></td>
1142
+
1187
1143
 
1188
-
1144
+ <td class="type">
1145
+
1146
+
1147
+ <span class="param-type">
1148
+ number
1149
+ </span>
1189
1150
 
1190
1151
 
1191
1152
 
1192
-
1193
1153
 
1194
-
1154
+
1155
+ </td>
1195
1156
 
1196
-
1157
+
1197
1158
 
1198
-
1159
+
1199
1160
 
1200
-
1161
+ <td class="description last">
1162
+ <p>How long the motor should run for (in milliseconds).</p>
1163
+
1164
+ </td>
1165
+ </tr>
1201
1166
 
1167
+
1168
+ </tbody>
1169
+ </table>
1202
1170
 
1203
1171
 
1204
-
1205
- <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
1206
- <dd class="tag-source">
1207
- <ul class="dummy">
1208
- <li>
1209
- <a href="devices_tachomotor.js.html">devices/tachomotor.js</a>,
1210
- <a href="devices_tachomotor.js.html#sunlight-1-line-95">line 95</a>
1211
- </li>
1212
- </ul>
1213
- </dd>
1214
-
1215
1172
 
1216
-
1217
1173
 
1218
-
1219
1174
 
1220
-
1221
- </dl>
1175
+ <dl class="details">
1222
1176
 
1177
+
1223
1178
 
1224
-
1179
+
1225
1180
 
1226
-
1181
+
1182
+ <dt class="inherited-from">Inherited From:</dt>
1183
+ <dd class="inherited-from">
1184
+ <ul class="dummy">
1185
+ <li>
1186
+ <a href="TachoMotor.html#setSpeed">TachoMotor#setSpeed</a>
1187
+ </li>
1188
+ </ul>
1189
+ </dd>
1190
+
1227
1191
 
1228
-
1192
+
1229
1193
 
1230
-
1194
+
1231
1195
 
1232
-
1196
+
1233
1197
 
1234
-
1235
- <h5>Returns:</h5>
1236
-
1237
-
1238
- <div class="param-desc">
1239
- <p>Resolved upon successful issuance of the command.</p>
1240
- </div>
1198
+
1241
1199
 
1200
+
1242
1201
 
1202
+
1243
1203
 
1244
- <dl>
1245
- <dt>
1246
- Type
1247
- </dt>
1248
- <dd>
1249
-
1250
- <span class="param-type">Promise</span>
1204
+
1251
1205
 
1206
+
1252
1207
 
1208
+
1253
1209
 
1210
+
1211
+ <dt class="tag-source">Source:</dt>
1212
+ <dd class="tag-source">
1213
+ <ul class="dummy">
1214
+ <li>
1215
+ <a href="devices_tachomotor.js.html">devices/tachomotor.js</a>, <a href="devices_tachomotor.js.html#line95">line 95</a>
1216
+ </li>
1217
+ </ul>
1254
1218
  </dd>
1255
- </dl>
1219
+
1256
1220
 
1221
+
1257
1222
 
1258
-
1223
+
1259
1224
 
1260
-
1261
- </dd>
1225
+
1226
+ </dl>
1262
1227
 
1263
- </dl>
1264
-
1265
1228
 
1266
-
1267
1229
 
1268
-
1269
- <h3 class="subsection-title">Events</h3>
1270
1230
 
1271
- <dl>
1272
-
1273
- <hr>
1274
- <dt>
1275
- <h4 class="name" id="event:rotate">rotate</h4>
1276
-
1277
-
1278
- </dt>
1279
- <dd>
1280
1231
 
1281
-
1282
- <div class="description">
1283
- <p>Emits when a rotation sensor is activated.</p>
1284
- </div>
1285
-
1286
-
1287
-
1288
-
1289
-
1290
- <h5>Type:
1291
- <span class="param-type">object</span>
1292
1232
 
1293
1233
 
1294
- </h5>
1295
-
1296
1234
 
1297
-
1298
-
1299
- <h5>Parameters:</h5>
1300
-
1301
1235
 
1302
- <table class="params table table-striped">
1303
- <thead>
1304
- <tr>
1305
-
1306
- <th>Name</th>
1307
-
1308
1236
 
1309
- <th>Type</th>
1310
1237
 
1311
-
1312
1238
 
1313
-
1314
1239
 
1315
- <th class="last">Description</th>
1316
- </tr>
1317
- </thead>
1318
1240
 
1319
- <tbody>
1241
+
1320
1242
 
1321
1243
 
1322
- <tr>
1323
-
1324
- <td class="name"><code>rotation</code></td>
1325
-
1326
-
1327
- <td class="type">
1328
-
1329
-
1330
- <span class="param-type">number</span>
1331
-
1332
-
1244
+
1333
1245
 
1334
-
1335
- </td>
1246
+
1247
+ <h3 class="subsection-title">Events</h3>
1336
1248
 
1337
-
1249
+
1250
+
1338
1251
 
1339
-
1340
1252
 
1341
- <td class="description last"></td>
1342
- </tr>
1253
+
1343
1254
 
1344
-
1345
- </tbody>
1346
- </table>
1255
+ <span class='name-container'>
1256
+ <a class="link-icon" href="#event:rotate">
1257
+ <svg height="20" width="20" style="fill: black;">
1258
+ <use xlink:href="#linkIcon"></use>
1259
+ </svg>
1260
+ </a>
1261
+ <h4 class="name" id="event:rotate">
1262
+ <span class="type-signature"></span>rotate<span class="type-signature"> :object</span>
1263
+ </h4>
1264
+ </span>
1347
1265
 
1348
-
1266
+
1349
1267
 
1350
-
1351
- <dl class="details">
1352
-
1353
1268
 
1354
-
1355
1269
 
1356
-
1270
+ <div class="description">
1271
+ <p>Emits when a rotation sensor is activated.</p>
1272
+ </div>
1357
1273
 
1358
-
1359
- <dt class="inherited-from method-doc-label method-doc-details-label">Inherited From:</dt>
1360
- <dd class="inherited-from">
1361
- <ul class="dummy">
1362
- <li>
1363
- <a href="TachoMotor.html#event:rotate">TachoMotor#event:rotate</a>
1364
- </li>
1365
- </ul>
1366
- </dd>
1367
-
1368
1274
 
1369
-
1370
1275
 
1371
-
1372
1276
 
1373
-
1374
1277
 
1375
-
1376
1278
 
1377
-
1378
1279
 
1379
-
1280
+ <h5>Parameters:</h5>
1281
+
1380
1282
 
1381
-
1283
+ <table class="params">
1284
+ <thead>
1285
+ <tr>
1286
+
1287
+ <th>Name</th>
1288
+
1382
1289
 
1383
-
1290
+ <th>Type</th>
1384
1291
 
1385
-
1292
+
1386
1293
 
1294
+
1387
1295
 
1296
+ <th class="last">Description</th>
1297
+ </tr>
1298
+ </thead>
1388
1299
 
1389
-
1390
- <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
1391
- <dd class="tag-source">
1392
- <ul class="dummy">
1393
- <li>
1394
- <a href="devices_tachomotor.js.html">devices/tachomotor.js</a>,
1395
- <a href="devices_tachomotor.js.html#sunlight-1-line-43">line 43</a>
1396
- </li>
1397
- </ul>
1398
- </dd>
1399
-
1300
+ <tbody>
1301
+
1302
+ <tr>
1303
+
1304
+ <td class="name"><code>rotation</code></td>
1305
+
1400
1306
 
1401
-
1307
+ <td class="type">
1308
+
1309
+
1310
+ <span class="param-type">
1311
+ number
1312
+ </span>
1402
1313
 
1403
-
1314
+
1404
1315
 
1405
-
1406
- </dl>
1407
1316
 
1317
+
1318
+ </td>
1408
1319
 
1409
-
1320
+
1410
1321
 
1411
-
1322
+
1412
1323
 
1413
-
1324
+ <td class="description last">
1325
+
1326
+
1327
+ </td>
1328
+ </tr>
1414
1329
 
1415
1330
 
1331
+ </tbody>
1332
+ </table>
1416
1333
 
1417
-
1418
1334
 
1419
-
1420
1335
 
1421
-
1422
- </dd>
1423
1336
 
1424
- </dl>
1425
-
1426
- </article>
1427
1337
 
1428
- </section>
1338
+ <dl class="details">
1429
1339
 
1340
+
1430
1341
 
1342
+
1431
1343
 
1344
+
1345
+ <dt class="inherited-from">Inherited From:</dt>
1346
+ <dd class="inherited-from">
1347
+ <ul class="dummy">
1348
+ <li>
1349
+ <a href="TachoMotor.html#event:rotate">TachoMotor#event:rotate</a>
1350
+ </li>
1351
+ </ul>
1352
+ </dd>
1353
+
1432
1354
 
1433
- </div>
1434
- </div>
1355
+
1435
1356
 
1436
- <div class="clearfix"></div>
1357
+
1437
1358
 
1438
-
1439
- <div class="col-md-3">
1440
- <div id="toc" class="col-md-3 hidden-xs hidden-sm hidden-md"></div>
1441
- </div>
1442
-
1359
+
1443
1360
 
1444
- </div>
1445
- </div>
1361
+
1446
1362
 
1363
+
1447
1364
 
1448
- <div class="modal fade" id="searchResults">
1449
- <div class="modal-dialog">
1450
- <div class="modal-content">
1451
- <div class="modal-header">
1452
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
1453
- <h4 class="modal-title">Search results</h4>
1454
- </div>
1455
- <div class="modal-body"></div>
1456
- <div class="modal-footer">
1457
- <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
1458
- </div>
1459
- </div><!-- /.modal-content -->
1460
- </div><!-- /.modal-dialog -->
1461
- </div>
1365
+
1462
1366
 
1367
+
1463
1368
 
1464
- <footer>
1369
+
1465
1370
 
1371
+
1466
1372
 
1467
- <span class="copyright">
1468
- node-poweredup by Nathan Kellenicki licensed under the MIT license.
1469
- </span>
1373
+
1374
+ <dt class="tag-source">Source:</dt>
1375
+ <dd class="tag-source">
1376
+ <ul class="dummy">
1377
+ <li>
1378
+ <a href="devices_tachomotor.js.html">devices/tachomotor.js</a>, <a href="devices_tachomotor.js.html#line43">line 43</a>
1379
+ </li>
1380
+ </ul>
1381
+ </dd>
1382
+
1470
1383
 
1471
- <span class="jsdoc-message">
1472
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a>
1473
-
1474
- on Tue Apr 6th 2021
1475
-
1476
- using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
1477
- </span>
1478
- </footer>
1384
+
1479
1385
 
1480
- <script src="scripts/docstrap.lib.js"></script>
1481
- <script src="scripts/toc.js"></script>
1386
+
1482
1387
 
1483
- <script type="text/javascript" src="scripts/fulltext-search-ui.js"></script>
1388
+
1389
+ </dl>
1484
1390
 
1485
1391
 
1486
- <script>
1487
- $( function () {
1488
- $( "[id*='$']" ).each( function () {
1489
- var $this = $( this );
1490
1392
 
1491
- $this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) );
1492
- } );
1493
1393
 
1494
- $( ".tutorial-section pre, .readme-section pre, pre.prettyprint.source" ).each( function () {
1495
- var $this = $( this );
1496
1394
 
1497
- var example = $this.find( "code" );
1498
- exampleText = example.html();
1499
- var lang = /{@lang (.*?)}/.exec( exampleText );
1500
- if ( lang && lang[1] ) {
1501
- exampleText = exampleText.replace( lang[0], "" );
1502
- example.html( exampleText );
1503
- lang = lang[1];
1504
- } else {
1505
- var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/);
1506
- lang = langClassMatch ? langClassMatch[1] : "javascript";
1507
- }
1508
1395
 
1509
- if ( lang ) {
1510
1396
 
1511
- $this
1512
- .addClass( "sunlight-highlight-" + lang )
1513
- .addClass( "linenums" )
1514
- .html( example.html() );
1515
1397
 
1516
- }
1517
- } );
1518
1398
 
1519
- Sunlight.highlightAll( {
1520
- lineNumbers : true,
1521
- showMenu : true,
1522
- enableDoclinks : true
1523
- } );
1524
1399
 
1525
- $.catchAnchorLinks( {
1526
- navbarOffset: 10
1527
- } );
1528
- $( "#toc" ).toc( {
1529
- anchorName : function ( i, heading, prefix ) {
1530
- return $( heading ).attr( "id" ) || ( prefix + i );
1531
- },
1532
- selectors : "#toc-content h1,#toc-content h2,#toc-content h3,#toc-content h4",
1533
- showAndHide : false,
1534
- smoothScrolling: true
1535
- } );
1536
1400
 
1537
- $( "#main span[id^='toc']" ).addClass( "toc-shim" );
1538
- $( '.dropdown-toggle' ).dropdown();
1539
1401
 
1540
- $( "table" ).each( function () {
1541
- var $this = $( this );
1542
- $this.addClass('table');
1543
- } );
1544
1402
 
1545
- } );
1546
- </script>
1547
1403
 
1404
+
1405
+
1406
+ </article>
1407
+ </section>
1548
1408
 
1549
1409
 
1550
- <!--Navigation and Symbol Display-->
1551
1410
 
1552
1411
 
1553
- <!--Google Analytics-->
1412
+ </div>
1554
1413
 
1414
+ <br class="clear">
1555
1415
 
1416
+ <footer>
1417
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.7</a>
1418
+ </footer>
1556
1419
 
1557
- <script type="text/javascript">
1558
- $(document).ready(function() {
1559
- SearcherDisplay.init();
1560
- });
1561
- </script>
1420
+ <script src="scripts/linenumber.js"></script>
1421
+ <script src="scripts/pagelocation.js"></script>
1562
1422
 
1423
+
1563
1424
 
1564
1425
  </body>
1565
1426
  </html>