Merge branch 'master' into feature/web-bluetooth
This commit is contained in:
commit
9d07d005ae
13
.drone.yml
Normal file
13
.drone.yml
Normal file
@ -0,0 +1,13 @@
|
||||
pipeline:
|
||||
|
||||
install:
|
||||
image: node:10.15.1
|
||||
commands:
|
||||
- apt-get update
|
||||
- apt-get install -y bluetooth bluez libbluetooth-dev libudev-dev
|
||||
- npm install
|
||||
|
||||
build:
|
||||
image: node:10.15.1
|
||||
commands:
|
||||
- npm run all
|
@ -74,19 +74,25 @@ const PoweredUP = require("node-poweredup");
|
||||
const poweredUP = new PoweredUP.PoweredUP();
|
||||
|
||||
poweredUP.on("discover", async (hub) => { // Wait to discover a Hub
|
||||
console.log(`Discovered ${hub.name}!`);
|
||||
await hub.connect(); // Connect to the Hub
|
||||
console.log("Connected");
|
||||
await hub.sleep(3000); // Sleep for 3 seconds before starting
|
||||
|
||||
while (true) { // Repeat indefinitely
|
||||
console.log("Running motor B at speed 75");
|
||||
hub.setMotorSpeed("B", 75); // Start a motor attached to port B to run a 3/4 speed (75) indefinitely
|
||||
console.log("Running motor A at speed 100 for 2 seconds");
|
||||
await hub.setMotorSpeed("A", 100, 2000); // Run a motor attached to port A for 2 seconds at maximum speed (100) then stop
|
||||
await hub.sleep(1000); // Do nothing for 1 second
|
||||
console.log("Running motor A at speed -50 for 1 seconds");
|
||||
await hub.setMotorSpeed("A", -50, 1000); // Run a motor attached to port A for 1 second at 1/2 speed in reverse (-50) then stop
|
||||
await hub.sleep(1000); // Do nothing for 1 second
|
||||
}
|
||||
});
|
||||
|
||||
poweredUP.scan(); // Start scanning for Hubs
|
||||
console.log("Scanning for Hubs...");
|
||||
```
|
||||
|
||||
More examples are available in the "examples" directory.
|
||||
|
@ -327,7 +327,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-71">line 71</a>
|
||||
<a href="hub.js.html#sunlight-1-line-75">line 75</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -460,7 +460,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-50">line 50</a>
|
||||
<a href="hub.js.html#sunlight-1-line-54">line 54</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -593,7 +593,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-43">line 43</a>
|
||||
<a href="hub.js.html#sunlight-1-line-47">line 47</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -726,7 +726,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-64">line 64</a>
|
||||
<a href="hub.js.html#sunlight-1-line-68">line 68</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -859,7 +859,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-57">line 57</a>
|
||||
<a href="hub.js.html#sunlight-1-line-61">line 61</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -992,7 +992,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-78">line 78</a>
|
||||
<a href="hub.js.html#sunlight-1-line-82">line 82</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1250,7 +1250,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-88">line 88</a>
|
||||
<a href="hub.js.html#sunlight-1-line-92">line 92</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1376,7 +1376,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-106">line 106</a>
|
||||
<a href="hub.js.html#sunlight-1-line-152">line 152</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1502,7 +1502,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-171">line 171</a>
|
||||
<a href="hub.js.html#sunlight-1-line-220">line 220</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1674,7 +1674,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-179">line 179</a>
|
||||
<a href="hub.js.html#sunlight-1-line-228">line 228</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -3499,7 +3499,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-147">line 147</a>
|
||||
<a href="hub.js.html#sunlight-1-line-196">line 196</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -3719,7 +3719,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-115">line 115</a>
|
||||
<a href="hub.js.html#sunlight-1-line-164">line 164</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -3895,7 +3895,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-133">line 133</a>
|
||||
<a href="hub.js.html#sunlight-1-line-182">line 182</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -4072,7 +4072,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-160">line 160</a>
|
||||
<a href="hub.js.html#sunlight-1-line-209">line 209</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -4280,7 +4280,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-216">line 216</a>
|
||||
<a href="hub.js.html#sunlight-1-line-265">line 265</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -4969,7 +4969,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-228">line 228</a>
|
||||
<a href="hub.js.html#sunlight-1-line-277">line 277</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -5585,7 +5585,7 @@
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Mon Mar 18th 2019
|
||||
on Wed Feb 13th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -327,7 +327,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-71">line 71</a>
|
||||
<a href="hub.js.html#sunlight-1-line-75">line 75</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -460,7 +460,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-50">line 50</a>
|
||||
<a href="hub.js.html#sunlight-1-line-54">line 54</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -593,7 +593,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-43">line 43</a>
|
||||
<a href="hub.js.html#sunlight-1-line-47">line 47</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -726,7 +726,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-64">line 64</a>
|
||||
<a href="hub.js.html#sunlight-1-line-68">line 68</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -859,7 +859,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-57">line 57</a>
|
||||
<a href="hub.js.html#sunlight-1-line-61">line 61</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -992,7 +992,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-78">line 78</a>
|
||||
<a href="hub.js.html#sunlight-1-line-82">line 82</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1250,7 +1250,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-88">line 88</a>
|
||||
<a href="hub.js.html#sunlight-1-line-92">line 92</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1376,7 +1376,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-106">line 106</a>
|
||||
<a href="hub.js.html#sunlight-1-line-152">line 152</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1502,7 +1502,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-171">line 171</a>
|
||||
<a href="hub.js.html#sunlight-1-line-220">line 220</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1674,7 +1674,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-179">line 179</a>
|
||||
<a href="hub.js.html#sunlight-1-line-228">line 228</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -3162,7 +3162,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-147">line 147</a>
|
||||
<a href="hub.js.html#sunlight-1-line-196">line 196</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -3382,7 +3382,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-115">line 115</a>
|
||||
<a href="hub.js.html#sunlight-1-line-164">line 164</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -3558,7 +3558,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-133">line 133</a>
|
||||
<a href="hub.js.html#sunlight-1-line-182">line 182</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -3735,7 +3735,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-160">line 160</a>
|
||||
<a href="hub.js.html#sunlight-1-line-209">line 209</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -4188,7 +4188,7 @@
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Mon Mar 18th 2019
|
||||
on Wed Feb 13th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -307,7 +307,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-71">line 71</a>
|
||||
<a href="hub.js.html#sunlight-1-line-75">line 75</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -426,7 +426,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-50">line 50</a>
|
||||
<a href="hub.js.html#sunlight-1-line-54">line 54</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -545,7 +545,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-43">line 43</a>
|
||||
<a href="hub.js.html#sunlight-1-line-47">line 47</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -664,7 +664,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-64">line 64</a>
|
||||
<a href="hub.js.html#sunlight-1-line-68">line 68</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -783,7 +783,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-57">line 57</a>
|
||||
<a href="hub.js.html#sunlight-1-line-61">line 61</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -902,7 +902,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-78">line 78</a>
|
||||
<a href="hub.js.html#sunlight-1-line-82">line 82</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -984,7 +984,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-88">line 88</a>
|
||||
<a href="hub.js.html#sunlight-1-line-92">line 92</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1096,7 +1096,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-106">line 106</a>
|
||||
<a href="hub.js.html#sunlight-1-line-152">line 152</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1208,7 +1208,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-171">line 171</a>
|
||||
<a href="hub.js.html#sunlight-1-line-220">line 220</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1366,7 +1366,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-179">line 179</a>
|
||||
<a href="hub.js.html#sunlight-1-line-228">line 228</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1525,7 +1525,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-147">line 147</a>
|
||||
<a href="hub.js.html#sunlight-1-line-196">line 196</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1731,7 +1731,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-115">line 115</a>
|
||||
<a href="hub.js.html#sunlight-1-line-164">line 164</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1893,7 +1893,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-133">line 133</a>
|
||||
<a href="hub.js.html#sunlight-1-line-182">line 182</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -2056,7 +2056,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-160">line 160</a>
|
||||
<a href="hub.js.html#sunlight-1-line-209">line 209</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -2250,7 +2250,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-216">line 216</a>
|
||||
<a href="hub.js.html#sunlight-1-line-265">line 265</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -2388,7 +2388,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-228">line 228</a>
|
||||
<a href="hub.js.html#sunlight-1-line-277">line 277</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -2467,7 +2467,7 @@
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Mon Mar 18th 2019
|
||||
on Wed Feb 13th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -316,7 +316,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-71">line 71</a>
|
||||
<a href="hub.js.html#sunlight-1-line-75">line 75</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -444,7 +444,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-50">line 50</a>
|
||||
<a href="hub.js.html#sunlight-1-line-54">line 54</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -572,7 +572,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-43">line 43</a>
|
||||
<a href="hub.js.html#sunlight-1-line-47">line 47</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -700,7 +700,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-64">line 64</a>
|
||||
<a href="hub.js.html#sunlight-1-line-68">line 68</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -828,7 +828,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-57">line 57</a>
|
||||
<a href="hub.js.html#sunlight-1-line-61">line 61</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -956,7 +956,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-78">line 78</a>
|
||||
<a href="hub.js.html#sunlight-1-line-82">line 82</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1052,7 +1052,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-88">line 88</a>
|
||||
<a href="hub.js.html#sunlight-1-line-92">line 92</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1173,7 +1173,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-106">line 106</a>
|
||||
<a href="hub.js.html#sunlight-1-line-152">line 152</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1294,7 +1294,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-171">line 171</a>
|
||||
<a href="hub.js.html#sunlight-1-line-220">line 220</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1461,7 +1461,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-179">line 179</a>
|
||||
<a href="hub.js.html#sunlight-1-line-228">line 228</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -2275,7 +2275,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-147">line 147</a>
|
||||
<a href="hub.js.html#sunlight-1-line-196">line 196</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -2490,7 +2490,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-115">line 115</a>
|
||||
<a href="hub.js.html#sunlight-1-line-164">line 164</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -2661,7 +2661,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-133">line 133</a>
|
||||
<a href="hub.js.html#sunlight-1-line-182">line 182</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -2833,7 +2833,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-160">line 160</a>
|
||||
<a href="hub.js.html#sunlight-1-line-209">line 209</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -3036,7 +3036,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-216">line 216</a>
|
||||
<a href="hub.js.html#sunlight-1-line-265">line 265</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -3693,7 +3693,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-228">line 228</a>
|
||||
<a href="hub.js.html#sunlight-1-line-277">line 277</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -4444,7 +4444,7 @@
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Mon Mar 18th 2019
|
||||
on Wed Feb 13th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -327,7 +327,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-71">line 71</a>
|
||||
<a href="hub.js.html#sunlight-1-line-75">line 75</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -460,7 +460,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-50">line 50</a>
|
||||
<a href="hub.js.html#sunlight-1-line-54">line 54</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -593,7 +593,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-43">line 43</a>
|
||||
<a href="hub.js.html#sunlight-1-line-47">line 47</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -726,7 +726,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-64">line 64</a>
|
||||
<a href="hub.js.html#sunlight-1-line-68">line 68</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -859,7 +859,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-57">line 57</a>
|
||||
<a href="hub.js.html#sunlight-1-line-61">line 61</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -992,7 +992,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-78">line 78</a>
|
||||
<a href="hub.js.html#sunlight-1-line-82">line 82</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1250,7 +1250,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-88">line 88</a>
|
||||
<a href="hub.js.html#sunlight-1-line-92">line 92</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1376,7 +1376,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-106">line 106</a>
|
||||
<a href="hub.js.html#sunlight-1-line-152">line 152</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1502,7 +1502,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-171">line 171</a>
|
||||
<a href="hub.js.html#sunlight-1-line-220">line 220</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1674,7 +1674,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-179">line 179</a>
|
||||
<a href="hub.js.html#sunlight-1-line-228">line 228</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -3242,7 +3242,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-147">line 147</a>
|
||||
<a href="hub.js.html#sunlight-1-line-196">line 196</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -3462,7 +3462,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-115">line 115</a>
|
||||
<a href="hub.js.html#sunlight-1-line-164">line 164</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -3638,7 +3638,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-133">line 133</a>
|
||||
<a href="hub.js.html#sunlight-1-line-182">line 182</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -3815,7 +3815,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-160">line 160</a>
|
||||
<a href="hub.js.html#sunlight-1-line-209">line 209</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -4023,7 +4023,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-216">line 216</a>
|
||||
<a href="hub.js.html#sunlight-1-line-265">line 265</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -4712,7 +4712,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-228">line 228</a>
|
||||
<a href="hub.js.html#sunlight-1-line-277">line 277</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -5157,7 +5157,7 @@
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Mon Mar 18th 2019
|
||||
on Wed Feb 13th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -327,7 +327,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-71">line 71</a>
|
||||
<a href="hub.js.html#sunlight-1-line-75">line 75</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -460,7 +460,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-50">line 50</a>
|
||||
<a href="hub.js.html#sunlight-1-line-54">line 54</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -593,7 +593,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-43">line 43</a>
|
||||
<a href="hub.js.html#sunlight-1-line-47">line 47</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -726,7 +726,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-64">line 64</a>
|
||||
<a href="hub.js.html#sunlight-1-line-68">line 68</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -859,7 +859,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-57">line 57</a>
|
||||
<a href="hub.js.html#sunlight-1-line-61">line 61</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -992,7 +992,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-78">line 78</a>
|
||||
<a href="hub.js.html#sunlight-1-line-82">line 82</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1088,7 +1088,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-88">line 88</a>
|
||||
<a href="hub.js.html#sunlight-1-line-92">line 92</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1214,7 +1214,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-106">line 106</a>
|
||||
<a href="hub.js.html#sunlight-1-line-152">line 152</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1340,7 +1340,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-171">line 171</a>
|
||||
<a href="hub.js.html#sunlight-1-line-220">line 220</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1512,7 +1512,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-179">line 179</a>
|
||||
<a href="hub.js.html#sunlight-1-line-228">line 228</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -2359,7 +2359,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-147">line 147</a>
|
||||
<a href="hub.js.html#sunlight-1-line-196">line 196</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -2579,7 +2579,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-115">line 115</a>
|
||||
<a href="hub.js.html#sunlight-1-line-164">line 164</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -2755,7 +2755,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-133">line 133</a>
|
||||
<a href="hub.js.html#sunlight-1-line-182">line 182</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -2932,7 +2932,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-160">line 160</a>
|
||||
<a href="hub.js.html#sunlight-1-line-209">line 209</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -3409,7 +3409,7 @@
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Mon Mar 18th 2019
|
||||
on Wed Feb 13th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -1018,7 +1018,7 @@
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Mon Mar 18th 2019
|
||||
on Wed Feb 13th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -320,7 +320,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-71">line 71</a>
|
||||
<a href="hub.js.html#sunlight-1-line-75">line 75</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -448,7 +448,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-50">line 50</a>
|
||||
<a href="hub.js.html#sunlight-1-line-54">line 54</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -576,7 +576,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-43">line 43</a>
|
||||
<a href="hub.js.html#sunlight-1-line-47">line 47</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -704,7 +704,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-64">line 64</a>
|
||||
<a href="hub.js.html#sunlight-1-line-68">line 68</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -832,7 +832,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-57">line 57</a>
|
||||
<a href="hub.js.html#sunlight-1-line-61">line 61</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -960,7 +960,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-78">line 78</a>
|
||||
<a href="hub.js.html#sunlight-1-line-82">line 82</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1218,7 +1218,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-88">line 88</a>
|
||||
<a href="hub.js.html#sunlight-1-line-92">line 92</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1339,7 +1339,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-106">line 106</a>
|
||||
<a href="hub.js.html#sunlight-1-line-152">line 152</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1460,7 +1460,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-171">line 171</a>
|
||||
<a href="hub.js.html#sunlight-1-line-220">line 220</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1627,7 +1627,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-179">line 179</a>
|
||||
<a href="hub.js.html#sunlight-1-line-228">line 228</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -3337,7 +3337,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-147">line 147</a>
|
||||
<a href="hub.js.html#sunlight-1-line-196">line 196</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -3552,7 +3552,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-115">line 115</a>
|
||||
<a href="hub.js.html#sunlight-1-line-164">line 164</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -3723,7 +3723,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-133">line 133</a>
|
||||
<a href="hub.js.html#sunlight-1-line-182">line 182</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -3895,7 +3895,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-160">line 160</a>
|
||||
<a href="hub.js.html#sunlight-1-line-209">line 209</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -4098,7 +4098,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-216">line 216</a>
|
||||
<a href="hub.js.html#sunlight-1-line-265">line 265</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -4569,7 +4569,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-228">line 228</a>
|
||||
<a href="hub.js.html#sunlight-1-line-277">line 277</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -5158,7 +5158,7 @@
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Mon Mar 18th 2019
|
||||
on Wed Feb 13th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -351,7 +351,7 @@ exports.BoostMoveHub = BoostMoveHub;
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Mon Mar 18th 2019
|
||||
on Wed Feb 13th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -335,7 +335,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-216">line 216</a>
|
||||
<a href="hub.js.html#sunlight-1-line-265">line 265</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -1024,7 +1024,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-228">line 228</a>
|
||||
<a href="hub.js.html#sunlight-1-line-277">line 277</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -2065,7 +2065,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-216">line 216</a>
|
||||
<a href="hub.js.html#sunlight-1-line-265">line 265</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -2203,7 +2203,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-228">line 228</a>
|
||||
<a href="hub.js.html#sunlight-1-line-277">line 277</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -2374,7 +2374,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-216">line 216</a>
|
||||
<a href="hub.js.html#sunlight-1-line-265">line 265</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -3031,7 +3031,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-228">line 228</a>
|
||||
<a href="hub.js.html#sunlight-1-line-277">line 277</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -4029,7 +4029,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-216">line 216</a>
|
||||
<a href="hub.js.html#sunlight-1-line-265">line 265</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -4718,7 +4718,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-228">line 228</a>
|
||||
<a href="hub.js.html#sunlight-1-line-277">line 277</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -5621,7 +5621,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-216">line 216</a>
|
||||
<a href="hub.js.html#sunlight-1-line-265">line 265</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -6092,7 +6092,7 @@
|
||||
<ul class="dummy">
|
||||
<li>
|
||||
<a href="hub.js.html">hub.js</a>,
|
||||
<a href="hub.js.html#sunlight-1-line-228">line 228</a>
|
||||
<a href="hub.js.html#sunlight-1-line-277">line 277</a>
|
||||
</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -6681,7 +6681,7 @@
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Mon Mar 18th 2019
|
||||
on Wed Feb 13th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -300,7 +300,7 @@ var BLECharacteristic;
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Mon Mar 18th 2019
|
||||
on Wed Feb 13th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -300,7 +300,7 @@ exports.DuploTrainBase = DuploTrainBase;
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Mon Mar 18th 2019
|
||||
on Wed Feb 13th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -3272,7 +3272,7 @@
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Mon Mar 18th 2019
|
||||
on Wed Feb 13th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -177,17 +177,59 @@ class Hub extends events_1.EventEmitter {
|
||||
* @returns {Promise} Resolved upon successful connect.
|
||||
*/
|
||||
connect() {
|
||||
return new Promise(async (connectResolve, connectReject) => {
|
||||
if (this._bleDevice.connecting) {
|
||||
return new Promise((connectResolve, connectReject) => {
|
||||
const self = this;
|
||||
if (this._isConnecting) {
|
||||
return connectReject("Already connecting");
|
||||
}
|
||||
else if (this._bleDevice.connected) {
|
||||
else if (this._isConnected) {
|
||||
return connectReject("Already connected");
|
||||
}
|
||||
this._isConnecting = true;
|
||||
await this._bleDevice.connect();
|
||||
this._peripheral.connect((err) => {
|
||||
this._rssi = this._peripheral.rssi;
|
||||
const rssiUpdateInterval = setInterval(() => {
|
||||
this._peripheral.updateRssi((err, rssi) => {
|
||||
if (!err) {
|
||||
if (this._rssi !== rssi) {
|
||||
this._rssi = rssi;
|
||||
}
|
||||
}
|
||||
});
|
||||
}, 2000);
|
||||
self._peripheral.on("disconnect", () => {
|
||||
clearInterval(rssiUpdateInterval);
|
||||
this._isConnecting = false;
|
||||
this._isConnected = false;
|
||||
this.emit("disconnect");
|
||||
});
|
||||
self._peripheral.discoverServices([], (err, services) => {
|
||||
if (err) {
|
||||
this.emit("error", err);
|
||||
return;
|
||||
}
|
||||
debug("Service/characteristic discovery started");
|
||||
const servicePromises = [];
|
||||
services.forEach((service) => {
|
||||
servicePromises.push(new Promise((resolve, reject) => {
|
||||
service.discoverCharacteristics([], (err, characteristics) => {
|
||||
characteristics.forEach((characteristic) => {
|
||||
this._characteristics[characteristic.uuid] = characteristic;
|
||||
});
|
||||
return resolve();
|
||||
});
|
||||
}));
|
||||
});
|
||||
Promise.all(servicePromises).then(() => {
|
||||
debug("Service/characteristic discovery finished");
|
||||
this._isConnecting = false;
|
||||
this._isConnected = true;
|
||||
this.emit("connect");
|
||||
return connectResolve();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Disconnect the Hub.
|
||||
@ -449,7 +491,7 @@ exports.Hub = Hub;
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Mon Mar 18th 2019
|
||||
on Wed Feb 13th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -251,19 +251,25 @@
|
||||
const poweredUP = new PoweredUP.PoweredUP();
|
||||
|
||||
poweredUP.on("discover", async (hub) => { // Wait to discover a Hub
|
||||
console.log(`Discovered ${hub.name}!`);
|
||||
await hub.connect(); // Connect to the Hub
|
||||
console.log("Connected");
|
||||
await hub.sleep(3000); // Sleep for 3 seconds before starting
|
||||
|
||||
while (true) { // Repeat indefinitely
|
||||
console.log("Running motor B at speed 75");
|
||||
hub.setMotorSpeed("B", 75); // Start a motor attached to port B to run a 3/4 speed (75) indefinitely
|
||||
console.log("Running motor A at speed 100 for 2 seconds");
|
||||
await hub.setMotorSpeed("A", 100, 2000); // Run a motor attached to port A for 2 seconds at maximum speed (100) then stop
|
||||
await hub.sleep(1000); // Do nothing for 1 second
|
||||
console.log("Running motor A at speed -50 for 1 seconds");
|
||||
await hub.setMotorSpeed("A", -50, 1000); // Run a motor attached to port A for 1 second at 1/2 speed in reverse (-50) then stop
|
||||
await hub.sleep(1000); // Do nothing for 1 second
|
||||
}
|
||||
});
|
||||
|
||||
poweredUP.scan(); // Start scanning for Hubs</code></pre><p>More examples are available in the "examples" directory.</p>
|
||||
poweredUP.scan(); // Start scanning for Hubs
|
||||
console.log("Scanning for Hubs...");</code></pre><p>More examples are available in the "examples" directory.</p>
|
||||
<h3>Credits</h3><p>Thanks go to Jorge Pereira (<a href="https://github.com/JorgePe">@JorgePe</a>), Sebastian Raff (<a href="https://github.com/hobbyquaker">@hobbyquaker</a>), Valentin Heun (<a href="https://github.com/vheun">@vheun</a>), Johan Korten (<a href="https://github.com/jakorten">@jakorten</a>), and Andrey Pokhilko (<a href="https://github.com/undera">@undera</a>) for their various works, contributions, and assistance on figuring out the LEGO Boost, WeDo 2.0, and Powered UP protocols.</p></article>
|
||||
</section>
|
||||
|
||||
@ -314,7 +320,7 @@ poweredUP.scan(); // Start scanning for Hubs</code></pre><p>More examples are av
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Mon Mar 18th 2019
|
||||
on Wed Feb 13th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -503,7 +503,7 @@ exports.LPF2Hub = LPF2Hub;
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Mon Mar 18th 2019
|
||||
on Wed Feb 13th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -286,7 +286,7 @@ exports.PoweredUP = PoweredUP;
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Wed Feb 6th 2019
|
||||
on Wed Feb 13th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -308,7 +308,7 @@ exports.PUPHub = PUPHub;
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Mon Mar 18th 2019
|
||||
on Wed Feb 13th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -238,7 +238,7 @@ exports.PUPRemote = PUPRemote;
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Mon Mar 18th 2019
|
||||
on Wed Feb 13th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
File diff suppressed because one or more lines are too long
@ -540,7 +540,7 @@ exports.WeDo2SmartHub = WeDo2SmartHub;
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
|
||||
|
||||
on Mon Mar 18th 2019
|
||||
on Wed Feb 13th 2019
|
||||
|
||||
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
|
@ -60,8 +60,6 @@ const trains = [
|
||||
poweredUP.on("discover", async (hub) => {
|
||||
|
||||
if (hub instanceof PoweredUP.PUPRemote) {
|
||||
await hub.connect();
|
||||
hub._currentTrain = 2;
|
||||
hub.on("button", (button, state) => {
|
||||
|
||||
if (button === "GREEN") {
|
||||
@ -71,7 +69,14 @@ poweredUP.on("discover", async (hub) => {
|
||||
hub._currentTrain = 0;
|
||||
}
|
||||
hub.setLEDColor(trains[hub._currentTrain].color);
|
||||
console.log(`Switched active train on remote ${hub.name} to ${trains[hub._currentTrain].name}`);
|
||||
const batteryLevels = [];
|
||||
const train = trains[hub._currentTrain];
|
||||
for (let trainHub of train.hubs) {
|
||||
if (trainHub._hub) {
|
||||
batteryLevels.push(`${trainHub.name}: ${trainHub._hub.batteryLevel}%`);
|
||||
}
|
||||
}
|
||||
console.log(`Switched active train on remote ${hub.name} to ${trains[hub._currentTrain].name} (${batteryLevels.join(", ")})`);
|
||||
}
|
||||
} else if ((button === "LEFT" || button === "RIGHT") && state !== PoweredUP.Consts.ButtonState.RELEASED) {
|
||||
trains[hub._currentTrain]._speed = trains[hub._currentTrain]._speed || 0;
|
||||
@ -102,6 +107,8 @@ poweredUP.on("discover", async (hub) => {
|
||||
}
|
||||
|
||||
});
|
||||
await hub.connect();
|
||||
hub._currentTrain = 2;
|
||||
hub.setLEDColor(trains[hub._currentTrain].color);
|
||||
console.log(`Connected to Powered UP remote (${hub.name})`);
|
||||
return;
|
||||
@ -112,12 +119,8 @@ poweredUP.on("discover", async (hub) => {
|
||||
for (let trainHub in train.hubs) {
|
||||
trainHub = train.hubs[trainHub];
|
||||
if (hub.name === trainHub.name) {
|
||||
await hub.connect();
|
||||
trainHub._hub = hub;
|
||||
hub.setLEDColor(train.color);
|
||||
console.log(`Connected to ${train.name} (${hub.name})`);
|
||||
hub.on("attach", (port, type) => {
|
||||
if (type === PoweredUP.Consts.DeviceType.LED_LIGHTS && trainHub.lights && trainHub.lights.indexOf(port) >= 0) {
|
||||
if (trainHub.lights && trainHub.lights.indexOf(port) >= 0) {
|
||||
hub.setLightBrightness(port, 100);
|
||||
}
|
||||
});
|
||||
@ -125,6 +128,10 @@ poweredUP.on("discover", async (hub) => {
|
||||
console.log(`Disconnected from ${train.name} (${hub.name})`);
|
||||
delete trainHub._hub;
|
||||
})
|
||||
await hub.connect();
|
||||
trainHub._hub = hub;
|
||||
hub.setLEDColor(train.color);
|
||||
console.log(`Connected to ${train.name} (${hub.name})`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user