diff --git a/docs/BoostMoveHub.html b/docs/BoostMoveHub.html index 0e3c54a..739b94c 100644 --- a/docs/BoostMoveHub.html +++ b/docs/BoostMoveHub.html @@ -40,7 +40,7 @@ @@ -327,7 +327,7 @@ @@ -460,7 +460,7 @@ @@ -593,7 +593,7 @@ @@ -726,7 +726,7 @@ @@ -859,7 +859,7 @@ @@ -992,7 +992,7 @@ @@ -1125,7 +1125,7 @@ @@ -1258,7 +1258,7 @@ @@ -1391,7 +1391,7 @@ @@ -1649,7 +1649,7 @@ @@ -1775,7 +1775,7 @@ @@ -1901,7 +1901,7 @@ @@ -2073,7 +2073,7 @@ @@ -4317,7 +4317,7 @@ @@ -4537,7 +4537,7 @@ @@ -4713,7 +4713,7 @@ @@ -4890,7 +4890,7 @@ @@ -4963,7 +4963,7 @@
-

Emits when accelerometer detects movement. Measured in DPS - degrees per second.

+

Emits when accelerometer detects movement. Measured in mG.

@@ -5141,7 +5141,7 @@ @@ -5317,7 +5317,7 @@ @@ -6006,7 +6006,109 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

disconnect

+ + +
+
+ + +
+

Emits when the hub is disconnected.

+
+ + + + + + + + + + +
+ + + + + + + +
Inherited From:
+
+ +
+ + + +
Overrides:
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+
@@ -6204,6 +6306,225 @@ +
+ + + +
+
+

gyro

+ + +
+
+ + +
+

Emits when gyroscope detects movement. Measured in DPS - degrees per second.

+
+ + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
port + + +string + + + + +
x + + +number + + + + +
y + + +number + + + + +
z + + +number + + + + +
+ + + + +
+ + + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + +
@@ -6519,7 +6840,7 @@ @@ -6988,7 +7309,7 @@ Documentation generated by JSDoc 3.6.3 - on Wed Nov 13th 2019 + on Tue Dec 3rd 2019 using the DocStrap template. diff --git a/docs/ControlPlusHub.html b/docs/ControlPlusHub.html index e9847ee..0c2287e 100644 --- a/docs/ControlPlusHub.html +++ b/docs/ControlPlusHub.html @@ -40,7 +40,7 @@ @@ -327,7 +327,7 @@ @@ -460,7 +460,7 @@ @@ -593,7 +593,7 @@ @@ -726,7 +726,7 @@ @@ -859,7 +859,7 @@ @@ -992,7 +992,7 @@ @@ -1125,7 +1125,7 @@ @@ -1258,7 +1258,7 @@ @@ -1391,7 +1391,7 @@ @@ -1523,7 +1523,7 @@ @@ -1649,7 +1649,7 @@ @@ -1775,7 +1775,7 @@ @@ -1901,7 +1901,7 @@ @@ -2073,7 +2073,7 @@ @@ -2303,7 +2303,7 @@ @@ -2465,7 +2465,7 @@ @@ -2722,7 +2722,7 @@ @@ -3350,7 +3350,7 @@ @@ -3607,7 +3607,7 @@ @@ -3848,7 +3848,7 @@ @@ -4317,7 +4317,7 @@ @@ -4537,7 +4537,7 @@ @@ -4713,7 +4713,7 @@ @@ -4890,7 +4890,7 @@ @@ -4963,7 +4963,7 @@
-

Emits when accelerometer detects movement. Measured in DPS - degrees per second.

+

Emits when accelerometer detects movement. Measured in mG.

@@ -5141,7 +5141,7 @@ @@ -5317,7 +5317,7 @@ @@ -6006,7 +6006,109 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

disconnect

+ + +
+
+ + +
+

Emits when the hub is disconnected.

+
+ + + + + + + + + + +
+ + + + + + + +
Inherited From:
+
+ +
+ + + +
Overrides:
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+
@@ -6204,6 +6306,225 @@ +
+ + + +
+
+

gyro

+ + +
+
+ + +
+

Emits when gyroscope detects movement. Measured in DPS - degrees per second.

