Kevin Andersen
bfb61c0df4
- Removed unused IOs
...
- Renamed BoostOutputCommandFeedback to BoostPortFeedback and its values for brevity
- Removed buf2hex-function
- Removed BoostMotor._pendingPositionOrigin (unused)
- Removed Boost._led (unused)
- Simplified _onMessage-handling of BoostPortFeedback-messages
- motorOnForRotation() now returns a Promise.all rather than a single promise. This solves two bugs:
-- when running turn ABCD for 3 rotations without motors connected to CD, the block would finish yielding immediately.
-- when running turn C for X rotations without a motor connected to C, the motor would never finish yielding.
2019-03-20 13:50:24 -04:00
Evelyn Eastmond
35d255319b
Merge pull request #2055 from evhan55/extensions/disconnect-fixes
...
Fix hardware extension disconnect behavior
2019-03-20 11:01:36 -04:00
Eric Rosenbaum
6951151fd5
Merge pull request #2056 from ericrosenbaum/bugfix/text2speech-name-localization
...
Localize name of Text to Speech extension
2019-03-20 10:28:57 -04:00
Kevin Andersen
5f6c8b1efd
Reworked motor-system to allow the setMotorPower- and setMotorDirection-blocks to modify the motor behavior if the motor is already running.
...
- BoostMotor-class now has pendingPositionDestination, the rotation-equivalent of pendingTimeout, that stores a destination the motor should reach. When using setMotorPower() or setMotorDirection() while a motorOnForRotation()-block is running, a new motorOnForRotation()-command will be run for the remaining amount of degrees but with new power/direction, cancelling the old command.
- BoostMotor._status is only affected by feedback from the hub.
- setMotorPower() and setMotorDirection() no longer yields, since they just set state.
From design meeting regarding block design:
- Renamed all motors-label to ABCD.
- Added 'AB' motor label to address built-in motor pair.
- use the word direction in the setMotorDirection-block
- moved argument label in motor position reporter
- changed wording of color-sensing block.
- removed isTilted-boolean reporter
- removed changeLightHueBy-block
- fixed pingDevice-function bug.
2019-03-19 18:34:12 -04:00
Michael "Z" Goddard
f6616eb2b8
Merge pull request #2009 from mzgoddard/sb3-load-assets-first
...
Deserialize sb3 assets before loading data
2019-03-19 17:24:58 -04:00
Eric Rosenbaum
55257c0bf7
Localize name of Text to Speech extension
2019-03-19 12:24:51 -04:00
Karishma Chadha
50362a2f2f
Merge pull request #2052 from LLK/greenkeeper/scratch-parser-5.0.0
...
Update scratch-parser to the latest version 🚀
2019-03-19 11:35:34 -04:00
Evelyn Eastmond
65b05a9da4
Fixing disconnect to handle different cases differently.
2019-03-19 10:44:33 -04:00
greenkeeper[bot]
a3d684186c
chore(package): update lockfile package-lock.json
2019-03-18 21:07:05 +00:00
greenkeeper[bot]
43ddb7ce81
fix(package): update scratch-parser to version 5.0.0
2019-03-18 21:07:01 +00:00
Eric Rosenbaum
151789cbad
Merge pull request #2050 from LLK/greenkeeper/@vernier/godirect-1.5.0
...
Greenkeeper/@vernier/godirect 1.5.0
2019-03-18 13:28:28 -04:00
Eric Rosenbaum
24fe00145d
Merge pull request #2049 from LLK/revert-2024-extensions/microbit-rate-limiting
...
Revert "Rate limiting for micro:bit using TaskQueue"
2019-03-18 11:14:50 -04:00
Eric Rosenbaum
68e7f24bb9
Revert "Rate limiting for micro:bit using TaskQueue"
2019-03-18 10:16:50 -04:00
greenkeeper[bot]
92fa8a0835
chore(package): update lockfile package-lock.json
2019-03-15 06:12:38 +00:00
greenkeeper[bot]
e1fe21cd2a
fix(package): update @vernier/godirect to version 1.5.0
...
Closes #1961
2019-03-15 06:12:34 +00:00
Eric Rosenbaum
7f69e0ce3f
Merge pull request #2046 from ericrosenbaum/feature/tts-add-single-language-voices2
...
Add eight new languages to Text to Speech extension
2019-03-14 16:42:07 -04:00
Evelyn Eastmond
94ca11f721
Merge pull request #2024 from evhan55/extensions/microbit-rate-limiting
...
Rate limiting for micro:bit using TaskQueue
2019-03-13 22:02:26 -04:00
Evelyn Eastmond
7d7193cb29
Merge pull request #2043 from evhan55/bug/extensions-device-scan
...
Device scan discovery fix
2019-03-13 19:39:07 -04:00
Paul Kaplan
8d4be4eec5
Merge pull request #2045 from paulkaplan/fix-adding-custom-input
...
Allow for situation where we get a move event to attach a shadow.
2019-03-13 17:04:15 -04:00
picklesrus
7807dcecb4
Merge pull request #2042 from ktbee/clamp-graphics-effect
...
add clampEffect for limiting range of brightness and ghost effects
2019-03-13 15:23:18 -04:00
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