node-poweredup 6.10.0 → 8.0.0

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