+
+ + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
port + + +string + + + + +
x + + +number + + + + +
y + + +number + + + + +
z + + +number + + + + +
+ + + + +
+ + + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + +
@@ -6519,7 +6840,7 @@ @@ -6988,7 +7309,7 @@ Documentation generated by JSDoc 3.6.3 - on Wed Nov 13th 2019 + on Tue Dec 3rd 2019 using the DocStrap template. diff --git a/docs/DuploTrainBase.html b/docs/DuploTrainBase.html index 0a9860c..b5f2e06 100644 --- a/docs/DuploTrainBase.html +++ b/docs/DuploTrainBase.html @@ -40,7 +40,7 @@ @@ -327,7 +327,7 @@ @@ -460,7 +460,7 @@ @@ -593,7 +593,7 @@ @@ -726,7 +726,7 @@ @@ -859,7 +859,7 @@ @@ -992,7 +992,7 @@ @@ -1125,7 +1125,7 @@ @@ -1258,7 +1258,7 @@ @@ -1391,7 +1391,7 @@ @@ -1649,7 +1649,7 @@ @@ -1775,7 +1775,7 @@ @@ -1901,7 +1901,7 @@ @@ -2073,7 +2073,7 @@ @@ -3565,7 +3565,7 @@ @@ -3785,7 +3785,7 @@ @@ -3961,7 +3961,7 @@ @@ -4138,7 +4138,7 @@ @@ -4211,7 +4211,7 @@
-

Emits when accelerometer detects movement. Measured in DPS - degrees per second.

+

Emits when accelerometer detects movement. Measured in mG.

@@ -4389,7 +4389,7 @@ @@ -4565,7 +4565,7 @@ @@ -5254,7 +5254,109 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

disconnect

+ + +
+
+ + +
+

Emits when the hub is disconnected.

+
+ + + + + + + + + + +
+ + + + + + + +
Inherited From:
+
+ +
+ + + +
Overrides:
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+
@@ -5452,6 +5554,225 @@ +
+ + + +
+
+

gyro

+ + +
+
+ + +
+

Emits when gyroscope detects movement. Measured in DPS - degrees per second.

+
+ + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
port + + +string + + + + +
x + + +number + + + + +
y + + +number + + + + +
z + + +number + + + + +
+ + + + +
+ + + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + +
@@ -5767,7 +6088,7 @@ @@ -6236,7 +6557,7 @@ Documentation generated by JSDoc 3.6.3 - on Wed Nov 13th 2019 + on Tue Dec 3rd 2019 using the DocStrap template. diff --git a/docs/Hub.html b/docs/Hub.html index 06dfa3c..4326aed 100644 --- a/docs/Hub.html +++ b/docs/Hub.html @@ -40,7 +40,7 @@ @@ -307,7 +307,7 @@ @@ -426,7 +426,7 @@ @@ -545,7 +545,7 @@ @@ -664,7 +664,7 @@ @@ -783,7 +783,7 @@ @@ -902,7 +902,7 @@ @@ -1021,7 +1021,7 @@ @@ -1140,7 +1140,7 @@ @@ -1259,7 +1259,7 @@ @@ -1341,7 +1341,7 @@ @@ -1453,7 +1453,7 @@ @@ -1565,7 +1565,7 @@ @@ -1723,7 +1723,7 @@ @@ -1882,7 +1882,7 @@ @@ -2088,7 +2088,7 @@ @@ -2250,7 +2250,7 @@ @@ -2413,7 +2413,7 @@ @@ -2607,7 +2607,7 @@ @@ -2745,7 +2745,95 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

disconnect

+ + +
+
+ + +
+

Emits when the hub is disconnected.

