Kevin Andersen
55ccc4e77a
Implemented pingDevice() which, like the WeDo 2.0 extension, tries to read from the Boost Hub at a given interval. If it doesn't hear back from the hub, it assumes the device has been disconnected.
2019-03-13 14:35:53 -04:00
Kevin Andersen
873b56c985
- Motor-power functionality changed!
...
-- Using a max-power setting of 100 rather than following the speed in the motor-commands will allow motors to run at really slow speeds.
-- As a result, motor-commands now use max-power of 100 regardless of speed and setMotorPower no longer scales according to a minimum speed of 20.
- BLE-rate enums consolidated into BoostBLE enum
2019-03-12 17:35:43 -04:00
Michael "Z" Goddard
f4e49563d6
start loading sb3 assets before handling sb3 data
2019-03-12 17:16:13 -04:00
Michael "Z" Goddard
82d19bac4d
Merge pull request #1956 from mzgoddard/lazy-eval-big-dependencies
...
Lazy eval big dependencies
2019-03-12 17:11:26 -04:00
Michael "Z" Goddard
1862e5bb27
test that scripts block cache is reset
2019-03-12 17:09:59 -04:00
Michael "Z" Goddard
96f3e3414e
add BlocksRuntimeCache; rewrite startHats
2019-03-12 17:09:59 -04:00
Eric Rosenbaum
bed0b05bc9
Log error instead of returning null
2019-03-12 14:29:39 -04:00
Katie Broida
92c1711937
add clampEffect for limiting range of brightness and ghost effects
2019-03-12 11:14:11 -04:00
Eric Rosenbaum
a968dadb7a
Use opcode function in test
2019-03-12 10:54:30 -04:00
Joke Book
4b3234c9d8
Resolve linting issues
2019-03-11 23:51:27 +00:00
Joke Book
0abccdc5d7
Add some unit tests
2019-03-11 23:36:59 +00:00
Joke Book
7e2012c805
Switch algorithm to map most things to +1
2019-03-11 22:01:11 +00:00
Joke Book
7e23168913
Remove and fix comments
2019-03-11 21:59:03 +00:00
Paul Kaplan
2b53b8b647
Allow for situation where we get a move event to attach a shadow.
...
This happens after adding a custom procedure input to an existing custom procedure call block.
2019-03-11 14:52:40 -04:00
unknown
80196093a4
Changing disconnect connection check to websocket open status instead of peripheral connection.
2019-03-11 11:59:33 -04:00
Joke Book
43faf2a64d
Use a utility function for random number picking
2019-03-09 14:30:17 +00:00
Katie Broida
19a4329c8b
Merge pull request #2038 from ktbee/cast-sprite-names-to-string
...
Cast sprite name to string before getSpriteTargetByName
2019-03-08 11:52:23 -05:00
Eric Rosenbaum
580e93d15a
fix norwegian id
2019-03-07 17:00:48 -05:00
Eric Rosenbaum
9455112d74
improve variable name
2019-03-07 17:00:40 -05:00
Eric Rosenbaum
423622daaa
Add unit tests
2019-03-07 16:33:20 -05:00
Katie Broida
c37745e97e
Cast sprite name to string before getSpriteTargetByName
2019-03-07 16:09:46 -05:00
unknown
c603e0d653
Fixing linting errors.
2019-03-07 08:38:52 -05:00
unknown
0a9f629fb4
Comment out console logs.
2019-03-07 08:26:38 -05:00
unknown
43fde03f57
Fixing the comment yet again.
2019-03-06 13:17:06 -05:00
unknown
f1fc54bfaf
Fixing comment based on cwf suggestion.
2019-03-06 13:13:57 -05:00
unknown
2148e9ead1
Adding stopAll binding back in after un-rebased merge.
2019-03-06 13:08:55 -05:00
unknown
54ed67ac22
Adding TaskQueue import back in after un-rebased merge.
2019-03-06 12:57:32 -05:00
unknown
7a14dad668
Removing console logs that came in accidentally via un-rebased merge.
2019-03-06 12:55:04 -05:00
unknown
fed43e1841
Removing busy flag again which was reintroduced via a un-rebased merge.
2019-03-06 12:53:17 -05:00
unknown
47139426f2
Putting package-lock back.
2019-03-06 12:51:01 -05:00
unknown
30d7b34e06
Removing package-lock.
2019-03-06 12:48:14 -05:00
unknown
b31a1f0e98
Move argument processing outside of TaskQueue.do calls.
2019-03-06 12:47:44 -05:00
Evelyn Eastmond
f5dc90f729
Fixing comment again.
2019-03-06 12:47:44 -05:00
Evelyn Eastmond
d2c14f872c
Fixing comment.
2019-03-06 12:47:44 -05:00
Evelyn Eastmond
00d1a407ac
Fixing some comments.
2019-03-06 12:47:44 -05:00
Evelyn Eastmond
3c77f82238
Changing maxTokens and refillRate for microbit test.
2019-03-06 12:47:44 -05:00
Evelyn Eastmond
fb36731ce4
Add catches for task queue Promise rejections, and some debug console logs.
2019-03-06 12:47:44 -05:00
Evelyn Eastmond
eecd508464
Fix usage of task queue with an opcode that has its own promise/time delay resolution (i.e. displayText in microbit).
2019-03-06 12:46:56 -05:00
Evelyn Eastmond
dbb884ddef
Removing task queue constructor hacks.
2019-03-06 12:46:08 -05:00
Evelyn Eastmond
6688106852
Continuing to test the newest TaskQueue with microbit.
2019-03-06 12:44:22 -05:00
Eric Rosenbaum
59586291d7
Comments
2019-03-06 12:03:54 -05:00
Eric Rosenbaum
ee0d395b9c
Cleanup check supported and get extension locale
2019-03-06 12:03:46 -05:00
Karishma Chadha
fa3771b320
Merge pull request #2037 from LLK/greenkeeper/scratch-parser-4.3.6
...
Update scratch-parser to the latest version 🚀
2019-03-06 11:59:14 -05:00
greenkeeper[bot]
6cf225c59d
chore(package): update lockfile package-lock.json
2019-03-06 16:28:50 +00:00
greenkeeper[bot]
d354d89f97
fix(package): update scratch-parser to version 4.3.6
2019-03-06 16:28:43 +00:00
Michael "Z" Goddard
882a83db9a
do not evaluate text-encoding until it is needed
...
text-encoding has about ~700KB of data that is great to skip decoding
for systems that have a browser provided TextDecoder.
2019-03-06 11:11:44 -05:00
Michael "Z" Goddard
bc5605cf80
lazy evaluate project loading related code
2019-03-06 11:11:44 -05:00
Michael "Z" Goddard
a5009b4c59
delay extension evaluation until that extension is installed
...
Reduce the amount of code that needs to evaluated before we can
starting the target project if there is one. It is key to note that the
music extension includes ~2MB of base64 encoded sound samples. This
skips evaluating those samples and decoding base64 into binary typed
arrays.
2019-03-06 11:11:44 -05:00
Michael "Z" Goddard
a791a1e64e
Merge pull request #1970 from mzgoddard/image-bitmap
...
Use Promise.all, createImageBitmap, and one canvas in `load-costume.js`
2019-03-06 11:05:49 -05:00
Michael "Z" Goddard
d717763cf5
Merge pull request #1981 from mzgoddard/bump-text-encoding
...
update text-encoding to latest version
2019-03-06 11:04:36 -05:00