EV3 port and sensor polling updates (#1342)

* Add motor rotate, without coasting yet.  Fixed some todos.

* Removing logging.

* Implemented motor set position, motor set power, and beep note for time blocks.  Changed labels on motor blocks.  Tracking motor speeds for all ports.

* Fixing motor ports to 0-3 and then output bit field when sending commands.

* Added stop all motors with stop button.  Added port masking function.  Some cleanup.  Moved beeping up an octave.

* Combine device list polling and sensor polling into a single timeout call, device list requested every 20 times.

* Don't reset sensors on device update.  Don't store undefined sensor/motor values.  Some comments.

* Fixing some linting.
This commit is contained in:
Evelyn Eastmond 2018-07-13 13:14:53 -04:00 committed by Eric Rosenbaum
parent c69a59575d
commit 133ade7f48
3 changed files with 385 additions and 293 deletions

File diff suppressed because it is too large Load diff

View file

@ -50,7 +50,6 @@ class BLESession extends JSONRPCWebSocket {
connectDevice (id) {
this.sendRemoteRequest('connect', {peripheralId: id})
.then(() => {
log.info('should have connected');
this._connected = true;
this._runtime.emit(this._runtime.constructor.PERIPHERAL_CONNECTED);
this._connectCallback();

View file

@ -52,7 +52,6 @@ class BTSession extends JSONRPCWebSocket {
connectDevice (id) {
this.sendRemoteRequest('connect', {peripheralId: id})
.then(() => {
log.info('should have connected');
this._connected = true;
this._runtime.emit(this._runtime.constructor.PERIPHERAL_CONNECTED);
this._connectCallback();