+
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+
@@ -2824,7 +2912,7 @@ Documentation generated by JSDoc 3.6.3 - on Wed Nov 13th 2019 + on Tue Dec 3rd 2019 using the DocStrap template. diff --git a/docs/LPF2Hub.html b/docs/LPF2Hub.html index dfcf835..4a95752 100644 --- a/docs/LPF2Hub.html +++ b/docs/LPF2Hub.html @@ -40,7 +40,7 @@ @@ -316,7 +316,7 @@
@@ -444,7 +444,7 @@ @@ -572,7 +572,7 @@ @@ -700,7 +700,7 @@ @@ -828,7 +828,7 @@ @@ -956,7 +956,7 @@ @@ -1084,7 +1084,7 @@ @@ -1212,7 +1212,7 @@ @@ -1340,7 +1340,7 @@ @@ -1436,7 +1436,7 @@ @@ -1557,7 +1557,7 @@ @@ -1678,7 +1678,7 @@ @@ -1845,7 +1845,7 @@ @@ -2659,7 +2659,7 @@ @@ -2874,7 +2874,7 @@ @@ -3045,7 +3045,7 @@ @@ -3217,7 +3217,7 @@ @@ -3290,7 +3290,7 @@
-

Emits when accelerometer detects movement. Measured in DPS - degrees per second.

+

Emits when accelerometer detects movement. Measured in mG.

@@ -3459,7 +3459,7 @@ @@ -3630,7 +3630,7 @@ @@ -4287,7 +4287,104 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

disconnect

+ + +
+
+ + +
+

Emits when the hub is disconnected.

+
+ + + + + + + + + + +
+ + + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+
@@ -4476,6 +4573,216 @@ +
+ + + +
+
+

gyro

+ + +
+
+ + +
+

Emits when gyroscope detects movement. Measured in DPS - degrees per second.

+
+ + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
port + + +string + + + + +
x + + +number + + + + +
y + + +number + + + + +
z + + +number + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + +
@@ -4773,7 +5080,7 @@ @@ -5224,7 +5531,7 @@ Documentation generated by JSDoc 3.6.3 - on Wed Nov 13th 2019 + on Tue Dec 3rd 2019 using the DocStrap template. diff --git a/docs/PUPHub.html b/docs/PUPHub.html index bda0f11..fa01e54 100644 --- a/docs/PUPHub.html +++ b/docs/PUPHub.html @@ -40,7 +40,7 @@ @@ -327,7 +327,7 @@ @@ -460,7 +460,7 @@ @@ -593,7 +593,7 @@ @@ -726,7 +726,7 @@ @@ -859,7 +859,7 @@ @@ -992,7 +992,7 @@ @@ -1125,7 +1125,7 @@ @@ -1258,7 +1258,7 @@ @@ -1391,7 +1391,7 @@ @@ -1649,7 +1649,7 @@ @@ -1775,7 +1775,7 @@ @@ -1901,7 +1901,7 @@ @@ -2073,7 +2073,7 @@ @@ -4317,7 +4317,7 @@ @@ -4537,7 +4537,7 @@ @@ -4713,7 +4713,7 @@ @@ -4890,7 +4890,7 @@ @@ -4963,7 +4963,7 @@
-

Emits when accelerometer detects movement. Measured in DPS - degrees per second.

+

Emits when accelerometer detects movement. Measured in mG.

@@ -5141,7 +5141,7 @@ @@ -5317,7 +5317,7 @@ @@ -6006,7 +6006,109 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

disconnect

+ + +
+
+ + +
+

Emits when the hub is disconnected.

+
+ + + + + + + + + + +
+ + + + + + + +
Inherited From:
+
+ +
+ + + +
Overrides:
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+
@@ -6204,6 +6306,225 @@ +
+ + + +
+
+

gyro

+ + +
+
+ + +
+

Emits when gyroscope detects movement. Measured in DPS - degrees per second.

+
+ + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
port + + +string + + + + +
x + + +number + + + + +
y + + +number + + + + +
z + + +number + + + + +
+ + + + +
+ + + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + +
@@ -6519,7 +6840,7 @@ @@ -6988,7 +7309,7 @@ Documentation generated by JSDoc 3.6.3 - on Wed Nov 13th 2019 + on Tue Dec 3rd 2019 using the DocStrap template. diff --git a/docs/PUPRemote.html b/docs/PUPRemote.html index 071196f..06ab35c 100644 --- a/docs/PUPRemote.html +++ b/docs/PUPRemote.html @@ -40,7 +40,7 @@ @@ -327,7 +327,7 @@ @@ -460,7 +460,7 @@ @@ -593,7 +593,7 @@ @@ -726,7 +726,7 @@ @@ -859,7 +859,7 @@ @@ -992,7 +992,7 @@ @@ -1125,7 +1125,7 @@ @@ -1258,7 +1258,7 @@ @@ -1391,7 +1391,7 @@ @@ -1487,7 +1487,7 @@ @@ -1613,7 +1613,7 @@ @@ -1739,7 +1739,7 @@ @@ -1911,7 +1911,7 @@ @@ -2766,7 +2766,7 @@ @@ -2986,7 +2986,7 @@ @@ -3162,7 +3162,7 @@ @@ -3339,7 +3339,7 @@ @@ -3412,7 +3412,7 @@
-

