Commit graph

1391 commits

Author SHA1 Message Date
Andrew Sliwinski
306466686a Add subhead to readme 2016-05-10 12:40:52 -04:00
Andrew Sliwinski
85f0d5cd22 Add donation notice to readme 2016-05-10 12:18:03 -04:00
Andrew Sliwinski
fe1340c4ab Update package version to 'pre release' 2016-05-10 12:15:27 -04:00
Andrew Sliwinski
d76e7a440a Update build 2016-05-10 12:12:37 -04:00
Andrew Sliwinski
ef2da9d40c Update documentation 2016-05-10 12:12:31 -04:00
Tim Mickel
b30ee492be Merge pull request #41 from tmickel/bugfix/39
Resolve existing motor timeout (instead of reject)
2016-05-09 14:34:50 -04:00
Tim Mickel
4d4682912d Resolve existing motor timeout (instead of reject) 2016-05-09 14:18:33 -04:00
Tim Mickel
c37cf3fe85 Merge pull request #37 from tmickel/feature/wedo-timing
Reduce block execution time (fix #35)
2016-05-05 13:10:48 -04:00
Tim Mickel
48822ddc7e Recompile 2016-05-05 13:10:08 -04:00
Tim Mickel
dd53b86b8c Reduce amount of time for executing blocks 2016-05-05 13:09:37 -04:00
Andrew Sliwinski
387c36d99e Merge pull request #36 from thisandagain/bugfix/android-37
Switch LED block to use WeDo color index mode
2016-05-05 11:50:55 -04:00
Andrew Sliwinski
0316e41b83 Recompile 2016-05-05 08:33:52 -04:00
Andrew Sliwinski
0de30986aa Switch WeDo2 led block to use color index rather than absolute RGB values. 2016-05-05 08:33:44 -04:00
Tim Mickel
c7a7e47cd4 Merge pull request #33 from tmickel/feature/wedo-fixes
A few WeDo fixes
2016-05-03 17:40:47 -04:00
Tim Mickel
5c03167ec3 Hack helper for distance sensors 2016-05-03 17:39:02 -04:00
Tim Mickel
85f8e99ca8 Add delay to RGB block 2016-05-03 17:23:59 -04:00
Tim Mickel
659c9b274a Add motorStop patch to stopAll 2016-05-03 17:18:28 -04:00
Tim Mickel
79b50e5172 Remove block glows from sequencer 2016-05-03 17:18:21 -04:00
Tim Mickel
c03e378b85 Merge pull request #28 from tmickel/feature/flyout-run
Allow pushing threads that are not on this.stacks
2016-05-03 15:58:38 -04:00
Tim Mickel
833f40cfe5 Allow pushing threads that are not on this.stacks
For flyout running
2016-05-03 15:58:20 -04:00
Tim Mickel
121cf17bda Merge pull request #26 from LLK/feature/broadcasts
Hacked implementation of broadcasts
2016-05-03 14:58:41 -04:00
Tim Mickel
9363432456 Hacked implementation of broadcasts 2016-05-03 14:57:10 -04:00
Tim Mickel
326e03b5d2 Merge pull request #25 from LLK/feature/stop-block
Implement stop block
2016-05-03 14:39:48 -04:00
Tim Mickel
beebae0d2e Implement stop block
Using a call to the runtime.
2016-05-03 14:39:33 -04:00
Tim Mickel
1bf8d90458 Merge pull request #22 from LLK/feature/args
Add hack to get block arguments and use them in the blocks
2016-05-03 14:35:24 -04:00
Tim Mickel
5f5fe6fafd Fix to check if block still exists 2016-05-03 14:35:02 -04:00
Tim Mickel
9e55abc3b8 Recompile 2016-05-03 14:26:46 -04:00
Tim Mickel
6b1eb6df51 Control blocks argValues 2016-05-03 14:26:43 -04:00
Tim Mickel
17d4485695 Fix WeDo args 2016-05-03 14:25:19 -04:00
Tim Mickel
8facd64376 Hack for getting argument values 2016-05-03 14:25:12 -04:00
Tim Mickel
654468a139 Merge pull request #20 from tmickel/bugfix/stops
Fix Runtime.stopAll
2016-05-03 14:14:57 -04:00
Tim Mickel
90a5982ff9 Fix Runtime.stopAll
Removing threads as we were looping was causing not all of them to be hit.
2016-05-03 14:11:37 -04:00
Tim Mickel
5b834667eb Merge pull request #19 from tmickel/feature/repeats
Stacks management, stack frames, repeat, forever
2016-05-03 14:04:50 -04:00
Tim Mickel
548d95b765 Fix attempt to pop from the stack
-Keeps it in newThreads
-Update thread status to STATUS_RUNNING to keep it going
2016-05-03 13:53:52 -04:00
Tim Mickel
852b11519a Fix for empty substacks 2016-05-03 13:45:22 -04:00
Tim Mickel
47545e7109 Replacing control_repeat comment 2016-05-03 13:34:39 -04:00
Tim Mickel
20c75569c2 Recompile 2016-05-03 13:32:32 -04:00
Tim Mickel
add3e9dec9 Strip blockExecutionData 2016-05-03 13:31:03 -04:00
Tim Mickel
379b2dec79 Stack management, stack frames, forever and repeat 2016-05-03 13:28:24 -04:00
Chris Willis-Ford
661670140d Merge pull request #18 from cwillisf/feature/wedo2-blocks
Implement non-hat WeDo 2.0 blocks
2016-05-03 10:04:49 -07:00
Christopher Willis-Ford
63d4f559e3 Fix inconsistent color scale
The HSV-to-RGB function had been returning values in the range [0,1].
Now it uses [0,255] to be consistent with the other values returned by
_getColor.
2016-05-03 10:01:52 -07:00
Christopher Willis-Ford
6f949596d8 Use util.timeout instead of setTimeout 2016-05-03 09:53:37 -07:00
Christopher Willis-Ford
e8089cd2a5 Don't check for methods on window.native
It turns out that `window.native.someMethod` always evaluates as
`undefined` -- even if calling that method would succeed. This change
removes checks for such methods so that the WeDo2 blocks can work.
Note that the hat blocks are still unimplemented, and some assumptions
are made about the form that arguments and `util` will take.
2016-05-03 09:48:26 -07:00
Christopher Willis-Ford
e1109e8ca6 Improve error exception report for Android Monitor
Android Monitor doesn't support passing multiple arguments to
`console.error`, so this change instead builds a single string for the
report.
2016-05-03 09:48:12 -07:00
Christopher Willis-Ford
66e4a55b74 Fix _motorOnFor not setting _motorTimeout 2016-05-03 09:44:13 -07:00
Christopher Willis-Ford
b9af4f7894 WIP implementation for WeDo2 blocks
Hat blocks are still TBD.
Motor blocks assume a `util` argument which has methods for `yield()`
and `done()`.
2016-05-03 09:44:13 -07:00
Tim Mickel
4c6f08f665 Add mechanism for per-block metadata 2016-05-03 11:45:25 -04:00
Tim Mickel
c4138e6603 Merge pull request #13 from tmickel/feature/s3-blocks
Implement thread status, yield timers, block glow, wait
2016-05-03 11:27:14 -04:00
Tim Mickel
1094ce5cc2 Recompile 2016-05-03 11:26:53 -04:00
Tim Mickel
417296ac69 Remove debug reference 2016-05-03 11:26:28 -04:00