Chris Willis-Ford
eba89d57d8
Merge branch 'develop' into non-droppable-extension-menus
2019-06-18 16:52:47 -07:00
Karishma Chadha
9af2e4c086
Merge pull request #2161 from LLK/e16n
...
Supporting VM changes for extensionification
2019-06-18 18:53:20 -04:00
Christopher Willis-Ford
fd776025e5
refactor _refreshExtensionPrimitives for clarity
...
The previous form made it harder to see that at most one extension
category is handled per call.
2019-06-18 15:08:03 -07:00
Chris Willis-Ford
edd6aafed0
call out capitalization change since it's important but easy to miss
...
Co-Authored-By: Karishma Chadha <kchadha@media.mit.edu>
2019-06-18 15:07:58 -07:00
Christopher Willis-Ford
3c28f714bb
respond to code review
2019-06-17 21:14:21 -07:00
Chris Willis-Ford
18b1551cdb
remove redundant check
...
Co-Authored-By: Karishma Chadha <kchadha@media.mit.edu>
2019-06-17 13:22:52 -07:00
Evelyn Eastmond
f3f307b59c
Merge pull request #2207 from evhan55/ergonomics/2017
...
Removing comment in WeDo2 extension
2019-06-17 12:19:42 -04:00
Christopher Willis-Ford
33a6071466
for compatibility, make all existing extension menus accept reporters
2019-06-14 12:29:32 -07:00
Christopher Willis-Ford
cfee656306
fix tests: empty menus
shouldn't be an array
2019-06-14 12:29:32 -07:00
Christopher Willis-Ford
3fbed88a95
switch from rejectReporters
flag to acceptReporters
...
Also add more extensive documentation around extension menu definitions,
including some considerations to think about before making a menu accept
reporters.
2019-06-14 12:29:32 -07:00
Christopher Willis-Ford
e7bf49c8df
support non-droppable menus in extensions
2019-06-14 12:29:32 -07:00
Evelyn Eastmond
418cd0a0f4
Removing comment after decision that this function name is accurate and distinct from coastAfter.
2019-06-12 10:20:21 -04:00
Evelyn Eastmond
704774d6d1
Fixing debug statements and also adding a safety check for timeoutIDs.
2019-06-12 09:02:12 -04:00
Evelyn Eastmond
0e250aef37
Fixing a comment.
2019-06-12 09:02:12 -04:00
Evelyn Eastmond
37fe83c057
Adding disconnect/state resetting behavior to rest of hardware extensions.
2019-06-12 09:02:12 -04:00
Evelyn Eastmond
f8a0ea281f
Adding/fixing debug statements throughout.
2019-06-12 09:02:12 -04:00
Evelyn Eastmond
a1243fd897
Change cleanup/disconnect behavior for BT and EV3.
2019-06-12 09:02:12 -04:00
Evelyn Eastmond
6a032087ce
Fixing up BOOST reset and disconnect behavior splitting.
2019-06-12 09:02:12 -04:00
Evelyn Eastmond
56fdd45242
Adding reset and resetCallback to BLE and Boost extension only for now.
2019-06-12 09:02:12 -04:00
Evelyn Eastmond
f192c181bd
Rename scratchLinkSocket variables to 'socket' and 'ble' to avoid confusion with upcoming ScratchLinkWebSocket class.
2019-06-12 09:01:49 -04:00
picklesrus
b88d5d05b0
Merge pull request #2084 from picklesrus/update-languages-in-translate-list
...
Fixing some translate language menu bugs.
2019-06-10 11:13:52 -04:00
Eric Rosenbaum
8243d0f53a
Update sound sampleCount and rate
2019-06-05 17:06:27 -04:00
Eric Rosenbaum
b6a33cc3ed
Merge branch 'develop' into extensions/ev3-rate-limiting
2019-06-04 11:37:43 -04:00
Evelyn Eastmond
6e80c92703
Merge pull request #2191 from evhan55/bt-pairing-changes
...
Add optional 'pin' parameter to BT connections
2019-06-04 11:26:47 -04:00
Evelyn Eastmond
ae791b3f26
Don't send null pin.
2019-05-31 11:27:20 -04:00
Evelyn Eastmond
b6913b7828
Move EV3 pin to a static var.
2019-05-31 11:14:32 -04:00
Evelyn Eastmond
8e302ac90c
Add optional pin parameter to peripheral connection.
2019-05-31 11:10:13 -04:00
Paul Kaplan
615f60252d
Set connected to false before closing to prevent infinite loop
...
There is an implicit assumption that socket.close is async, but if it is sync, it may go into an infinite loop of close callbacks if the connected flag is not set to false before trying to close
Co-Authored-By: chrisgarrity <chrisg@media.mit.edu>
2019-05-31 09:42:00 -04:00
Paul Kaplan
706354d2f0
Update documentation about required methods on ScratchLinkSocket
...
Co-Authored-By: chrisgarrity <chrisg@media.mit.edu>
2019-05-31 08:55:20 -04:00
Paul Kaplan
64cff3d161
Fix documentation on what methods to implement for ScratchLinkSocket
...
Co-Authored-By: chrisgarrity <chrisg@media.mit.edu>
2019-05-31 08:41:20 -04:00
Paul Kaplan
94afd58b2f
Require handleMessage to be set before opening scratch-link-socket
2019-05-31 08:35:27 -04:00
Paul Kaplan
5e626eb7e9
Initial prototype of configurable scratch link socket
2019-05-24 12:51:58 -04:00
Karishma Chadha
dbcbe8b94f
Revert "synth extension"
...
This reverts commit dbd513d85b
.
2019-05-24 11:27:20 -04:00
Karishma Chadha
d1b261d56e
Revert "lightplay extension stub"
...
This reverts commit 36de7517bd
.
2019-05-24 11:27:08 -04:00
Karishma Chadha
7501af4c6b
Revert "lightplay extension stub"
...
This reverts commit 1ee3cea144
.
2019-05-24 11:26:54 -04:00
Carmelo Presicce
1ee3cea144
lightplay extension stub
2019-05-23 21:27:10 -04:00
Carmelo Presicce
36de7517bd
lightplay extension stub
2019-05-23 21:26:57 -04:00
Carmelo Presicce
dbd513d85b
synth extension
2019-05-23 20:22:03 -04:00
Evelyn Eastmond
565f11d4fc
Merge pull request #2168 from evhan55/ergonomics/2153
...
Change BOOST variable names regarding duration and rotation blocks
2019-05-22 16:23:35 -04:00
Eric Rosenbaum
79c8a815a3
Do not load speech2text extension
2019-05-20 12:53:16 -04:00
Evelyn Eastmond
58908bb1a4
Changing BTSendRateMax to help with key-down scenarios.
2019-05-17 11:43:06 -04:00
Evelyn Eastmond
d76756f5f6
Removing BTSendInterval, not needed.
2019-05-17 11:28:51 -04:00
Evelyn Eastmond
62a8f2d0f2
Fix typo.
2019-05-17 11:28:51 -04:00
Evelyn Eastmond
52519ae1e0
Add comment.
2019-05-17 11:28:51 -04:00
Evelyn Eastmond
9d231b7887
Adding RateLimiter and useLimiter rate limiting approach to EV3.
2019-05-17 11:28:51 -04:00
Karishma Chadha
14d2820460
Merge pull request #1648 from mzgoddard/stop-all-next-tick
...
Stop all next tick
2019-05-15 11:25:15 -04:00
Evelyn Eastmond
6e6d6140cc
Rename duration timeout setter/getter.
2019-05-11 11:21:07 -04:00
Evelyn Eastmond
b7e0edcabc
Fixing linting.
2019-05-11 11:08:00 -04:00
Evelyn Eastmond
6e0b4351d8
Clarify comment.
2019-05-11 10:55:51 -04:00
Evelyn Eastmond
693038972e
Clarify comment.
2019-05-11 10:54:45 -04:00
Evelyn Eastmond
bdda6f7fc6
Fix inaccurate comment.
2019-05-11 10:52:00 -04:00
Evelyn Eastmond
048598aef8
Fix inaccurate comment.
2019-05-11 10:50:25 -04:00
Evelyn Eastmond
14ffae04f8
Fix inaccurate comment.
2019-05-11 10:48:35 -04:00
Evelyn Eastmond
0256fff8ce
Update public getters to new variable names.
2019-05-11 10:46:45 -04:00
Evelyn Eastmond
9ae2c4b1f1
Adding a comment.
2019-05-11 10:40:27 -04:00
Evelyn Eastmond
eabff71461
Changing some variable names regarding duration and rotation blocks for clarity.
2019-05-11 10:37:42 -04:00
Karishma Chadha
f2301e0e4d
Merge pull request #2126 from mzgoddard/runtime-script-cache-fix
...
Runtime script cache fix
2019-05-08 16:00:28 -04:00
Eric Rosenbaum
86f4ca5806
Do not localize motor IDs
2019-05-02 16:21:08 -04:00
Eric Rosenbaum
b75b8027a1
Always clear motor promises when setting state
2019-04-30 11:37:10 -04:00
Eric Rosenbaum
8245b46d56
Change extension name to all-caps BOOST
2019-04-29 15:43:38 -04:00
Eric Rosenbaum
85f3a3c3c5
Merge branch 'develop' into bugfix/2125
2019-04-29 14:06:13 -04:00
Evelyn Eastmond
2a04e9c7f2
Don't set motor power or direction if in rotation state.
2019-04-29 11:58:34 -04:00
Evelyn Eastmond
8745c9b3ac
Move false flag left because it will get fixed by PR 2140 instead.
2019-04-29 11:54:12 -04:00
Evelyn Eastmond
c1292f6a59
Don't set motor power if it's already equal to the input power.
2019-04-29 11:53:40 -04:00
Evelyn Eastmond
71c3b72892
Moving false flag from Math.abs to turnOnForDegrees, fixing typo.
2019-04-29 11:53:40 -04:00
Evelyn Eastmond
7e01326d71
Fixing linting.
2019-04-29 11:45:15 -04:00
Evelyn Eastmond
a67b303294
Remove console logs and change a comment.
2019-04-29 11:42:09 -04:00
Evelyn Eastmond
c37a41c352
Only clear pending duration timeout if not in _ON_FOR_TIME state.
2019-04-29 09:22:36 -04:00
Evelyn Eastmond
75eae9a58a
Fixing motor status setter to not clear rotation if already in rotation state.
2019-04-29 09:22:36 -04:00
Evelyn Eastmond
5109cd474c
Remove more power===0 checks.
2019-04-29 09:22:36 -04:00
Evelyn Eastmond
410e13b4e3
Remove resetState and all power===0 checks.
2019-04-29 09:22:36 -04:00
Evelyn Eastmond
d0ed16d47c
Fixing Math.abs false arg? and moving it to turnOnForDegrees call.
2019-04-29 09:22:36 -04:00
Evelyn Eastmond
dd82079bad
Fixing a comment style.
2019-04-29 09:22:36 -04:00
Evelyn Eastmond
bb6514f1d6
Removing some tabs.
2019-04-29 09:22:36 -04:00
Evelyn Eastmond
14162b9920
Adding an empty line back in.
2019-04-29 09:22:36 -04:00
Evelyn Eastmond
7ed8d376c5
Putting in a comment.
2019-04-29 09:22:36 -04:00
Evelyn Eastmond
99c7528a1e
Removing some empty changed lines.
2019-04-29 09:22:36 -04:00
Evelyn Eastmond
12233b73dd
Fixing comments to reflect original code.
2019-04-29 09:22:36 -04:00
Evelyn Eastmond
73fc5b8723
Fixing lint.
2019-04-29 09:22:36 -04:00
Evelyn Eastmond
83bf1be066
Comment out all the power = 0 checks that came over from WeDo.
2019-04-29 09:22:36 -04:00
Evelyn Eastmond
270a445703
Playing with power states while we figure out the design.
2019-04-29 09:22:36 -04:00
Evelyn Eastmond
597bd68c0d
Remove commented line.
2019-04-29 09:21:06 -04:00
Evelyn Eastmond
f0edd10346
Change turnOnForever and turnOff behavior for power = 0 case.
2019-04-29 09:21:06 -04:00
Karishma Chadha
39f15d3699
Update comment for new extension update event
2019-04-25 11:36:31 -04:00
unknown
a0f0a4092c
Moving position reversal back to reporter to avoid conflicts.
2019-04-24 22:42:54 -04:00
Evelyn Eastmond
a61b01628e
Putting back a line deleted by accident.
2019-04-24 11:28:29 -04:00
Karishma Chadha
92a73fef55
Add a runtime event to track when the toolbox extension blocks need updating.
2019-04-24 11:28:02 -04:00
Evelyn Eastmond
e3ec614173
Move reversing of sign to _onMessage, before clamping.
2019-04-24 11:24:56 -04:00
Evelyn Eastmond
adb4c0482c
Reversing the sign on Motor A reported position.
2019-04-23 19:05:12 -04:00
Eric Rosenbaum
b80b05ead7
Merge pull request #2131 from ericrosenbaum/feature/add-tts-arabic
...
Add Arabic to Text to Speech extension
2019-04-23 17:23:19 -04:00
Christopher Willis-Ford
91f0d59be0
fix extension block color application
2019-04-23 12:31:31 -07:00
Karishma Chadha
297047a6b9
Fix serialization of blockInfo mutation property to XML
2019-04-23 11:44:45 -04:00
Christopher Willis-Ford
a27ea76d25
add "scratch_extension" only if a block has an icon
2019-04-22 17:47:31 -07:00
Christopher Willis-Ford
107e49245f
adjust getBlocksXML to return categories separately
...
before: getBlocksXML returns one big XML string
after: getBlocksXML returns an array of {id,xml}, one entry per category
2019-04-22 12:32:52 -07:00
Christopher Willis-Ford
0247447792
embed extension blockInfo into block XML
2019-04-22 09:53:05 -07:00
Evelyn Eastmond
9a60d10190
Adding send interval delay to setMotorDirection opcode.
2019-04-22 12:17:47 -04:00
Evelyn Eastmond
26e6d25325
Make set motor speed opcode yield for send interval duration.
2019-04-22 11:59:02 -04:00
Eric Rosenbaum
f1c1883881
Add Arabic to Text to Speech
2019-04-21 21:18:56 -04:00
Christopher Willis-Ford
bd1aaecdf3
add category info to extension add & update events
2019-04-19 16:06:11 -07:00
Christopher Willis-Ford
833d33355c
retrieve blockInfo from args when isDynamic is set
2019-04-19 16:06:11 -07:00