diff --git a/docs/BoostMoveHub.html b/docs/BoostMoveHub.html
index 6d097d1..80ab84f 100644
--- a/docs/BoostMoveHub.html
+++ b/docs/BoostMoveHub.html
@@ -338,139 +338,6 @@
-
-
-
-
-
-
-
-
-
-
- <readonly> current
-
-
-
-
-
-
-
-
-
-
-
-
- Properties:
-
-
-
-
-
-
-
- Name |
-
-
- Type |
-
-
-
-
-
- Description |
-
-
-
-
-
-
-
-
- current |
-
-
-
-
-
-number
-
-
-
-
- |
-
-
-
-
-
- Current usage of the hub (Amps) |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Inherited From:
- -
-
-
-
-
-
- - Overrides:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Source:
- -
-
-
-
-
-
-
-
-
-
@@ -5597,7 +5464,7 @@
Documentation generated by JSDoc 3.5.5
- on Fri Jan 18th 2019
+ on Tue Jan 22nd 2019
using the DocStrap template.
diff --git a/docs/DuploTrainBase.html b/docs/DuploTrainBase.html
index c3fae59..ae6ca7a 100644
--- a/docs/DuploTrainBase.html
+++ b/docs/DuploTrainBase.html
@@ -338,139 +338,6 @@
-
-
-
-
-
-
-
-
-
-
- <readonly> current
-
-
-
-
-
-
-
-
-
-
-
-
- Properties:
-
-
-
-
-
-
-
- Name |
-
-
- Type |
-
-
-
-
-
- Description |
-
-
-
-
-
-
-
-
- current |
-
-
-
-
-
-number
-
-
-
-
- |
-
-
-
-
-
- Current usage of the hub (Amps) |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Inherited From:
- -
-
-
-
-
-
- - Overrides:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Source:
- -
-
-
-
-
-
-
-
-
-
@@ -4200,7 +4067,7 @@
Documentation generated by JSDoc 3.5.5
- on Fri Jan 18th 2019
+ on Tue Jan 22nd 2019
using the DocStrap template.
diff --git a/docs/Hub.html b/docs/Hub.html
index 803f806..7f7b0f8 100644
--- a/docs/Hub.html
+++ b/docs/Hub.html
@@ -318,125 +318,6 @@
-
-
-
-
-
-
-
-
-
-
- <readonly> current
-
-
-
-
-
-
-
-
-
-
-
-
- Properties:
-
-
-
-
-
-
-
- Name |
-
-
- Type |
-
-
-
-
-
- Description |
-
-
-
-
-
-
-
-
- current |
-
-
-
-
-
-number
-
-
-
-
- |
-
-
-
-
-
- Current usage of the hub (Amps) |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Source:
- -
-
-
-
-
-
-
-
-
-
@@ -2586,7 +2467,7 @@
Documentation generated by JSDoc 3.5.5
- on Fri Jan 18th 2019
+ on Tue Jan 22nd 2019
using the DocStrap template.
diff --git a/docs/LPF2Hub.html b/docs/LPF2Hub.html
index 2a74e62..00f2941 100644
--- a/docs/LPF2Hub.html
+++ b/docs/LPF2Hub.html
@@ -327,134 +327,6 @@
-
-
-
-
-
-
-
-
-
-
- <readonly> current
-
-
-
-
-
-
-
-
-
-
-
-
- Properties:
-
-
-
-
-
-
-
- Name |
-
-
- Type |
-
-
-
-
-
- Description |
-
-
-
-
-
-
-
-
- current |
-
-
-
-
-
-number
-
-
-
-
- |
-
-
-
-
-
- Current usage of the hub (Amps) |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Inherited From:
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Source:
- -
-
-
-
-
-
-
-
-
-
@@ -4460,7 +4332,7 @@
Documentation generated by JSDoc 3.5.5
- on Fri Jan 18th 2019
+ on Tue Jan 22nd 2019
using the DocStrap template.
diff --git a/docs/PUPHub.html b/docs/PUPHub.html
index d768611..9ea70b1 100644
--- a/docs/PUPHub.html
+++ b/docs/PUPHub.html
@@ -338,139 +338,6 @@
-
-
-
-
-
-
-
-
-
-
- <readonly> current
-
-
-
-
-
-
-
-
-
-
-
-
- Properties:
-
-
-
-
-
-
-
- Name |
-
-
- Type |
-
-
-
-
-
- Description |
-
-
-
-
-
-
-
-
- current |
-
-
-
-
-
-number
-
-
-
-
- |
-
-
-
-
-
- Current usage of the hub (Amps) |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Inherited From:
- -
-
-
-
-
-
- - Overrides:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Source:
- -
-
-
-
-
-
-
-
-
-
@@ -5169,7 +5036,7 @@
Documentation generated by JSDoc 3.5.5
- on Fri Jan 18th 2019
+ on Tue Jan 22nd 2019
using the DocStrap template.
diff --git a/docs/PUPRemote.html b/docs/PUPRemote.html
index 5587767..da66a6c 100644
--- a/docs/PUPRemote.html
+++ b/docs/PUPRemote.html
@@ -338,139 +338,6 @@
-
-
-
-
-
-
-
-
-
-
- <readonly> current
-
-
-
-
-
-
-
-
-
-
-
-
- Properties:
-
-
-
-
-
-
-
- Name |
-
-
- Type |
-
-
-
-
-
- Description |
-
-
-
-
-
-
-
-
- current |
-
-
-
-
-
-number
-
-
-
-
- |
-
-
-
-
-
- Current usage of the hub (Amps) |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Inherited From:
- -
-
-
-
-
-
- - Overrides:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Source:
- -
-
-
-
-
-
-
-
-
-
@@ -3421,7 +3288,7 @@
Documentation generated by JSDoc 3.5.5
- on Fri Jan 18th 2019
+ on Tue Jan 22nd 2019
using the DocStrap template.
diff --git a/docs/PoweredUP.html b/docs/PoweredUP.html
index 624d1f6..dc2ceb6 100644
--- a/docs/PoweredUP.html
+++ b/docs/PoweredUP.html
@@ -860,7 +860,7 @@
Documentation generated by JSDoc 3.5.5
- on Fri Jan 18th 2019
+ on Tue Jan 22nd 2019
using the DocStrap template.
diff --git a/docs/WeDo2SmartHub.html b/docs/WeDo2SmartHub.html
index bc88bed..e261195 100644
--- a/docs/WeDo2SmartHub.html
+++ b/docs/WeDo2SmartHub.html
@@ -331,134 +331,6 @@
-
-
-
-
-
-
-
-
-
-
- <readonly> current
-
-
-
-
-
-
-
-
-
-
-
-
- Properties:
-
-
-
-
-
-
-
- Name |
-
-
- Type |
-
-
-
-
-
- Description |
-
-
-
-
-
-
-
-
- current |
-
-
-
-
-
-number
-
-
-
-
- |
-
-
-
-
-
- Current usage of the hub (Amps) |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Inherited From:
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Source:
- -
-
-
-
-
-
-
-
-
-
@@ -4438,7 +4310,7 @@
@@ -4747,7 +4619,7 @@
@@ -4909,7 +4781,7 @@
@@ -5095,7 +4967,7 @@
@@ -5174,7 +5046,7 @@
Documentation generated by JSDoc 3.5.5
- on Fri Jan 18th 2019
+ on Tue Jan 22nd 2019
using the DocStrap template.
diff --git a/docs/boostmovehub.js.html b/docs/boostmovehub.js.html
index f9ccec1..826de25 100644
--- a/docs/boostmovehub.js.html
+++ b/docs/boostmovehub.js.html
@@ -349,7 +349,7 @@ exports.BoostMoveHub = BoostMoveHub;
Documentation generated by JSDoc 3.5.5
- on Fri Jan 18th 2019
+ on Tue Jan 22nd 2019
using the DocStrap template.
diff --git a/docs/classes.list.html b/docs/classes.list.html
index 7f6f44b..b3a91d3 100644
--- a/docs/classes.list.html
+++ b/docs/classes.list.html
@@ -5945,7 +5945,7 @@
@@ -6254,7 +6254,7 @@
@@ -6416,7 +6416,7 @@
@@ -6602,7 +6602,7 @@
@@ -6681,7 +6681,7 @@
Documentation generated by JSDoc 3.5.5
- on Fri Jan 18th 2019
+ on Tue Jan 22nd 2019
using the DocStrap template.
diff --git a/docs/consts.js.html b/docs/consts.js.html
index 4db7a4e..75c214b 100644
--- a/docs/consts.js.html
+++ b/docs/consts.js.html
@@ -277,7 +277,7 @@ var BLECharacteristic;
Documentation generated by JSDoc 3.5.5
- on Fri Jan 18th 2019
+ on Tue Jan 22nd 2019
using the DocStrap template.
diff --git a/docs/duplotrainbase.js.html b/docs/duplotrainbase.js.html
index 2234af0..8340e2c 100644
--- a/docs/duplotrainbase.js.html
+++ b/docs/duplotrainbase.js.html
@@ -298,7 +298,7 @@ exports.DuploTrainBase = DuploTrainBase;
Documentation generated by JSDoc 3.5.5
- on Fri Jan 18th 2019
+ on Tue Jan 22nd 2019
using the DocStrap template.
diff --git a/docs/global.html b/docs/global.html
index 08ee2a2..b82dbc9 100644
--- a/docs/global.html
+++ b/docs/global.html
@@ -3272,7 +3272,7 @@
Documentation generated by JSDoc 3.5.5
- on Fri Jan 18th 2019
+ on Tue Jan 22nd 2019
using the DocStrap template.
diff --git a/docs/hub.js.html b/docs/hub.js.html
index 615afbc..febca00 100644
--- a/docs/hub.js.html
+++ b/docs/hub.js.html
@@ -161,13 +161,13 @@ class Hub extends events_1.EventEmitter {
get voltage() {
return this._voltage;
}
- /**
- * @readonly
- * @property {number} current Current usage of the hub (Amps)
- */
- get current() {
- return this._current;
- }
+ // /**
+ // * @readonly
+ // * @property {number} current Current usage of the hub (Amps)
+ // */
+ // public get current () {
+ // return this._current;
+ // }
/**
* Connect to the Hub.
* @method Hub#connect
@@ -480,7 +480,7 @@ exports.Hub = Hub;
Documentation generated by JSDoc 3.5.5
- on Fri Jan 18th 2019
+ on Tue Jan 22nd 2019
using the DocStrap template.
diff --git a/docs/index.html b/docs/index.html
index 88f46ac..93f3f20 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -314,7 +314,7 @@ poweredUP.scan(); // Start scanning for HubsMore examples are av
Documentation generated by JSDoc 3.5.5
- on Fri Jan 18th 2019
+ on Tue Jan 22nd 2019
using the DocStrap template.
diff --git a/docs/lpf2hub.js.html b/docs/lpf2hub.js.html
index 591a293..f2b3ba5 100644
--- a/docs/lpf2hub.js.html
+++ b/docs/lpf2hub.js.html
@@ -298,25 +298,25 @@ class LPF2Hub extends hub_1.Hub {
if ((data[3] === 0x3b && this.type === Consts.HubType.POWERED_UP_REMOTE)) { // Voltage (PUP Remote)
data = this._padMessage(data, 6);
const voltage = data.readUInt16LE(4) / 500;
- this._voltage = Math.floor(voltage);
+ this._voltage = voltage;
return;
}
else if (data[3] === 0x3c && this.type === Consts.HubType.POWERED_UP_REMOTE) { // Current (PUP Remote)
data = this._padMessage(data, 6);
- const current = data.readUInt16LE(4) / 1000;
+ const current = data.readUInt16LE(4);
this._current = current;
return;
}
else if (data[3] === 0x3c && this.type !== Consts.HubType.POWERED_UP_REMOTE) { // Voltage (Non-PUP Remote)
data = this._padMessage(data, 6);
const voltage = data.readUInt16LE(4) / 400;
- this._voltage = Math.floor(voltage);
+ this._voltage = voltage;
return;
}
else if (data[3] === 0x3b && this.type !== Consts.HubType.POWERED_UP_REMOTE) { // Current (Non-PUP Remote)
data = this._padMessage(data, 6);
- const current = data.readUInt16LE(4) / 4096;
- this._current = current * 100;
+ const current = data.readUInt16LE(4) / 1000;
+ this._current = current;
return;
}
const port = this._getPortForPortNumber(data[3]);
@@ -493,7 +493,7 @@ exports.LPF2Hub = LPF2Hub;
Documentation generated by JSDoc 3.5.5
- on Fri Jan 18th 2019
+ on Tue Jan 22nd 2019
using the DocStrap template.
diff --git a/docs/poweredup.js.html b/docs/poweredup.js.html
index 6f859c9..0907ba4 100644
--- a/docs/poweredup.js.html
+++ b/docs/poweredup.js.html
@@ -273,7 +273,7 @@ exports.PoweredUP = PoweredUP;
Documentation generated by JSDoc 3.5.5
- on Fri Jan 18th 2019
+ on Tue Jan 22nd 2019
using the DocStrap template.
diff --git a/docs/puphub.js.html b/docs/puphub.js.html
index 10fefaf..11e5c7f 100644
--- a/docs/puphub.js.html
+++ b/docs/puphub.js.html
@@ -306,7 +306,7 @@ exports.PUPHub = PUPHub;
Documentation generated by JSDoc 3.5.5
- on Fri Jan 18th 2019
+ on Tue Jan 22nd 2019
using the DocStrap template.
diff --git a/docs/pupremote.js.html b/docs/pupremote.js.html
index 3e95cde..6c893f3 100644
--- a/docs/pupremote.js.html
+++ b/docs/pupremote.js.html
@@ -236,7 +236,7 @@ exports.PUPRemote = PUPRemote;
Documentation generated by JSDoc 3.5.5
- on Fri Jan 18th 2019
+ on Tue Jan 22nd 2019
using the DocStrap template.
diff --git a/docs/quicksearch.html b/docs/quicksearch.html
index d08b1c2..2ba7e5e 100644
--- a/docs/quicksearch.html
+++ b/docs/quicksearch.html
@@ -7,7 +7,7 @@