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
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
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
Eric Rosenbaum
8fc3111b21
use id for default language
2019-03-06 10:51:08 -05:00
Eric Rosenbaum
65d0a3aa11
cleanup
2019-03-06 10:37:36 -05:00
Eric Rosenbaum
d059f8baa6
Check and set language, handling many-to-one mapping
2019-03-06 10:37:36 -05:00
Eric Rosenbaum
ab633d3448
WIP updating to use new language info data
2019-03-06 10:37:36 -05:00
Eric Rosenbaum
bc9e215ee8
Fill in language info data
2019-03-06 10:37:36 -05:00
Eric Rosenbaum
04c6bc189a
Add language ids
2019-03-06 10:37:36 -05:00
Eric Rosenbaum
da212bcf06
wip switching from using locales to language IDs internally
2019-03-06 10:37:36 -05:00
Eric Rosenbaum
920096d061
Add romanian and fix ordering
2019-03-06 10:37:36 -05:00
Eric Rosenbaum
3996cc0c6b
Add Welsh, Swedish and Turkish
2019-03-06 10:37:36 -05:00
Eric Rosenbaum
f33e07132e
Add hindi, korean, norwegian, and adjust rates
2019-03-06 10:37:36 -05:00
Eric Rosenbaum
5b5c0d80eb
Set tenor playback rate for single gender languages
2019-03-06 10:37:36 -05:00
Eric Rosenbaum
0d12cead31
key language info by locale id, and add chinese
2019-03-06 10:37:36 -05:00
Kevin Andersen
a4e005cf2b
Merge branch 'develop' of https://github.com/LLK/scratch-vm into boostextension
2019-03-04 18:11:26 -05:00
Kevin Andersen
6cf00a4235
Linted
2019-03-04 17:39:02 -05:00
Kevin Andersen
852ae43348
This commit is a combination of changes after an internal play test with the Scratch Team, as well as code cleanup.
...
Motors:
- motor position will now initially report 0 instead of false
- removed remaining motor position zeroing functions.
- removed startBraking().
- turnOn() and turnOnForDegrees() are now using an absolute max power as per the protocol documentation.
- the "turn for rotations"-block now accepts negative values.
-- turnOnForDegrees() accepts a direction to reflect the change above. The direction from the block is calculated against the motors current direction.
- commented EV3 tacho calculation code for motor positioning removed.
- Changed BoostMotorLabel to reflect actual motor block argument.
- startMotorPower() renamed to setMotorPower() since it doesn't start the motor.
- setMotorPower() will not start the motor.
- Max number of rotations for a motor-block is clamped to 100 rotations.
- 'Default' removed from BoostMotorLabel-enum as it wasn't used.
Sensors:
- removed remaining distance-related functions.
- color-reporters default value is now none rather than black.
- tilt-angles left and right switched to reflect the hubs orientation.
2019-03-04 12:38:02 -05:00
Kevin Andersen
669ff1abf1
- Boost-icon added to blocks
...
- Added BoostColorLabel-enum for color sensing block argument labels
- Regrouped blocks to be grouped by functionality, promoting color sensing
- Added 'any' to whenColor hat-block which triggers if the color sensor reports a value that is not none. Implemented an oldColor-value that allows the hat-block to trigger between color-changes, even if the sensor doesnt see 'none' in the meantime.
2019-03-01 11:36:57 -05:00
Evelyn Eastmond
59ab3b717d
Fixing clearInterval > clearTimeout.
2019-03-01 10:04:56 -05:00
Evelyn Eastmond
7a1367d81a
Change from setInterval to setTimeout for auto disconnect feature.
2019-03-01 10:02:30 -05:00
Kevin Andersen
ed051cdd82
Changed color-sensing values to be strings instead of LEGO numbering, which seems more intuitive.
2019-02-27 15:49:24 -05:00
Kevin Andersen
d2d236d282
After discussion with @ericrosenbaum, decided to change the following:
...
- Regroup blocks by functionality, i.e. motors, led, color-sensing, etc.
- Remove motor position zero-ing as concept and use MathUtil.wrapClamp to instead wrap everything around 360 degrees.
- WIP: "Set motor power to"-block should update motors that are currently running to emphasize principle that blocks have actions.
2019-02-27 15:19:40 -05:00
Kevin Andersen
7fc705b741
- Consolidated BLE enums for brevity
...
- Added IOs from documentation to BoostIO enumotor follows the speed set by Scratch and not the highest possible speed.
- Cleaned up line breaks in codebrake rather than float when stopping.
- Cleaned up documentationensors
- Deleted unused MOTOR_OUTPUT from BoostMode-enumbased on BoostMode-enum
- Set default-value for "set motor power to"-block to be all motors after feedback from @ericrosenbaum
- Implemented check in getMotorPosition() to see if motor is actually there before reporting position
2019-02-26 14:44:13 -05:00
Kevin Andersen
40c022ca8e
- Refactoring of output commands:
...
- Simplified generateOutputCommand() to follow the LEGO Wireless Protocol command-structure. Every output-command must have a portID, execution information, sub-command, and then followed by a custom payload which must be defined according to the protocol documentation mentioned in the extension.
- Simple motor commands now use the above subcommand-structure rather than the former primitive command structure.
- stopLED()-function removed since it's not used
- Implemented check of pendingPromiseFunction() for motors before firing.
2019-02-22 12:50:19 -05:00
Kevin Andersen
9767d72188
- Cleaned up TODOs!
...
- Added and made use of more enums rather than hardcoded bytes
2019-02-21 14:47:30 -05:00
Kevin Andersen
1d72b3b971
- Removed unused distance-mode from BoostMode-enum
...
- Added descriptions to BoostMode-enums
- Improved motor-position handling
- Added helper-functions for converting to/from motor position values
- Added default value to BoostMotor._pendingPromiseFunction
- Added changeLedColorBy-block
- Only motors will now try to resolve motor-promises
- Changed motor position wording from 'zero' to 'reset'
- Modified tilt-thresholds to improve tilt-handling
2019-02-21 13:35:21 -05:00
Eric Rosenbaum
c0e80edfcc
Update block and menu icons
2019-02-20 11:13:00 -05:00
Eric Rosenbaum
931d7e9a62
More re-ordering
2019-02-20 11:00:21 -05:00
Eric Rosenbaum
9e650279a6
Re-order blocks
2019-02-20 10:59:07 -05:00
Eric Rosenbaum
7da54dd067
Add tilted any option
2019-02-20 10:49:03 -05:00
Eric Rosenbaum
a19585af75
Add tilt blocks
2019-02-19 16:09:58 -05:00
Eric Rosenbaum
ba548701e2
Set update rate to 80ms
2019-02-19 15:14:37 -05:00
Eric Rosenbaum
f4662f833f
rename “tilt angle” and “spin speed” reporters
2019-02-19 15:06:03 -05:00
Eric Rosenbaum
ec2ca32ffa
Remove “moved” gesture
2019-02-19 13:55:24 -05:00
Kevin Andersen
e99a217ba5
Merge branch 'develop' of https://github.com/LLK/scratch-vm into boostextension
2019-02-14 13:31:13 -05:00
Kevin Andersen
32a9674b5d
Added disconnect-handling per new extensions-spec. Motor-commands that fail will now also cause their blocks to complete
2019-02-14 13:30:58 -05:00
unknown
ac571ece5a
Fixing comment.
2019-02-13 14:14:05 -05:00
Evelyn Eastmond
8bbdc4e691
Resolves #1988 : Vernier gdxfor tilt values should be 0 when disconnected.
2019-02-13 14:14:05 -05:00
Chris Willis-Ford
7ab41d2bd9
Merge pull request #1881 from apple502j/pen-legacy
...
Fix legacy `set pen color` block's transparency behavior
2019-02-13 10:51:47 -08:00
Kevin Andersen
245ba998d2
merge changes from origin/develop
2019-02-12 13:18:28 -05:00
Kevin Andersen
e2bd28b85e
Cleaned up documentation (WIP). Added Output subcommand enum for use throughout extension
2019-02-12 10:10:21 -05:00
Kevin Andersen
c902bbaa0d
Cleaned up some documentation. Consolidated and renamed Boost enums
2019-02-11 11:30:22 -05:00
Kevin Andersen
bf02426a4a
added named variables to onMessage for readability. Changed wording of motor-blocks. Added BLE Advertisement Manufacturer Data as filter for scanning, for https://github.com/LLK/scratch-link/issues/112
2019-02-11 10:57:57 -05:00
Chris Willis-Ford
51252531af
Update src/extensions/scratch3_pen/index.js
...
Co-Authored-By: apple502j <33279053+apple502j@users.noreply.github.com>
2019-02-08 20:03:54 +09:00
Chris Willis-Ford
2d575a9208
Update src/extensions/scratch3_pen/index.js
...
Co-Authored-By: apple502j <33279053+apple502j@users.noreply.github.com>
2019-02-08 20:03:48 +09:00
Evelyn Eastmond
b5eb54fc44
Resolves 1975: Vernier gdxfor extension should disconnect on sensor timeout.
2019-02-07 16:18:56 -05:00
Evelyn Eastmond
16ebcb82b2
Merge pull request #1986 from evhan55/bug/gdxfor-falling
...
Vernier gdxfor "falling?" report false when not connected
2019-02-07 15:54:46 -05:00
Evelyn Eastmond
7e7326f474
Merge pull request #1984 from evhan55/extensions/gdxfor-update-rate
...
Vernier gdxfor input rate change
2019-02-07 15:24:11 -05:00
Evelyn Eastmond
a68886cee9
Resolves #1977 : Vernier gdxfor extension falling? reports true while hardware disconnected.
2019-02-07 14:51:59 -05:00
Eric Rosenbaum
9dd8e9398a
Merge pull request #1982 from VernierST/extensions/gdx-for-freefall-and-tilt
...
GDX-FOR better freefall algorithm and different tilt options
2019-02-07 11:59:50 -05:00
Evelyn Eastmond
104e997b59
Changing the input rate, resolves 1976.
2019-02-07 10:48:48 -05:00
Ian Honohan
7b3996a173
Add localization to the front/back/left/right menu items
2019-02-06 12:51:32 -08:00
Ian Honohan
7cbf4e2a60
Changes the tilt options from x/y to front/back and left/right. Also limits the tilt range to +/-90, just like micro::bit
2019-02-06 10:52:18 -08:00
Eric Rosenbaum
3ae6c93394
Change l10n id so translations will update
2019-02-06 10:40:06 -05:00
Eric Rosenbaum
48e01fe1a3
Rename “spin speed” to “spin”
2019-02-05 17:22:17 -05:00
Eric Rosenbaum
78c72f4185
Add spacers
2019-02-05 17:22:06 -05:00
Ian Honohan
5a2eb3b296
Accounts for any rotation in the GDX-FOR while trying to detect freefall
2019-02-05 12:12:17 -08:00
Evelyn Eastmond
39f69bd8c1
Separate out _spinSpeedFromGyro function.
2019-02-04 21:56:20 -05:00
Evelyn Eastmond
8da82cfe01
Adding JSDoc and removing extension manager gdx uncommenting.
2019-02-04 21:45:23 -05:00
Evelyn Eastmond
da3fc930b1
Factoring out a _onSensorValueChanged function.
2019-02-04 21:41:57 -05:00
Evelyn Eastmond
e87dd01629
Add clearing of values on disconnect.
2019-02-04 19:43:50 -05:00
Evelyn Eastmond
93aecc88be
Filling in some comments.
2019-02-04 19:41:07 -05:00
Evelyn Eastmond
9390cd0f8a
Fixing 'gyro' labels to 'spin speed'.
2019-02-04 19:41:07 -05:00
Evelyn Eastmond
d84dd72a8c
Removing canReadSensors and sensorsEnabled, first pass.
2019-02-04 19:41:07 -05:00
Evelyn Eastmond
eb4f6235d9
Testing new sensor array to store sensor data on/offline.
2019-02-04 19:41:07 -05:00
Kevin Andersen
5822f762ca
Multiple motor-changes. Changed _isOn to _status to reflect the more advanced states a motor (or port) can be in. Implemented promise-based completion on motor-on-for-rotation-block, since this block requires a callback from the hub. Changed lower threshold for power-bias function. Deleted some outdated todos. Changed connectID-terminology to portID. Implemented handling port output command feedback. Commented out some distance and tilt-related blocks that I think we can do without and that will lower the number of blocks.
2019-02-04 16:30:04 -05:00
Kevin Andersen
c03dc60feb
Deleted BoostUnit, since the new protocol has prescribed units for a particular mode. Implemented helper-function for turning javascript numbers into a bytearray. Changed generateInputCommand()-function delta-parameter to be int32 according to the new protocol. Fixed issue that whenColor hat-block didn't work until dropdown value changed.
2019-02-01 10:19:59 -05:00
Eric Rosenbaum
12283daaa4
Merge pull request #1958 from ericrosenbaum/feature/vernier-updates
...
Update, re-order and clean up Vernier Force & Accel extension blocks
2019-01-30 16:49:46 -05:00
Eric Rosenbaum
3bdb13f049
Rename and re-order freefall threshold constant
2019-01-29 17:12:15 -05:00
Eric Rosenbaum
6cbc71f8d1
Add facing threshold
2019-01-29 17:09:11 -05:00
Eric Rosenbaum
4449ee7f0f
Only round sensor vals in opcodes
2019-01-28 17:45:16 -05:00
Eric Rosenbaum
c033732d62
Use enums and constants in isFacing
2019-01-28 17:15:37 -05:00
Eric Rosenbaum
f795197047
Enum and localization for facing up/down
2019-01-28 17:12:25 -05:00
Eric Rosenbaum
b5fb80190d
Factor out and scale spin speed
2019-01-28 17:06:14 -05:00
Eric Rosenbaum
1abbf55f55
Re-order and update blocks
2019-01-28 14:05:39 -05:00
Eric Rosenbaum
c542b2384f
Merge pull request #1938 from ericrosenbaum/bugfix/text2speech-default-input-localization
...
Fix Text to Speech extension default input localization
2019-01-28 10:40:58 -05:00
Eric Rosenbaum
92d2a1673a
Updating blocks
2019-01-24 17:01:46 -05:00
Kevin Andersen
2aaf424279
stuff
2019-01-24 10:08:17 +01:00
Eric Rosenbaum
09daeb53a1
Don’t use a variable in formatMessage
2019-01-23 17:56:38 -05:00
Eric Rosenbaum
9e00c06ddf
Localize the makey makey blocks
2019-01-23 14:05:00 -05:00
Kevin Andersen
ffb5cd63af
added zero-block for motor positioning. Added turn-for-rotation-block, but its WIP. Modified generateOutputCommand to allow for advanced motor commands. Changed motor position reporter to follow hardware instead of wrap-clamping.
2019-01-23 09:10:03 +01:00
Kevin Andersen
7cee07db83
Changed default motor to A instead of all. Added TODOs and DEBUG code comments. Changed output-commands to use proper enums
2019-01-21 08:01:10 +01:00
Eric Rosenbaum
9d4442444f
Merge pull request #1914 from bocoup/sensor-error
...
Prevent console errors when disconnecting/reconnect to Vernier extension
2019-01-18 17:09:38 -05:00
Eric Rosenbaum
0b251adace
Merge pull request #1763 from evhan55/extensions/disconnect-errors
...
Various fixes to extension disconnect errors
2019-01-18 16:58:45 -05:00
Evelyn Eastmond
6e290ea937
Calling microbit timeout error in an arrow function.
2019-01-16 16:23:06 -05:00
Evelyn Eastmond
5c885911e7
Replacing a timeout clear.
2019-01-16 16:06:44 -05:00
Evelyn Eastmond
28a54d6e83
Adding back in the disconnect branch to be fixed later in another PR.
2019-01-16 16:05:13 -05:00
Evelyn Eastmond
7ec9494804
Making corrections based on discussion with ericr.
2019-01-16 15:54:38 -05:00
Evelyn Eastmond
bd8f129022
Adding a TODO for an optional read param.
2019-01-16 15:22:58 -05:00
Evelyn Eastmond
e4b82aeaef
Adding callback back to battery read to fix clearing the characteristicChanged callback by accident.
2019-01-16 15:22:58 -05:00
Evelyn Eastmond
d7b6cfae97
Move micro:bit data stopped error string to constant. Added another jsdoc.
2019-01-16 15:22:58 -05:00
Evelyn Eastmond
f030afbdc5
Removing extra params from a BLE read in WeDo2.
2019-01-16 15:22:58 -05:00
Evelyn Eastmond
7518a9c149
Changing error to be more accurate.
2019-01-16 15:22:58 -05:00
Evelyn Eastmond
2d9531a15c
Removing console logs.
2019-01-16 15:22:58 -05:00
Evelyn Eastmond
fdda1e53e3
Change microbit extension to send BLE socket error on data lost, instead of calling disconnect directly.
2019-01-16 15:22:58 -05:00
Evelyn Eastmond
fab292889f
Adding disconnect callback to BT/BLE error system.
2019-01-16 15:22:58 -05:00
Evelyn Eastmond
a177b4eeb7
Adding interval to check for battery level.
2019-01-16 15:22:58 -05:00
Evelyn Eastmond
a6c05d8f61
Removing withResponse flag since it is not needed and was causing a crash on Windows.
2019-01-15 11:43:08 -05:00
Eric Rosenbaum
b57b6c0a84
Merge pull request #1916 from ericrosenbaum/bugfix/vernier-dont-keep-data
...
Prevent excess event emitting in Vernier extension
2019-01-15 11:07:35 -05:00
Eric Rosenbaum
e414e1b246
Add todo comment about keepValues flag
2019-01-15 10:46:22 -05:00
Eric Rosenbaum
2856b32dd5
Merge branch 'develop' into sensor-error
2019-01-15 10:38:51 -05:00
Eric Rosenbaum
8b2f326469
Merge pull request #1920 from evhan55/extensions/vernier-peripheral-list
...
Properly disconnect BLE socket in GDX-FOR scan/disconnect
2019-01-15 10:31:48 -05:00
Evelyn Eastmond
308bb7095a
Properly disconnect BLE socket.
2019-01-14 20:17:18 -05:00
Eric Rosenbaum
8f0e025261
Use flag to not keep data, and remove listener hack
2019-01-14 14:01:43 -05:00
Kevin Andersen
0557fc8e09
Motor position reporter kinda working. LED commands working. Added mode information to generateOutputCommand-function. Removed value-format switch-case in favor of hard-coded value-interpretation, but put in a TODO that we perhaps should consider doing it in the future.
2019-01-13 21:10:20 +01:00
Valerie Young
daccdb0a71
Satisfy linter
2019-01-11 16:53:47 -05:00
Valerie Young
f2f4af2590
Don't send disconnect to a closed device
2019-01-11 16:47:42 -05:00
Valerie Young
328e4480f6
Prevent reading non-existing sensors
2019-01-11 16:43:08 -05:00
Eric Rosenbaum
730ec44e5d
Update block icon
2019-01-11 12:07:16 -05:00
Valerie Young
9e612acb27
Forgotten parens
2019-01-11 11:00:08 -05:00
Valerie Young
92297444a0
Is jumped should call is freefalling
2019-01-10 15:39:46 -05:00
Valerie Young
f669b4bcb7
satisfy linter
2019-01-10 12:19:00 -05:00
Valerie Young
7a1b6d4f60
Remove normal force from acceleration magnitude
2019-01-10 12:19:00 -05:00
Valerie Young
92e1f040c3
Add when jumped and is free falling
2019-01-10 12:19:00 -05:00
Valerie Young
a62f5b9b0e
Add facing blocks
2019-01-10 12:19:00 -05:00
Valerie Young
ac29927c22
other minor feedback
2019-01-10 10:21:32 -05:00
Valerie Young
477c307304
Remove one copy of constants
2019-01-10 10:11:46 -05:00
Valerie Young
5d4aebf301
Satisfy linter
2019-01-09 18:02:36 -05:00
Valerie Young
ae889304c5
satisfy linter
2019-01-09 17:51:56 -05:00
Valerie Young
d2fec35fd8
Set the period to 10 milliseconds
2019-01-09 17:50:25 -05:00
Valerie Young
338b30a17b
Increase speed of sample
2019-01-09 17:09:08 -05:00
Valerie Young
abf84975bd
Add tilt blocks
2019-01-09 17:08:01 -05:00
Valerie Young
d3e5c7d928
Remove directions option from hats and use magnitude
2019-01-09 13:55:35 -05:00
Kevin Andersen
af800956fe
Initial commit. WIP
2019-01-09 10:06:48 -05:00
Valerie Young
da608f6f18
degrees/s instead of radians, normalize force
2019-01-08 12:07:39 -05:00
Valerie Young
a0e1b5aa5b
Rename spin speed, make hat blocks work
2019-01-08 11:53:51 -05:00
Valerie Young
be35eb1f70
remove units
2019-01-08 11:15:55 -05:00
Valerie Young
b5decacee2
update name of variable
2019-01-07 18:20:45 -05:00
Valerie Young
5696b76d9a
fix typo
2019-01-07 18:17:20 -05:00
Valerie Young
4d75f7776c
Remove the onClose skeletons
2019-01-07 18:09:23 -05:00
Valerie Young
4529533aa8
Remove accidental double declarations
2019-01-07 17:45:20 -05:00
Valerie Young
9a3517d878
First draft communication with scratch link and vernier
2019-01-07 11:54:15 -05:00
Valerie Young
a0cccba3be
satisfy linter
2019-01-07 11:29:26 -05:00
Valerie Young
deab7dd209
Add @vernier/godirect module
2019-01-07 11:29:26 -05:00
Valerie Young
1471248657
Clean up and all sensors working
2019-01-07 11:29:26 -05:00
Valerie Young
d70fb96d01
Force working with vernier node module
2019-01-07 11:29:26 -05:00
Valerie Young
a0bf69f17c
Change extension name
2019-01-07 11:29:26 -05:00
Valerie Young
c305379393
format menu
2019-01-07 11:29:26 -05:00
Valerie Young
e4d9f9cdff
tilt to speed
2019-01-07 11:29:26 -05:00
Valerie R Young
e209ec3240
satisfy linter
2019-01-07 11:29:26 -05:00
Valerie R Young
1503b0add9
Add some names
2019-01-07 11:29:26 -05:00
Valerie R Young
26067a9287
Draft of goforce blocks
2019-01-07 11:29:26 -05:00
apple502j
7863731bb4
Change legacy pen color block's behavior
2018-12-29 09:49:31 +09:00
apple502j
a22d7dd6de
remove todo
2018-12-23 00:22:41 +09:00
apple502j
cbf70d9609
This kitten speaks only English
2018-12-22 17:59:57 +09:00
Eric Rosenbaum
724cdb5785
For order of key menu to match the core block
2018-12-17 18:24:14 -05:00
Eric Rosenbaum
3bfc422ce0
Replace all non-space chars with meow
2018-12-14 17:28:45 -05:00
Eric Rosenbaum
f86a23df98
Merge pull request #1790 from ericrosenbaum/midi-play-drum-v3
...
Add support for scratch 1.x MIDI drum blocks
2018-12-13 13:39:29 -05:00
Eric Rosenbaum
fdbb0b26a8
Remove “space space space”, add CCW sequence
2018-12-09 23:16:32 -05:00
Eric Rosenbaum
a785b86949
Clear key press buffer on stop button
2018-12-09 23:13:55 -05:00
Katie Broida
9d3d53537d
Merge pull request #1741 from ktbee/load-video-state
...
Set video state after project load and after adding extension through UI
2018-12-05 14:33:19 -05:00
Eric Rosenbaum
1ce88ca8bc
Merge pull request #1819 from ericrosenbaum/bugfix/text2speech-encoding
...
Text to Speech use encodeURIComponent
2018-12-05 12:45:33 -05:00
Eric Rosenbaum
d46dd31bb0
Use encodeURIComponent
2018-12-05 12:35:17 -05:00
Katie Broida
ef8bbb7186
Set video state after project load event, adding extension for the first time
2018-12-05 11:08:00 -05:00
Paul Kaplan
6bd2307c99
Clear the pen layer when runtime dispose happens.
2018-12-04 16:43:31 -05:00
Eric Rosenbaum
7198ace595
Makey Makey extension ( #1782 )
...
* Initial working makey makey extension
* Cleanup and localization
* Add block icon
* Localization and cleanup
* Docs and cleanup
* Update block icon
* Cleanup
* Fix key press args
2018-11-29 10:45:40 -05:00
Eric Rosenbaum
f617723348
Add support for scratch 1.x MIDI drum blocks
2018-11-28 15:39:00 -05:00
Eric Rosenbaum
045ebb5026
Apply sprite's volume to music extension notes and drums ( #1735 )
...
* Use a gain node for volume instead of effects chain
* Use a gain node for volume for drums too
2018-11-26 11:46:25 -05:00
Evelyn Eastmond
53c165c2f6
Close Scratch Link web socket on every new peripheral scan attempt ( #1696 )
...
* Progress towards: #1671 : Close web socket before making a new one for hardware extensions.
* Always disconnect before scanning for new peripheral. Removing console logs.
* Removing unused test code.
2018-11-08 15:21:28 -05:00
Eric Rosenbaum
2cff4159bb
Use the new note picker field in music and EV3 extensions ( #1720 )
...
* Add note field type
* Note picker in music extension plays notes
* Use note picker in EV3 beep block
2018-11-07 11:50:15 -05:00
DD
91e2f3a935
Revert 1643 Confirm extension in use in sb2 serialization
2018-10-18 11:06:13 -04:00
Eric Rosenbaum
891f696570
Save and load the language setting for Text to Speech ( #1670 )
...
* Use scratch locales internally, with adapter for polly
* Save and load text2pseech language
* Only localize default input to “speak” if in a supported language
2018-10-17 17:34:12 -04:00
Katie Broida
899ce56214
Confirm extension in use in sb2 serialization ( #1643 )
...
Add a check when serializing sb2 projects to see whether an extension is actually in use in a block or a visible monitor.
2018-10-17 10:49:08 -04:00
apple502j
afd9549708
Remove "Don't translate Google"
2018-10-13 05:43:07 +09:00
Eric Rosenbaum
6ce061d55d
Text to Speech voices update ( #1655 )
...
* Change voice names to alto and tenor
* Adjust voice pitches
* Support dropped numbers for setting voice
2018-10-11 13:48:43 -04:00
Andrew Sliwinski
1dbf1894f6
Merge pull request #1652 from ericrosenbaum/feature/extension-icons
...
Add icons for Video Sensing, Translate and Text to Speech extensions
2018-10-10 16:42:57 -04:00
Eric Rosenbaum
cdbd7c9af2
Add text2speech icons
2018-10-10 14:09:34 -04:00
Eric Rosenbaum
9403449846
Add translate icons
2018-10-10 14:04:37 -04:00
Evelyn Eastmond
4534649367
Fixing locale string.
2018-10-10 11:49:07 -04:00
Evelyn Eastmond
d83bf20803
Fixing tilt direction menu locales.
2018-10-10 11:47:55 -04:00
Eric Rosenbaum
b5c5481de0
Add video sensing extension icons
2018-10-10 10:43:04 -04:00
Evelyn Eastmond
c9d4620f22
Fixing #1485 : WeDo2/micro:bit block menus need localization.
2018-10-05 11:08:20 -04:00
Evelyn Eastmond
0d7cc66ad5
Changing menu names to include extension label.
2018-10-05 11:08:20 -04:00
Evelyn Eastmond
d7440f882d
Fixing #1505 : WeDo2 motor power between 0-30ish doesn't power the motor.
2018-10-05 11:08:20 -04:00
Evelyn Eastmond
7a7134e23c
Fixing #1592 : WeDo2 and EV3 should not send motor command when motor power is 0.
2018-10-05 11:08:20 -04:00
picklesrus
12ddc89514
Merge pull request #1612 from picklesrus/translate-language-menu
...
Reset the supported language list in getInfo. This works because refr…
2018-10-01 17:20:50 -04:00
Michael "Z" Goddard
353ad16132
jsdoc @type tag does not permit a description
2018-09-27 12:00:00 -04:00
Evelyn Eastmond
4583cb821b
Merge pull request #1611 from evhan55/fixes/hardware-extensions
...
Hardware extensions bug fixes
2018-09-25 20:42:30 -04:00
Florrie
744b01174b
Add support for "midiInstrument:" block ( #1329 )
...
* Add midiInstrument: block
* Don't show midiInstrument block in palette
* Lint
* More lint
2018-09-25 17:33:09 -04:00
picklesrus
69132d17db
Fix lint spacing error.
2018-09-25 16:24:32 -04:00
picklesrus
3193a4c1b4
Spacing changes.
2018-09-25 16:03:21 -04:00
picklesrus
5966a54500
Reset the supported language list in getInfo. This works because refreshBlocks is called
...
when the language gets changed. Fixes #1365 .
2018-09-25 16:03:21 -04:00
Kreg Hanning
fa0af58c41
Make "display [Hello!] block yield until printing is done ( #1599 )
...
* Make "display [Hello!] block yield until printing is done
* Add 2 additional px to yield delay
* Add 3 more additional px for large chars
2018-09-25 14:56:29 -04:00
Evelyn Eastmond
a676970359
Merge pull request #1607 from evhan55/multiple-alerts
...
Show customized alerts on hardware extension peripheral errors.
2018-09-25 14:44:29 -04:00
Evelyn Eastmond
e6ea4d7f0c
Removed promise chains that seemed unnecessary.
2018-09-25 11:26:18 -04:00
Evelyn Eastmond
6bd79369e4
Changing EV3 and WeDo2 default and block motor power values after discussion.
2018-09-25 11:26:18 -04:00
Evelyn Eastmond
e9b0cc768e
Further fixes to 'button pressed?' on Microbit.
2018-09-25 11:26:18 -04:00
Evelyn Eastmond
4b2b82a224
Fixing #1364 : Microbit 'button pressed?' block should return true/false.
2018-09-25 11:26:18 -04:00
Evelyn Eastmond
cfe7e45d8b
Fixing #1538 : wedo2 'set motor direction' block sometimes stops the motor.
2018-09-25 11:26:18 -04:00
Evelyn Eastmond
eabd7a5153
Changing default WeDo2 power arg to 50.
2018-09-25 11:26:18 -04:00
Evelyn Eastmond
03d05403fa
Adding TODOs to _pollValues.
2018-09-25 11:26:18 -04:00
Evelyn Eastmond
3bdbbe3b8e
Fixing #1566 : Set default motor power for EV3 and WeDo2 to 50%.
2018-09-25 11:26:18 -04:00
Evelyn Eastmond
fe288902fa
Fixing #1567 : EV3 motor position reporter gets inverted.
2018-09-25 11:26:18 -04:00
Eric Rosenbaum
f467d2d01f
Change “monster” to “giant” and raise pitch ( #1606 )
2018-09-25 11:04:38 -04:00
Kreg Hanning
91d46bb92b
Remove the word "test" ( #1600 )
2018-09-25 10:49:45 -04:00
Kreg Hanning
b81ba599db
Trim whitespace in "display [♡]" input field ( #1598 )
2018-09-25 10:47:33 -04:00
picklesrus
b063226fd7
Merge pull request #1580 from picklesrus/speech-language
...
Send the language code of the project viewer to the server
2018-09-24 14:26:14 -07:00
Eric Rosenbaum
622aa0f2b0
Add “set language” block ( #1610 )
2018-09-24 17:16:10 -04:00
picklesrus
c9cc94b324
Send the language code of the project viewer to the server
2018-09-24 16:49:39 -04:00
Evelyn Eastmond
3c905503b7
Adding extension ids to customize error alerts for extensions.
2018-09-22 14:48:41 -04:00
Evelyn Eastmond
ad3328197e
Testing adding message/extensionId passing into specific, custom alerts.
2018-09-22 14:04:37 -04:00
Evelyn Eastmond
96327c66f3
Passing custom alert messages with PERIPHERAL_ERROR.
2018-09-22 14:04:37 -04:00
Ray Schamp
e2c6c7667b
Merge pull request #1604 from ericrosenbaum/feature/listening-indicator
...
Add event to show and hide a mic indicator for Speech to Text
2018-09-21 09:24:59 -04:00
Eric Rosenbaum
f5edcfa3bb
Update event name to MIC_LISTENING
2018-09-20 12:06:31 -04:00
Eric Rosenbaum
396d69743d
request indicator update in resetListening
2018-09-20 09:45:22 -04:00
Kreg Hanning
06f64c0527
Rename block "display [Hello!]" to "display text [Hello!]" ( #1597 )
2018-09-19 11:16:16 -04:00
Eric Rosenbaum
e44eff48e3
Add mic indicator update event for speech2text
2018-09-18 10:58:49 -04:00
Eric Rosenbaum
64a1d3e02b
fix ids and names for text2speech and speech2text extensions ( #1583 )
2018-09-13 15:44:18 -04:00
picklesrus
77284d8117
Remove sound indicators at the start/end of listen block. Visual rep… ( #1575 )
...
* Remove sound indicators at the start/end of listen block. Visual replacement coming soon.
* remove the sound files too.
* ... and the manifest too
2018-09-13 14:05:22 -04:00
Andrew Sliwinski
c00d70a470
Merge pull request #1573 from ericrosenbaum/feature/no-puppy
...
Bark bark woof ruff bark. Bark bark bark! (remove puppy voice)
2018-09-12 16:40:29 -04:00
Eric Rosenbaum
bdf27e20c5
Trim to 128 chars
2018-09-12 14:06:26 -04:00
Eric Rosenbaum
f58e9276e8
Cleanup
2018-09-12 13:49:29 -04:00
Eric Rosenbaum
6ac82f3183
bark bark woof ruff bark. bark bark bark!
2018-09-12 13:23:26 -04:00
Eric Rosenbaum
9df078b606
Remove branding from translate extension ( #1569 )
...
* Remove branding from translate extension
* Thoroughly remove block icon
2018-09-11 15:19:19 -04:00
Evelyn Eastmond
ec432e3b2f
Refactor for hardware extensions ( #1555 )
...
* Beginning refactor: renaming 'device' to 'peripheral', shortening function names, reordering functions, etc.
* Continuing refactoring: renaming some functions to be more verbose in the runtime, adding JSDocs, etc.
* Changing 'device' to 'peripheral', etc.
* Changing 'session' to 'socket'.
* Fixing EV3 menus and menu arg validation, reordering functions, etc.
* Add _send, add some references to documentation, etc.
* Factored out _outputCommand and _inputCommand, renamed some enums, etc.
* Fixed _outputCommand, some other minor cleanup.
* Make _outputCommand and _inputCommand public.
* Added TODO.
* Renamed BLE UUID enums to be clearer.
* Change WeDo2 in comments to WeDo 2.0, etc.
* Changed some WeDo2Motor command names, cleaned up some JSDocs.
* Beginning a major EV3 refactor.
* WeDo2 formatting and comment changes.
* Motor refactoring in EV3: motorTurnClockwise and motorTurnCounterClockwise initial working state.
* Add reminders to possibly cast motor menu args in WeDo2.
* Continue to move motor commands in EV3 to EV3Motor class, don't create new EV3Motor on every poll cycle, etc.
* Factoring EV3 polling value commands, etc.
* Fixing EV3 motor power, position and button pressed, and some commenting, etc.
* Move EV3 motor position parsing to EV3Motor class, move directCommand and directCompoundCommand functions, some commenting, etc.
* Changed WeDo2 motor label enum name.
* Removed some EV3 motor functions that aren't needed, changed menu label enum names, moved some opcodes up to enums.
* Fixing comments and documentation.
* Some commenting.
* Adding further documentation and references to PDFs, changed reply check to be safer, etc.
* Some comment changes.
* Moving some functions around in EV3 and WeDo2 to match.
* Commenting, etc.
* Some renaming of session, etc.
* Fix stopAllMotors in EV3.
* Fixing clearing of motors in EV3.
* Some comment changes.
* Change runtime .extensions/registerExtension to .peripheralExtensions/registerPeripheralExtension.
* Renaming outputCommand/inputCommand to generateOutputCommand/generateInputCommand, etc.
* Moved motorCommandIDs to EV3Motor class, renamed directCommand to generateCommand, etc.
* Adding a reminder to rename something.
* JSDoc fix in EV3Motor class.
* Fixing microbit function name.
* Adding a todo item.
* Changing Ev3 menu formats to be backwards compatible, moving a BLE function up.
* Fixing EV3 ports again, and button pressed returning a boolean.
* Fixing menu value to be a string in EV3.
2018-09-07 17:01:23 -04:00
Eric Rosenbaum
36711931b2
Make a constant for speech volume
2018-09-05 18:36:01 -04:00
Eric Rosenbaum
fe746a7c43
Use map of soundPlayers for stop all
2018-09-04 21:12:45 -04:00
Eric Rosenbaum
fb7c293e71
Set volume of speech using effect chain
2018-09-04 21:12:04 -04:00
Eric Rosenbaum
5dfa4cc691
Text2speech set gain to 2 (6db)
2018-08-31 10:47:36 -04:00
Eric Rosenbaum
39be6d873c
Rate-limiting with a token bucket for the WeDo extension ( #1540 )
...
* Initial version of token bucket
* Add rateLimiter util
* Remove check for motor.isOn in stopAllMotors
* Fix unit test
* Fix unit test with stubbed timer, and cleanup
* Add comment
* Reduce WeDo rate limit to 20 sends/sec
* Move rate limit into a constant
* Stop button stops motors and tone even if rate limit exceeded
2018-08-29 17:37:59 -04:00
picklesrus
b95b8d41ff
Fix #1395 by resetting the utterance we check for in the edge trigger hat on green flag ( #1476 )
2018-08-27 11:10:51 -04:00
picklesrus
b9a757ea08
Fix speech extension in Safari ( #1202 ) by calling getUserMedia for every listen and wait block rather than trying to reuse it. Also get rid of some code that was not actually doing anything. ( #1467 )
2018-08-27 11:05:51 -04:00
Evelyn Eastmond
5320dfb676
WeDo2 backwards compatibility update ( #1518 )
...
* Resolving #1492 : No longer trying to make WeDo2 backwards compatible with Scratch Link API v1.0.
* Closing the socket on all BLE/BT errors.
* Adding BT disconnection.
2018-08-22 17:45:26 -04:00
Eric Rosenbaum
d6831cf97d
Merge branch 'develop' into wedo2-fixes
2018-08-22 16:01:29 -04:00
Evelyn Eastmond
ab7f24bf9a
WeDo2 rate limiting ( #1509 )
...
* Starting work on #1456 : rate limiting.
* Fixing #1456 : rate limit send messages.
* Chaining a couple of send operation Promises.
* Fixing linting.
2018-08-22 15:53:17 -04:00
Evelyn Eastmond
1f7d9d3b67
Revert "Attempting to fix #1492 : WeDo2 use of should be backwards compatible."
...
This reverts commit ae28a0c1b86209c66dcdbe9b10e0df8c39be7e10.
2018-08-22 11:17:31 -04:00
Evelyn Eastmond
bfa4dfaac2
Attempting to fix #1492 : WeDo2 use of should be backwards compatible.
2018-08-22 11:17:31 -04:00
Evelyn Eastmond
f4e9212249
Fixing #1504 : WeDo2: Distance sensor not being cleared on device disconnect.
2018-08-22 11:17:31 -04:00
Evelyn Eastmond
3659973101
Fixing #1510 : WeDo2 stop button gives console error if device not connected.
2018-08-22 11:17:31 -04:00
Evelyn Eastmond
2121a3be80
Some small EV3 fixes ( #1494 )
...
* Fixing #1353 : Stop button should stop EV3 beep sound.
* Fixing #1358 : EV3 and Microbit: shouldn't send requests if not connected?.
* Fixing #1373 : EV3 motor does not brake at the end of a motor command.
2018-08-20 11:00:48 -04:00
Evelyn Eastmond
5395f9c321
WeDo2 changes for upcoming smoke test ( #1493 )
...
* Starting on #1491 : use 'startNotifications' instead of 'read'. Still need to make backwards compatible.
* Fixing #1489 : WeDo2 set light color block should wrap values to 0-100.
* Fixing #1488 : WeDo2 should not clear LED light on stop button.
* Fixing to support negative LED light color inputs.
* Removing a binding.
* Using wrapClamp for inputHue for LED color block.
2018-08-19 22:09:57 -04:00
Eric Rosenbaum
83b3eabf1d
Regulate micro:bit send timing ( #1471 )
...
* display blocks yield for 50ms
* WIP on microbit command send timing
* WIP on microbit command send timing
* Cleanup and JSDOC
* Send “withResponse” param to Link
* Remove caching, add busy timeout
2018-08-16 15:38:03 -04:00
Eric Rosenbaum
825035f503
Fix importing WeDo 2.0 blocks from SB2 ( #1487 )
...
* Fix wedo2 import from sb2
* Hide wedo play note block
2018-08-16 14:24:19 -04:00
Evelyn Eastmond
0df334fd38
Fixes #1423 : WeDo commands should be able to be translated. ( #1482 )
2018-08-15 14:21:42 -04:00
Evelyn Eastmond
280be8379b
Merge pull request #1481 from evhan55/feature/wedo2-fixes
...
Various WeDo2 fixes and enhancements
2018-08-15 14:11:04 -04:00