Commit Graph

468 Commits

Author SHA1 Message Date
Peli de Halleux
f77bf165eb updates strings 2018-01-07 20:51:48 -08:00
Peli de Halleux
4880d9ea5b Merge branch 'master' of https://github.com/microsoft/pxt-ev3 2018-01-07 20:45:56 -08:00
Peli de Halleux
ab4fb019f9 more changes to "print" 2018-01-07 20:45:48 -08:00
Peli de Halleux
0f2bda2496 shuffling motor blocks 2018-01-07 20:33:02 -08:00
Sam El-Husseini
44386be3c7
Merge pull request #185 from Microsoft/printlineinverted
invert arguments in print line
2018-01-07 12:14:16 -08:00
Peli de Halleux
64389a7689 more annotations 2018-01-07 10:06:02 -08:00
Peli de Halleux
f77778ef85
Merge branch 'master' into speedfield 2018-01-07 09:59:11 -08:00
Peli de Halleux
7d01823caf remove stopAllMotors on escape key 2018-01-07 09:58:08 -08:00
Michał Moskal
b3f9a4c92f Make sure we stop motors on exit (#199) 2018-01-07 07:54:40 -08:00
Sam El-Husseini
7fe8580de8 Add brick buttons field editor (#202)
* Add brick buttons field editor

* add hover title text
2018-01-07 07:52:07 -08:00
Sam El-Husseini
c70d6fe01a Remove unnecessary extra 'light' text in block pauseUntilLight (#203) 2018-01-07 00:12:29 -08:00
Sam El-Husseini
a79704fecc Decompilation and minor PR feedback 2018-01-06 17:16:08 -08:00
Sam El-Husseini
6a1b560101 Fix default 2018-01-06 14:40:09 -08:00
Sam El-Husseini
5e21f9ab6d Add a speed field editor 2018-01-06 14:25:50 -08:00
Peli de Halleux
9ae6482f28
fixing isReady query on motors (#197) 2018-01-06 00:00:04 -08:00
Peli de Halleux
77fb64043d stop all motors when pressing escape 2018-01-05 22:56:11 -08:00
Peli de Halleux
c814728354 pdated ultrasonic default 2018-01-05 21:29:52 -08:00
Peli de Halleux
931987468a light the way activities 2018-01-05 19:14:55 -08:00
Peli de Halleux
ea46f1cbc7
3 activies from curriculum (#194)
* 3 activies from curriculum

* fixing style
2018-01-05 18:24:23 -08:00
Peli de Halleux
64d6c2b090
Motors cleanup (#192)
* refactoring

* moving chassis into separate project

* added set motors
2018-01-05 16:02:52 -08:00
Sam El-Husseini
e938f354fd Add console icon and set color. Fixes #152 2018-01-05 10:38:26 -08:00
Michal Moskal
4039a85bc9 Make sure the ESC button always stops the program 2018-01-05 16:17:33 +00:00
Peli de Halleux
a9be582f90
gyro calibration done right (#186) 2018-01-04 23:21:19 -08:00
Peli de Halleux
ac428a3936 invert arguments in print line 2018-01-04 22:13:17 -08:00
Peli de Halleux
1e460eef9e
basic reading of battery level (#182) 2018-01-04 21:50:13 -08:00
Peli de Halleux
7da811246c
Behaviors Driven Robotics (#178)
* adding avoid crash behavior

* more implementation

* add another simple behavior

* fixed synched motors

* bump common packages
2018-01-04 12:55:30 -08:00
Caitlin Hennessy
39ba9b81af Initial work 2018-01-04 12:20:31 -08:00
Peli de Halleux
ba0eb93b0f
use common packages tests implementation (#171) 2018-01-04 09:23:28 -08:00
Sam El-Husseini
95e47a0b25
Merge pull request #169 from Microsoft/screenimgeditor
Initial screen field editor.
2018-01-04 08:37:56 -08:00
Peli de Halleux
b7cdc7d0fe moving blocks around 2018-01-04 08:25:02 -08:00
Sam El-Husseini
dde5a35cd9 Initial screen field editor. Adding Lego designer assets to legoresources 2018-01-03 17:20:35 -08:00
Sam El-Husseini
d6d8b0655b Merge branch 'master' into field_ports 2018-01-03 15:12:35 -08:00
Sam El-Husseini
c916664ae7 Fix download and save icons. 2018-01-03 15:02:24 -08:00
Sam El-Husseini
4b836ede1b
Merge pull request #167 from Microsoft/blockfixes
Block layout fixes.
2018-01-03 14:22:18 -08:00
Sam El-Husseini
52fdaeec99 remove colon from print line block 2018-01-03 14:22:00 -08:00
Sam El-Husseini
7993363e89 Remaining icon fixes. Using blockIcons to show custom icons for built in categories 2018-01-03 14:20:33 -08:00
Sam El-Husseini
4d671f6cb0 Block layout fixes. Fixes to screen blocks. Adding print line API. 2018-01-03 14:00:08 -08:00
Sam El-Husseini
e0e5c95989 Merge branch 'master' into icon_font 2018-01-03 11:56:28 -08:00
Sam El-Husseini
2b5f702bb6 Fix null ref for this when _update is called. 2018-01-03 11:20:37 -08:00
Peli de Halleux
1c81ecd23f send ports data to console 2018-01-03 08:24:54 -08:00
Peli de Halleux
4d223374b5
Differential drive (#164)
* clear sync speed cmd

* differential drive model

* use cm/s

* fixed aggressive clearing of motor sync command

* better computation of turn artio

* improved robot dimensions

* moving block up

* hanbdle infinite case

* correct handling of inifinte time/step

* better stop handling
2018-01-03 00:27:05 -08:00
Sam El-Husseini
eb11d7926c Fix null dereferencing issue for buttons 2018-01-02 23:18:54 -08:00
Sam El-Husseini
955a2c9757 Better fix for null dereferencing issue. Fix initial Color sensor mode (default). 2018-01-02 22:51:12 -08:00
Sam El-Husseini
3c4c38eb59 Fix null dereferencing issue. Fix sensor mode changed not clearing cached control. 2018-01-02 22:22:14 -08:00
Peli de Halleux
c35dbdd38f
Motor sync support in simulator (#159)
* parse sync motor command

* better sim support

* sync support

* fixing tank
2018-01-02 16:20:00 -08:00
Caitlin Hennessy
383ca5467d Remove advexpanded/advcollapsed 2018-01-02 12:49:25 -08:00
Caitlin Hennessy
4dff282633 Initial work 2018-01-02 10:47:04 -08:00
Sam El-Husseini
d7f46c0fb5 Hide screen picker properly from typescript 2017-12-28 11:15:53 -08:00
Sam El-Husseini
a1b059171b Add a output port field editor 2017-12-24 17:46:58 -08:00
Peli de Halleux
93fd8c8c78 removing more icons 2017-12-19 15:10:13 -08:00
Sam El-Husseini
1765ca2d35
Merge pull request #116 from Microsoft/revert_screenopt
Use game loop instead of animation queue
2017-12-19 14:58:37 -08:00
Caitlin Hennessy
2c73bfc813 Set high/low to 20/5 2017-12-19 14:40:30 -08:00
Peli de Halleux
d78d9c8686
basic ports view (#115)
* basic ports view

* slight adjustement of rendering
2017-12-19 14:26:57 -08:00
Sam El-Husseini
2157af3e63 Using game loop instead of queueAnimationUpdate 2017-12-19 14:20:35 -08:00
Peli de Halleux
eac3e183c3 better test support 2017-12-19 13:10:40 -08:00
Peli de Halleux
919a03951c
Removing icons (#114)
* removing icons

* added "pause for light"
2017-12-19 11:37:33 -08:00
Peli de Halleux
9e427898ae
added test framework (#113)
* added test framework

* added toString on motors

* enabling logs
2017-12-19 07:07:50 -08:00
Peli de Halleux
60bf3a17d3
a mini-console support with scroll up / down (#112)
* a mini-console support with scroll up / down

* fix compile error
2017-12-18 22:36:32 -08:00
Sam El-Husseini
0529759a80 Fix ultrasonic value to use cm instead of 0.1 cm units (#110)
* Fix simulator

* use 250 instead of 255
2017-12-18 20:30:56 -08:00
Peli de Halleux
43a9d03231 fixing pauseUntilReady signature 2017-12-18 14:45:44 -08:00
Peli de Halleux
f1445c6e89
Motor pause until ready (#108)
* adding command to pause until ready

* adding console API

* adding ready support for motors

* fix time output scale

* fixing angle
2017-12-18 14:13:38 -08:00
Sam El-Husseini
5be3b31e00 Merge branch 'master' into initial_sim 2017-12-18 13:21:35 -08:00
Sam El-Husseini
6320379d02 Initial sim implementation 2017-12-18 13:04:17 -08:00
Peli de Halleux
d07f672b28 fixing single motor set speed 2017-12-18 09:17:19 -08:00
Peli de Halleux
363e076f36 fixing motor compilation 2017-12-18 08:54:53 -08:00
Peli de Halleux
217958aec3 fix polarity 2017-12-17 23:19:38 -08:00
Peli de Halleux
367b1b0d1a properly setting multiple-motor options 2017-12-17 23:00:07 -08:00
Peli de Halleux
6836852122
refactoring motors wiht base class (#104) 2017-12-17 22:47:13 -08:00
Sam El-Husseini
944098b9f9 Minor refactor fix (#102)
* Minor fix to a refactor of motor output this.brake to this._brake

* No (_this) in global context

* Minor fix
2017-12-17 21:12:18 -08:00
Michał Moskal
b144744509 Add tsconfig.json for easier library editing (#96) 2017-12-15 14:29:31 -08:00
Caitlin Hennessy
e591bed6ad Add 'clear screen' block to brick category (#100) 2017-12-15 14:29:10 -08:00
Peli de Halleux
6a4e64eac0
Merge pull request #79 from Microsoft/motorsync
Motor sync block
2017-12-15 14:28:03 -08:00
Caitlin Hennessy
f7dd14ff7b
Merge pull request #88 from Microsoft/even_more_sounds
Add 'stopAllSounds' block
2017-12-15 11:36:31 -08:00
System Administrator
bfd34cedd6 Update built files 2017-12-15 11:04:16 -08:00
Caitlin Hennessy
a02f364a4c Update function names for consistency 2017-12-15 10:42:44 -08:00
Sam El-Husseini
6fb08f0f7b Fix order of color and ultrasonic sensor ports. 2017-12-15 07:48:42 -08:00
Peli de Halleux
13f8659b98
Merge pull request #97 from Microsoft/startup_delay
Startup delay for sensors to get values
2017-12-15 07:05:21 -08:00
Michal Moskal
c7a3f5bbd0 Delay user code by 100ms to get sensor reading (fixes #90) 2017-12-15 11:55:20 +00:00
Michal Moskal
41d5052583 Run sensor "change handler" also with the initial value 2017-12-15 11:54:53 +00:00
Michal Moskal
07ddec343a Formatting 2017-12-15 11:30:15 +00:00
Michal Moskal
5a9a5e997a Error reporting fixes 2017-12-15 11:29:18 +00:00
Michal Moskal
55b6549999 Implement getSerialNumber (based on BT MAC) 2017-12-15 11:25:23 +00:00
Peli de Halleux
fcdc350e40 more motor work 2017-12-14 17:01:23 -08:00
Peli de Halleux
9dedbeae1b updated parameters 2017-12-14 13:26:04 -08:00
Peli de Halleux
124d8a0fd8 tank support 2017-12-14 13:25:27 -08:00
Peli de Halleux
81fcbb6916 tweaks of blocks 2017-12-14 13:07:10 -08:00
Caitlin Hennessy
cb648019bb Progress 2017-12-14 09:17:47 -08:00
Peli de Halleux
11a88a9d94 updated signatures 2017-12-13 23:00:37 -08:00
Peli de Halleux
92178f3371 bring back speed 2017-12-13 22:54:08 -08:00
Peli de Halleux
3c86ae286f more work on motors 2017-12-13 22:40:40 -08:00
Peli de Halleux
1b6d84a9b8 Merge branch 'master' into motorsync 2017-12-13 21:16:33 -08:00
Caitlin Hennessy
2d81be3b24 Add 'stopAllSounds' block 2017-12-13 16:31:42 -08:00
Peli de Halleux
14f57f54bf
Merge pull request #87 from Microsoft/motor_fix_2
Motor data fix
2017-12-13 15:56:17 -08:00
Peli de Halleux
e7c697c24d
Merge pull request #85 from Microsoft/on_color_fix
Fix "on color detected" block
2017-12-13 15:55:47 -08:00
Peli de Halleux
7ac63f038c
Merge pull request #84 from Microsoft/fix_image_attrs
Adding block identity
2017-12-13 15:55:36 -08:00
Peli de Halleux
da62d51615 Merge branch 'master' into motor_fix_2 2017-12-13 15:48:43 -08:00
Peli de Halleux
3918857fcc Merge branch 'master' into on_color_fix 2017-12-13 15:48:24 -08:00
Peli de Halleux
f1dcebdd88 Merge branch 'master' into fix_image_attrs 2017-12-13 15:48:09 -08:00
Peli de Halleux
1d35c78737 Merge branch 'master' into motorsync 2017-12-13 15:47:52 -08:00
Peli de Halleux
d17326ad7a Merge branch 'master' into waitUntiltopauseUntil 2017-12-13 15:47:27 -08:00
Peli de Halleux
4948a88833
Merge pull request #83 from Microsoft/new_ts_cleanup
New ts cleanup
2017-12-13 15:46:58 -08:00
Caitlin Hennessy
641d292c33 Clean commit for motor fix 2017-12-13 14:55:14 -08:00
Caitlin Hennessy
223275fd65 Moving a line of code 2017-12-13 13:35:28 -08:00
Richard Knoll
6e42e816d3 Adding block identity 2017-12-13 10:42:49 -08:00
Richard Knoll
5678cf5df9 Fixing test file 2017-12-13 10:29:12 -08:00
Michal Moskal
67ec4accb9 Monitor memory usage and panic on over 8MB used 2017-12-13 15:28:52 +00:00
Peli de Halleux
113b42656c sync command working 2017-12-12 14:08:45 -08:00
Peli de Halleux
7557380722 adding sync command 2017-12-12 13:20:25 -08:00
Peli de Halleux
3e2a1ec9e1 missing strings files 2017-12-12 11:23:29 -08:00
Peli de Halleux
09db613620 updated docs 2017-12-12 10:49:45 -08:00
Peli de Halleux
bacb4673c9 renaming all "wait until" to "pause until" 2017-12-12 10:46:56 -08:00
Peli de Halleux
e649a167cd
Merge pull request #74 from Microsoft/powertospeed
some speed renamings
2017-12-11 23:20:17 -08:00
Sam El-Husseini
1bf1eb16f0 Update to latest TS and update blocks colors to match Lego's edu colors 2017-12-11 16:55:00 -08:00
Peli de Halleux
fbc6fc30a7 some speed renamings 2017-12-11 16:07:46 -08:00
System Administrator
2d7a108e79 Fix merge conflict 2017-12-07 16:28:30 -08:00
System Administrator
193f66fd2d Limit sound concurrency to 1 2017-12-07 16:27:28 -08:00
Peli de Halleux
2c22ea925f
Merge pull request #69 from Microsoft/sounds
Get rid of "play sound" blocks; add non-blocking "play sound effect"
2017-12-07 11:53:04 -08:00
Caitlin Hennessy
4e4aa266d5 Limit sound concurrency 2017-12-07 11:27:29 -08:00
Peli de Halleux
085ab0844b rename "power" to "set speed" for consistency 2017-12-06 22:41:51 -08:00
Peli de Halleux
162e437527 using icons on drop downs 2017-12-06 22:34:11 -08:00
Peli de Halleux
ab13cb9047 adding a few more icons 2017-12-06 21:40:00 -08:00
Peli de Halleux
30e576345b more icon updates 2017-12-06 16:29:21 -08:00
Peli de Halleux
dfc4c83718 resizing svg to sqaures
updates some icons
2017-12-06 16:22:31 -08:00
Peli de Halleux
22ab1cba8d removing infrared from default ev3 configuration 2017-12-05 10:49:48 -08:00
Caitlin Hennessy
064d6f9411 Check if sound not defined 2017-12-04 12:24:41 -08:00
Caitlin Hennessy
330aff8082 Restore 'play sound effect' name 2017-12-01 09:59:59 -08:00
Caitlin Hennessy
aa636aef96 Separate blocks for 'play sound' and 'play sound until done' 2017-11-30 15:49:50 -08:00
Caitlin Hennessy
b940befe85 Default piano note should be 1046 2017-11-30 12:44:22 -08:00
Peli de Halleux
c6bae5e17b missed files 2017-11-30 11:28:20 -08:00
Peli de Halleux
7bdb9683c9 fixing naming 2017-11-30 10:37:59 -08:00
Peli de Halleux
3c675892aa moving gyro into separate project 2017-11-30 10:34:34 -08:00
Peli de Halleux
a92edcffee adding waitUntil to buttons 2017-11-30 10:05:00 -08:00
Peli de Halleux
305a650125 using threshold detector 2017-11-30 09:59:28 -08:00
Peli de Halleux
34a5aeb7d2 moving IR as well 2017-11-30 09:53:43 -08:00
Peli de Halleux
32f524ddd8 fixing build 2017-11-30 09:48:43 -08:00
Peli de Halleux
b690c1634b updated distance detection 2017-11-30 09:41:34 -08:00
Peli de Halleux
8089841892 wait until 2017-11-30 09:39:24 -08:00
Peli de Halleux
3d8c697586 moving into separate project 2017-11-30 09:38:04 -08:00
Peli de Halleux
4ed41adb6a avoid conflicts of event values 2017-11-30 08:31:31 -08:00
Peli de Halleux
39b7f99741 update mode selection 2017-11-30 08:20:00 -08:00
Peli de Halleux
ad17191ae2 collapse reflected/ambient blocks 2017-11-29 22:47:17 -08:00
Peli de Halleux
4a8633f506 updated descriptions 2017-11-29 22:11:59 -08:00
Peli de Halleux
3690f409b0 docs skeleton 2017-11-29 22:09:12 -08:00
Peli de Halleux
97663d2b83 updated naming 2017-11-29 21:57:05 -08:00
Peli de Halleux
4d2b7ced71 moving color sensor to separate project 2017-11-29 21:41:00 -08:00
Peli de Halleux
5676103052
Merge pull request #63 from Microsoft/speedispower
use speed when setting power
2017-11-29 21:22:32 -08:00
Michal Moskal
cb8c14fbb1 Allow waitForEvent on main thread; fixes #60
also use target_panic() instead of assert
2017-11-29 19:54:17 -03:00
Peli de Halleux
815d438d86 use speed when setting power 2017-11-29 00:04:54 -08:00
Caitlin Hennessy
da8de1e31e
Merge pull request #56 from Microsoft/note 2017-11-28 17:00:57 -08:00
Peli de Halleux
7e502b1749 adding bare docs 2017-11-28 16:24:22 -08:00
Peli de Halleux
f22edac84d moving touch stuff into separate projects 2017-11-28 16:11:15 -08:00
Caitlin Hennessy
ef2807a84e Fill in real min and max 2017-11-28 16:04:25 -08:00
Peli de Halleux
580b40876c fixing bumped 2017-11-28 16:02:04 -08:00
Peli de Halleux
b57ae5d588 implement wasPressed 2017-11-28 15:33:43 -08:00
Peli de Halleux
71479d0caa adding touch button examples 2017-11-28 15:23:54 -08:00
Caitlin Hennessy
7e39cdde9d Add a todo 2017-11-27 17:21:32 -08:00
Caitlin Hennessy
85ca6b3698 Support for new data structure 2017-11-27 14:12:04 -08:00
Caitlin Hennessy
2c89848fda More 2017-11-21 17:11:11 -08:00
Caitlin Hennessy
ed1c187514 Initial work 2017-11-21 11:35:53 -08:00
Peli de Halleux
d2c7a5ace0 support for wait/when 2017-11-18 07:37:46 -08:00
Peli de Halleux
4a7e8c5fa8 adding block for sounds 2017-11-16 23:28:44 -08:00
Peli de Halleux
988a2b638b add icon 2017-11-16 22:52:29 -08:00
Peli de Halleux
e400637ba1
Merge branch 'master' into icons 2017-11-16 22:47:40 -08:00
Peli de Halleux
b2768b1099 added showimage 2017-11-16 22:46:51 -08:00
Peli de Halleux
c936c16c33 more icons 2017-11-16 22:03:43 -08:00
Peli de Halleux
d100026d5c more icons 2017-11-16 13:05:50 -08:00
Peli de Halleux
41c2899feb more icons 2017-11-16 13:03:15 -08:00
Peli de Halleux
9437873427 more images 2017-11-16 12:58:37 -08:00
Peli de Halleux
dab281a9cb including a few icons in block names 2017-11-16 12:41:47 -08:00
Peli de Halleux
170e6b700b updating to latest pxt 2017-11-09 10:24:12 -08:00
Peli de Halleux
400f01a6be fixing duplicate block id 2017-10-31 09:42:53 -07:00
Peli de Halleux
08f36fbb94
Merge pull request #30 from Microsoft/jres
Import images and sounds from ev3 EDU
2017-10-31 16:48:24 +01:00
Peli de Halleux
329a1e15ea simplified IR API 2017-10-30 21:39:50 -07:00
Peli de Halleux
16a025f3a0 simplified motor API 2017-10-30 21:29:18 -07:00
Peli de Halleux
26b975b5f2 images 2017-10-30 14:51:14 -07:00
Michal Moskal
a082807455 Fix locking in waitForEvent() and sample playing 2017-10-30 19:18:01 +00:00
Michal Moskal
e8e31e6aa7 Fix brick.print() 2017-10-30 19:03:45 +00:00
Michal Moskal
2df90152fe Remove debug output 2017-10-30 18:56:03 +00:00
Michal Moskal
e25590539e Add sample-playing code 2017-10-30 18:55:23 +00:00
Michal Moskal
a7795302fc Make it compile with master 2017-10-30 18:54:53 +00:00
Peli de Halleux
bfc95e075e
Merge branch 'master' into jres 2017-10-30 18:48:18 +01:00
Peli de Halleux
1976534da0
Merge pull request #28 from Microsoft/sensorscat
Aligning categories with LabView/RobotC
2017-10-30 18:46:27 +01:00
Michal Moskal
ebbbe6e86c Add sounds (only simulator for now) 2017-10-30 17:25:58 +00:00
Peli de Halleux
c4a9b4a381 updated brick color 2017-10-30 09:58:00 -07:00
Peli de Halleux
c7d36a5e82 moving motors up 2017-10-30 09:55:36 -07:00
Peli de Halleux
c8c45be057 fixing brick groups 2017-10-30 09:51:18 -07:00
Michal Moskal
a8a7267851 Add LEGO EDU images 2017-10-30 15:34:47 +00:00
Michal Moskal
dcb398d3d5 Rename Icon to Image 2017-10-30 13:28:01 +00:00
Michal Moskal
f6e350cf9f Add separate type for Icons (same repr as buffer) 2017-10-30 13:04:12 +00:00
Michal Moskal
c085094394 Add screen::unpackPNG() 2017-10-30 12:45:37 +00:00
Peli de Halleux
7c2ea7c406 fixing more groups 2017-10-28 09:20:34 -07:00
Peli de Halleux
84b98a2788 brick namespace 2017-10-28 09:13:02 -07:00
Michal Moskal
57647318c4 Sensor fixes 2017-10-27 19:18:56 +01:00
Michal Moskal
2720698864 Fix infinite loop 2017-10-27 19:18:47 +01:00
Peli de Halleux
dfe2fe3cff brick refactoring 2017-10-27 11:05:04 -07:00
Peli de Halleux
18fefa2a44 output -> motors 2017-10-27 11:01:11 -07:00
Peli de Halleux
05a8395028 stop all motors 2017-10-27 02:52:42 -07:00
Peli de Halleux
712c2178d2 simplify motor API 2017-10-27 01:47:25 -07:00
Peli de Halleux
95076f8f24 differentiate large/medium motors 2017-10-27 00:09:00 -07:00
Peli de Halleux
6391620373 added 2 more activities 2017-10-26 23:58:34 -07:00