Emits when accelerometer detects movement. Measured in DPS - degrees per second.

+

Emits when accelerometer detects movement. Measured in mG.

@@ -3590,7 +3590,7 @@ @@ -3766,7 +3766,7 @@ @@ -4455,7 +4455,109 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

disconnect

+ + +
+
+ + +
+

Emits when the hub is disconnected.

+
+ + + + + + + + + + +
+ + + + + + + +
Inherited From:
+
+ +
+ + + +
Overrides:
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+
@@ -4653,6 +4755,225 @@ +
+ + + +
+
+

gyro

+ + +
+
+ + +
+

Emits when gyroscope detects movement. Measured in DPS - degrees per second.

+
+ + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
port + + +string + + + + +
x + + +number + + + + +
y + + +number + + + + +
z + + +number + + + + +
+ + + + +
+ + + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + +
@@ -4968,7 +5289,7 @@ @@ -5437,7 +5758,7 @@ Documentation generated by JSDoc 3.6.3 - on Wed Nov 13th 2019 + on Tue Dec 3rd 2019 using the DocStrap template. diff --git a/docs/PoweredUP.html b/docs/PoweredUP.html index 47290cc..03923a7 100644 --- a/docs/PoweredUP.html +++ b/docs/PoweredUP.html @@ -40,7 +40,7 @@ @@ -1179,7 +1179,7 @@ Documentation generated by JSDoc 3.6.3 - on Wed Nov 13th 2019 + on Tue Dec 3rd 2019 using the DocStrap template. diff --git a/docs/WeDo2SmartHub.html b/docs/WeDo2SmartHub.html index 71a97c6..2b9db75 100644 --- a/docs/WeDo2SmartHub.html +++ b/docs/WeDo2SmartHub.html @@ -40,7 +40,7 @@ @@ -320,7 +320,7 @@ @@ -448,7 +448,7 @@ @@ -576,7 +576,7 @@ @@ -704,7 +704,7 @@ @@ -832,7 +832,7 @@ @@ -960,7 +960,7 @@ @@ -1088,7 +1088,7 @@ @@ -1216,7 +1216,7 @@ @@ -1344,7 +1344,7 @@ @@ -1602,7 +1602,7 @@ @@ -1723,7 +1723,7 @@ @@ -1844,7 +1844,7 @@ @@ -2011,7 +2011,7 @@ @@ -3721,7 +3721,7 @@ @@ -3936,7 +3936,7 @@ @@ -4107,7 +4107,7 @@ @@ -4279,7 +4279,7 @@ @@ -4482,7 +4482,7 @@ @@ -4953,7 +4953,104 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

disconnect

+ + +
+
+ + +
+

Emits when the hub is disconnected.

+
+ + + + + + + + + + +
+ + + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+
@@ -5542,7 +5639,7 @@ Documentation generated by JSDoc 3.6.3 - on Wed Nov 13th 2019 + on Tue Dec 3rd 2019 using the DocStrap template. diff --git a/docs/boostmovehub.js.html b/docs/boostmovehub.js.html index 74a382c..85bb247 100644 --- a/docs/boostmovehub.js.html +++ b/docs/boostmovehub.js.html @@ -40,7 +40,7 @@ @@ -423,7 +423,7 @@ exports.BoostMoveHub = BoostMoveHub; Documentation generated by JSDoc 3.6.3 - on Wed Nov 13th 2019 + on Tue Dec 3rd 2019 using the DocStrap template. diff --git a/docs/classes.list.html b/docs/classes.list.html index 8465b00..6d0338f 100644 --- a/docs/classes.list.html +++ b/docs/classes.list.html @@ -40,7 +40,7 @@ @@ -203,7 +203,7 @@
-

