Commit graph

4134 commits

Author SHA1 Message Date
Kevin Andersen
fcbac7516e This commit addresses a discussion in #2229 around backward compatibility.
This change creates two different port mappings for the Move Hub. By default the extension will use the newer mapping introduced in firmware version 1.0.00.0224. When connected to the hub, the extension will request the hub's firmware version. If it's older than 1.0.00.0224 it will use the older mapping.
2019-07-26 15:31:37 -04:00
Kevin Andersen
e7634d50fa Add port mappings to support older firmware version 2.0.00.0016 and later as well as newer firmware version 2.0.00.0017 or newer 2019-07-26 14:12:05 -04:00
Kevin Andersen
fd0944e505 Changed manufacturerData-filter to fit the changes in https://github.com/LLK/scratch-link/pull/139 2019-07-23 13:11:17 -04:00
Kevin Andersen
1daffa7570 Merge branch 'develop' of https://github.com/LLK/scratch-vm into bugfix/2230 2019-07-23 13:09:07 -04:00
Karishma Chadha
f6f97ef3a7
Merge pull request #2240 from LLK/revert-2145-raise-params
Revert "Raise params to the next frame when pushing"
2019-07-22 13:30:28 -04:00
Karishma Chadha
c499106f85
Revert "Raise params to the next frame when pushing" 2019-07-22 12:59:48 -04:00
adroitwhiz
4e34f1735a replaceItemOfList by assigning array index 2019-07-20 01:11:35 -04:00
Karishma Chadha
9ba9732e8a
Merge pull request #2145 from mzgoddard/raise-params
Raise params to the next frame when pushing
2019-07-17 16:12:37 -04:00
Michael "Z" Goddard
d3ae00292f
add Profiler.increment and Profiler.frame
Let profiled code track frames and arguments called by incrementing a
counter for a frame id or frame id and argument. This replaces the same
counting by recording the call as part of a history of calls and
returns. Updating the array for all calls counted takes enough time to
bias the profiled run towards less overall executions.
2019-07-17 15:06:47 -04:00
Michael "Z" Goddard
50b55a489b
fix stopThisScript inside procedures 2019-07-17 15:02:44 -04:00
Andrew Sliwinski
d9d83c44ae
Merge pull request #2228 from LLK/greenkeeper/lodash.defaultsdeep-4.6.1
Update lodash.defaultsdeep to the latest version 🚀
2019-07-15 10:34:42 -04:00
Kevin Andersen
c89add4de9 Added START_POWER enum to BoostOutputSubCommand which allows the extension to use unregulated motor commands with the Move Hub. Changed BoostMotor.turnOff() to use unregulated motor commands since it seems like a more reliable way of turning the motor off 2019-07-15 09:48:12 -04:00
Kevin Andersen
f4e34131e3 Implements BLE manufacturer data-feature to only scan for properly initialised LEGO BOOST Move Hubs 2019-07-11 17:23:59 -04:00
Kevin Andersen
dcccae9656 Add case to onMessage to catch responses from the LED 2019-07-11 16:23:07 -04:00
Kevin Andersen
4041fbadc3 Changed port-mapping to reflect firmware update. 2019-07-11 16:10:23 -04:00
greenkeeper[bot]
c9f8844c68 chore(package): update lockfile package-lock.json 2019-07-10 00:45:01 +00:00
greenkeeper[bot]
ad3fc085c8 chore(package): update lodash.defaultsdeep to version 4.6.1 2019-07-10 00:44:57 +00:00
Evelyn Eastmond
cc04fb0994
Merge pull request #2211 from evhan55/ergonomics/1568
EV3 documentation and small refactors
2019-06-28 12:09:24 -04:00
Evelyn Eastmond
1d880bca21
Merge pull request #2201 from evhan55/enhancement/1929
Clean up hardware disconnect behavior
2019-06-27 16:01:12 -04:00
Eric Rosenbaum
4bf5f85d9a Lint (remove logs, add spaces) 2019-06-27 15:48:30 -04:00
Michael "Z" Goddard
8d91e3cbd7
test stopThisScript in procedures
- Test that stopThisScript in a procedure stays in the procedure and
  moves it to the end where Sequencer can pop it normally