Emits when accelerometer detects movement. Measured in DPS - degrees per second.

+

Emits when accelerometer detects movement. Measured in mG.

@@ -381,7 +381,7 @@
@@ -557,7 +557,7 @@ @@ -1246,7 +1246,109 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

disconnect

+ + +
+
+ + +
+

Emits when the hub is disconnected.

+
+ + + + + + + + + + +
+ + + + + + + +
Inherited From:
+
+ +
+ + + +
Overrides:
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+
@@ -1444,6 +1546,225 @@ +
+ + + +
+
+

gyro

+ + +
+
+ + +
+

Emits when gyroscope detects movement. Measured in DPS - degrees per second.

+
+ + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
port + + +string + + + + +
x + + +number + + + + +
y + + +number + + + + +
z + + +number + + + + +
+ + + + +
+ + + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + +
@@ -1759,7 +2080,7 @@ @@ -2190,7 +2511,7 @@
-

Emits when accelerometer detects movement. Measured in DPS - degrees per second.

+

Emits when accelerometer detects movement. Measured in mG.

@@ -2368,7 +2689,7 @@ @@ -2544,7 +2865,7 @@ @@ -3233,7 +3554,109 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

disconnect

+ + +
+
+ + +
+

Emits when the hub is disconnected.

+
+ + + + + + + + + + +
+ + + + + + + +
Inherited From:
+
+ +
+ + + +
Overrides:
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+
@@ -3431,6 +3854,225 @@ +
+ + + +
+
+

gyro

+ + +
+
+ + +
+

Emits when gyroscope detects movement. Measured in DPS - degrees per second.

+
+ + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
port + + +string + + + + +
x + + +number + + + + +
y + + +number + + + + +
z + + +number + + + + +
+ + + + +
+ + + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + +
@@ -3746,7 +4388,7 @@ @@ -4177,7 +4819,7 @@
-

Emits when accelerometer detects movement. Measured in DPS - degrees per second.

+

Emits when accelerometer detects movement. Measured in mG.

@@ -4355,7 +4997,7 @@ @@ -4531,7 +5173,7 @@ @@ -5220,7 +5862,109 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

disconnect

+ + +
+
+ + +
+

Emits when the hub is disconnected.

+
+ + + + + + + + + + +
+ + + + + + + +
Inherited From:
+
+ +
+ + + +
Overrides:
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+
@@ -5418,6 +6162,225 @@ +
+ + + +
+
+

gyro

+ + +
+
+ + +
+

Emits when gyroscope detects movement. Measured in DPS - degrees per second.

+
+ + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
port + + +string + + + + +
x + + +number + + + + +
y + + +number + + + + +
z + + +number + + + + +
+ + + + +
+ + + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + +
@@ -5733,7 +6696,7 @@ @@ -6285,7 +7248,7 @@ @@ -6423,7 +7386,95 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

disconnect

+ + +
+
+ + +
+

Emits when the hub is disconnected.

+
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+
@@ -6464,7 +7515,7 @@
-

Emits when accelerometer detects movement. Measured in DPS - degrees per second.

+

Emits when accelerometer detects movement. Measured in mG.

@@ -6633,7 +7684,7 @@
@@ -6804,7 +7855,7 @@ @@ -7461,7 +8512,104 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

disconnect

+ + +
+
+ + +
+

Emits when the hub is disconnected.

+
+ + + + + + + + + + +
+ + + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+
@@ -7650,6 +8798,216 @@ +
+ + + +
+
+

gyro

+ + +
+
+ + +
+

Emits when gyroscope detects movement. Measured in DPS - degrees per second.

+
+ + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
port + + +string + + + + +
x + + +number + + + + +
y + + +number + + + + +
z + + +number + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + +
@@ -7947,7 +9305,7 @@ @@ -8513,7 +9871,7 @@
-

Emits when accelerometer detects movement. Measured in DPS - degrees per second.

+

Emits when accelerometer detects movement. Measured in mG.

@@ -8691,7 +10049,7 @@ @@ -8867,7 +10225,7 @@ @@ -9556,7 +10914,109 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

disconnect

+ + +
+
+ + +
+

Emits when the hub is disconnected.

+
+ + + + + + + + + + +
+ + + + + + + +
Inherited From:
+
+ +
+ + + +
Overrides:
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+
@@ -9754,6 +11214,225 @@ +
+ + + +
+
+

gyro

+ + +
+
+ + +
+

Emits when gyroscope detects movement. Measured in DPS - degrees per second.

+
+ + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
port + + +string + + + + +
x + + +number + + + + +
y + + +number + + + + +
z + + +number + + + + +
+ + + + +
+ + + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + +
@@ -10069,7 +11748,7 @@ @@ -10500,7 +12179,7 @@
-

Emits when accelerometer detects movement. Measured in DPS - degrees per second.

+

Emits when accelerometer detects movement. Measured in mG.

@@ -10678,7 +12357,7 @@ @@ -10854,7 +12533,7 @@ @@ -11543,7 +13222,109 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

disconnect

+ + +
+
+ + +
+

Emits when the hub is disconnected.

+
+ + + + + + + + + + +
+ + + + + + + +
Inherited From:
+
+ +
+ + + +
Overrides:
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+
@@ -11741,6 +13522,225 @@ +
+ + + +
+
+

gyro

+ + +
+
+ + +
+

Emits when gyroscope detects movement. Measured in DPS - degrees per second.

+
+ + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
port + + +string + + + + +
x + + +number + + + + +
y + + +number + + + + +
z + + +number + + + + +
+ + + + +
+ + + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + +
@@ -12056,7 +14056,7 @@ @@ -12617,7 +14617,7 @@ @@ -13088,7 +15088,104 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

disconnect

+ + +
+
+ + +
+

Emits when the hub is disconnected.