2019-06-25 14:38:46 -04:00
Evelyn Eastmond
d7af8457e1 Making constants decimals. 2019-06-23 22:58:40 -04:00
Evelyn Eastmond
6520f3bd7c Fixing enum var name again. 2019-06-23 22:54:28 -04:00
Evelyn Eastmond
87590202cc Adding 'byte to follow' comments back. 2019-06-23 22:42:42 -04:00
Evelyn Eastmond
c5a954fb56 Testing some new variable names. 2019-06-23 22:20:50 -04:00
Evelyn Eastmond
471a22dbdc Clarifying input_device_list args and return types. 2019-06-23 21:58:05 -04:00
Evelyn Eastmond
98deb1bebe Removing test Ev3Args values. 2019-06-23 21:29:24 -04:00
Evelyn Eastmond
54633e1a97 Adding some comments. 2019-06-23 21:27:20 -04:00
Evelyn Eastmond
7ce8314437 Fixing comment. 2019-06-23 21:23:28 -04:00
Evelyn Eastmond
cbb99e2ee6 Comment clarifying mistake in LEGO docs. 2019-06-23 21:23:28 -04:00
Evelyn Eastmond
ca408dfb04 Trying to figure out the input_device_list args. 2019-06-23 21:23:28 -04:00
Evelyn Eastmond
abe5fa62e4 Remove stale comment. 2019-06-23 21:23:28 -04:00
Evelyn Eastmond
728e5e2d12 Renaming LONG_RAMP to RAMP and adding comment. 2019-06-23 21:23:28 -04:00
Evelyn Eastmond
f45539280a Trying some different enum values and reorganizing the enums at top of file. 2019-06-23 21:23:28 -04:00
Evelyn Eastmond
fe43ecfa73 Renaming byte allocation enum values. 2019-06-23 21:23:28 -04:00
Evelyn Eastmond
1e124657e5 Fix comments and formatting. 2019-06-23 21:23:27 -04:00
Evelyn Eastmond
ca28b4ff1b Fix device type return parsing to be clearer when it tries to avoid null values and convert them to 'none'. 2019-06-23 21:23:27 -04:00
Evelyn Eastmond
20b0d4da78 Remove some stale comments and add reminder to rename some byte value enums. 2019-06-23 21:23:27 -04:00
Evelyn Eastmond
f3d50dbe5a Add global var index 0 value to enum. 2019-06-23 21:23:27 -04:00
Evelyn Eastmond
63d9b0249a Removed a TODO and clarified with a better comment. 2019-06-23 21:23:27 -04:00
Evelyn Eastmond
5314be8310 More byte value updates, and change global index comments. 2019-06-23 21:23:27 -04:00
Evelyn Eastmond
50c80a8abc Adding comment to explain byte value enum values. 2019-06-23 21:23:27 -04:00
Evelyn Eastmond
14e8a93ac6 Add global var 1-byte-to-follow to enum. 2019-06-23 21:23:27 -04:00
Evelyn Eastmond
f8d9f687ec Move Ev3 byte values into their own enum, separate from parameter values. 2019-06-23 21:23:27 -04:00
Evelyn Eastmond
c237f1326d Clean up some null checks. 2019-06-23 21:23:27 -04:00
Evelyn Eastmond
6b9c3d12ef Shorten a comment. 2019-06-23 21:23:27 -04:00
Evelyn Eastmond
b476169f84 Change variable name to be shorter / more legible. 2019-06-23 21:23:27 -04:00
Evelyn Eastmond
6284cbdd85 Removing todo, decided not to rename. 2019-06-23 21:23:27 -04:00
Evelyn Eastmond
6c706b410f Removing label. 2019-06-23 21:23:27 -04:00
Evelyn Eastmond
3712b6fe72 Fixing GDX_FOR disconnect to new ble variable, fixing an error from a recent merge. 2019-06-23 18:42:32 -04:00