+
+ + + + + + + + + + +
+ + + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+
@@ -13677,7 +15774,7 @@ Documentation generated by JSDoc 3.6.3 - on Wed Nov 13th 2019 + on Tue Dec 3rd 2019 using the DocStrap template. diff --git a/docs/consts.js.html b/docs/consts.js.html index 5b95611..15c52b7 100644 --- a/docs/consts.js.html +++ b/docs/consts.js.html @@ -40,7 +40,7 @@ @@ -157,10 +157,13 @@ var DeviceType; DeviceType[DeviceType["DUPLO_TRAIN_BASE_SPEEDOMETER"] = 44] = "DUPLO_TRAIN_BASE_SPEEDOMETER"; DeviceType[DeviceType["CONTROL_PLUS_LARGE_MOTOR"] = 46] = "CONTROL_PLUS_LARGE_MOTOR"; DeviceType[DeviceType["CONTROL_PLUS_XLARGE_MOTOR"] = 47] = "CONTROL_PLUS_XLARGE_MOTOR"; + DeviceType[DeviceType["CONTROL_PLUS_GEST"] = 54] = "CONTROL_PLUS_GEST"; DeviceType[DeviceType["POWERED_UP_REMOTE_BUTTON"] = 55] = "POWERED_UP_REMOTE_BUTTON"; DeviceType[DeviceType["RSSI"] = 56] = "RSSI"; - DeviceType[DeviceType["CONTROL_PLUS_ACCELEROMETER"] = 58] = "CONTROL_PLUS_ACCELEROMETER"; + DeviceType[DeviceType["CONTROL_PLUS_ACCELEROMETER"] = 57] = "CONTROL_PLUS_ACCELEROMETER"; + DeviceType[DeviceType["CONTROL_PLUS_GYRO"] = 58] = "CONTROL_PLUS_GYRO"; DeviceType[DeviceType["CONTROL_PLUS_TILT"] = 59] = "CONTROL_PLUS_TILT"; + DeviceType[DeviceType["TEMPERATURE"] = 60] = "TEMPERATURE"; })(DeviceType = exports.DeviceType || (exports.DeviceType = {})); // tslint:disable-next-line exports.DeviceTypeNames = DeviceType; @@ -307,7 +310,7 @@ var BLECharacteristic; Documentation generated by JSDoc 3.6.3 - on Wed Nov 13th 2019 + on Tue Dec 3rd 2019 using the DocStrap template. diff --git a/docs/controlplushub.js.html b/docs/controlplushub.js.html index ab3961e..3d31560 100644 --- a/docs/controlplushub.js.html +++ b/docs/controlplushub.js.html @@ -40,7 +40,7 @@ @@ -108,15 +108,18 @@ class ControlPlusHub extends lpf2hub_1.LPF2Hub { constructor(device, autoSubscribe = true) { super(device, autoSubscribe); this._currentPort = 0x3b; + this._currentMaxMA = 4175; this._voltagePort = 0x3c; this._voltageMaxRaw = 4095; + this._voltageMaxV = 9.615; this.type = Consts.HubType.CONTROL_PLUS_HUB; this._ports = { "A": new port_1.Port("A", 0), "B": new port_1.Port("B", 1), "C": new port_1.Port("C", 2), "D": new port_1.Port("D", 3), - "ACCEL": new port_1.Port("ACCEL", 98), + "ACCEL": new port_1.Port("ACCEL", 97), + "GYRO": new port_1.Port("GYRO", 98), "TILT": new port_1.Port("TILT", 99) }; this.on("attach", (port, type) => { @@ -414,7 +417,7 @@ exports.ControlPlusHub = ControlPlusHub; Documentation generated by JSDoc 3.6.3 - on Wed Nov 13th 2019 + on Tue Dec 3rd 2019 using the DocStrap template. diff --git a/docs/duplotrainbase.js.html b/docs/duplotrainbase.js.html index 45a3553..a5a8eea 100644 --- a/docs/duplotrainbase.js.html +++ b/docs/duplotrainbase.js.html @@ -40,7 +40,7 @@ @@ -262,7 +262,7 @@ exports.DuploTrainBase = DuploTrainBase; Documentation generated by JSDoc 3.6.3 - on Wed Nov 13th 2019 + on Tue Dec 3rd 2019 using the DocStrap template. diff --git a/docs/global.html b/docs/global.html index 87b9672..be0995b 100644 --- a/docs/global.html +++ b/docs/global.html @@ -40,7 +40,7 @@ @@ -356,7 +356,7 @@
@@ -571,7 +571,7 @@ @@ -954,7 +954,7 @@ @@ -1337,7 +1337,7 @@ @@ -2894,7 +2894,7 @@ @@ -3109,7 +3109,7 @@ @@ -3704,7 +3704,7 @@ Documentation generated by JSDoc 3.6.3 - on Wed Nov 13th 2019 + on Tue Dec 3rd 2019 using the DocStrap template. diff --git a/docs/hub.js.html b/docs/hub.js.html index 3f5f9ef..8d0fa15 100644 --- a/docs/hub.js.html +++ b/docs/hub.js.html @@ -40,7 +40,7 @@ @@ -122,6 +122,10 @@ class Hub extends events_1.EventEmitter { this.autoSubscribe = !!autoSubscribe; this._bleDevice = device; device.on("disconnect", () => { + /** + * Emits when the hub is disconnected. + * @event Hub#disconnect + */ this.emit("disconnect"); }); } @@ -315,14 +319,14 @@ class Hub extends events_1.EventEmitter { port.type = type; if (this.autoSubscribe) { this._activatePortDevice(port.value, type, this._getModeForDeviceType(type), 0x00); - /** - * Emits when a motor or sensor is attached to the Hub. - * @event Hub#attach - * @param {string} port - * @param {DeviceType} type - */ - this.emit("attach", port.id, type); } + /** + * Emits when a motor or sensor is attached to the Hub. + * @event Hub#attach + * @param {string} port + * @param {DeviceType} type + */ + this.emit("attach", port.id, type); } else { port.type = Consts.DeviceType.UNKNOWN; @@ -477,7 +481,7 @@ exports.Hub = Hub; Documentation generated by JSDoc 3.6.3 - on Wed Nov 13th 2019 + on Tue Dec 3rd 2019 using the DocStrap template. diff --git a/docs/index.html b/docs/index.html index a3c6c91..8df7b00 100644 --- a/docs/index.html +++ b/docs/index.html @@ -40,7 +40,7 @@ @@ -360,7 +360,7 @@ console.log("Scanning for Hubs..."); Documentation generated by JSDoc 3.6.3 - on Wed Nov 13th 2019 + on Tue Dec 3rd 2019 using the DocStrap template. diff --git a/docs/lpf2hub.js.html b/docs/lpf2hub.js.html index cd18f54..866aef4 100644 --- a/docs/lpf2hub.js.html +++ b/docs/lpf2hub.js.html @@ -40,7 +40,7 @@ @@ -332,7 +332,7 @@ class LPF2Hub extends hub_1.Hub { // primary MAC Address } else if (data[3] === 0x0d) { - this._primaryMACAddress = LPF2Hub.decodeMACAddress(data.slice(4, 10)); + this._primaryMACAddress = LPF2Hub.decodeMACAddress(data.slice(5)); // Battery level reports } else if (data[3] === 0x06) { @@ -571,12 +571,27 @@ class LPF2Hub extends hub_1.Hub { this.emit("tilt", "TILT", this._lastTiltX, this._lastTiltY, this._lastTiltZ); break; } - case Consts.DeviceType.CONTROL_PLUS_ACCELEROMETER: { - const accelX = Math.round((data.readInt16LE(4) / 28571) * 2000); - const accelY = Math.round((data.readInt16LE(6) / 28571) * 2000); - const accelZ = Math.round((data.readInt16LE(8) / 28571) * 2000); + case Consts.DeviceType.CONTROL_PLUS_GYRO: { + const gyroX = Math.round(data.readInt16LE(4) * 7 / 400); + const gyroY = Math.round(data.readInt16LE(6) * 7 / 400); + const gyroZ = Math.round(data.readInt16LE(8) * 7 / 400); /** - * Emits when accelerometer detects movement. Measured in DPS - degrees per second. + * Emits when gyroscope detects movement. Measured in DPS - degrees per second. + * @event LPF2Hub#gyro + * @param {string} port + * @param {number} x + * @param {number} y + * @param {number} z + */ + this.emit("gyro", "GYRO", gyroX, gyroY, gyroZ); + break; + } + case Consts.DeviceType.CONTROL_PLUS_ACCELEROMETER: { + const accelX = Math.round(data.readInt16LE(4) / 4.096); + const accelY = Math.round(data.readInt16LE(6) / 4.096); + const accelZ = Math.round(data.readInt16LE(8) / 4.096); + /** + * Emits when accelerometer detects movement. Measured in mG. * @event LPF2Hub#accel * @param {string} port * @param {number} x @@ -682,7 +697,7 @@ exports.LPF2Hub = LPF2Hub; Documentation generated by JSDoc 3.6.3 - on Wed Nov 13th 2019 + on Tue Dec 3rd 2019 using the DocStrap template. diff --git a/docs/poweredup-node.js.html b/docs/poweredup-node.js.html index 9a30885..0bfb7ae 100644 --- a/docs/poweredup-node.js.html +++ b/docs/poweredup-node.js.html @@ -40,7 +40,7 @@ @@ -282,7 +282,7 @@ exports.PoweredUP = PoweredUP; Documentation generated by JSDoc 3.6.3 - on Wed Nov 13th 2019 + on Tue Dec 3rd 2019 using the DocStrap template. diff --git a/docs/puphub.js.html b/docs/puphub.js.html index 65cb01a..3219250 100644 --- a/docs/puphub.js.html +++ b/docs/puphub.js.html @@ -40,7 +40,7 @@ @@ -417,7 +417,7 @@ exports.PUPHub = PUPHub; Documentation generated by JSDoc 3.6.3 - on Wed Nov 13th 2019 + on Tue Dec 3rd 2019 using the DocStrap template. diff --git a/docs/pupremote.js.html b/docs/pupremote.js.html index 65499c0..c7e9543 100644 --- a/docs/pupremote.js.html +++ b/docs/pupremote.js.html @@ -40,7 +40,7 @@ @@ -181,7 +181,7 @@ exports.PUPRemote = PUPRemote; Documentation generated by JSDoc 3.6.3 - on Wed Nov 13th 2019 + on Tue Dec 3rd 2019 using the DocStrap template. diff --git a/docs/quicksearch.html b/docs/quicksearch.html index a8ae974..1d14541 100644 --- a/docs/quicksearch.html +++ b/docs/quicksearch.html @@ -7,7 +7,7 @@