Commit Graph

391 Commits

Author SHA1 Message Date
Peli de Halleux
fc6fb0811f
Timers (#235)
* adding timer support

* updates strings
2018-01-13 00:00:55 -08:00
Sam El-Husseini
751ea1494b motor slider fixes and fix motor output in vm 2018-01-12 13:33:25 -08:00
Peli de Halleux
21195e4abf
Datalog (#233)
* support for custom csv separator

* simple datalog frameowrk

* api strings

* hide setfile

* storage fixes

* log seconds, not milliseconds
2018-01-11 22:53:28 -08:00
Peli de Halleux
c992100a38 added option to append CSV headers 2018-01-11 21:36:43 -08:00
Michał Moskal
20a4673f98 First draft of storage APIs (#122)
* First draft of storage APIs

* bumped pxt-core

* using fixed instances to seprate temp from permanent

* send console to storage

* sim support

* missing sim stubs

* adding storage blocks

* more sim support

* remove storage from default package

* fix rendering of ms

* render raw ms

* slize at better place

* duplicate bundled dir

* refactor limit

* simplify limit logic
2018-01-11 20:05:45 -08:00
Peli de Halleux
3815d2fd3b
simplifiying brick light api (#231) 2018-01-11 13:43:11 -08:00
Peli de Halleux
1453b7e0a3 gyro reset fix 2018-01-11 11:17:23 -08:00
Peli de Halleux
6fb5c54280 fix build break 2018-01-11 08:55:31 -08:00
Peli de Halleux
9d5ca35e83 fix battery encoding 2018-01-11 08:47:09 -08:00
Peli de Halleux
893dd0f9c4 rename "enter..." to "button enter" 2018-01-11 08:28:25 -08:00
Peli de Halleux
c3419c0b74
support for unregulated motors (#227) 2018-01-10 23:34:27 -08:00
Peli de Halleux
a4164470d8 updated api to align with labview 2018-01-10 22:29:35 -08:00
Peli de Halleux
e61dffff03 fixing threshold 2018-01-10 11:45:08 -08:00
Peli de Halleux
b9f5096480 pause until motor measured move is done 2018-01-10 11:29:27 -08:00
Peli de Halleux
9912d68c8b fixing chassis 2018-01-10 11:14:25 -08:00
Peli de Halleux
951b9be6e4 fixing motors 2018-01-10 11:14:18 -08:00
Peli de Halleux
ce3383f1b7
Turn ratio field editor (#225)
* Turn ratio field editor (initial draft)

* Add field turn ratio editor

* Fix arrow rotation

* Fix left and right direction, remove unnecessary SVG circles.

* Update UI a little. add marker.

* updated math for turnratio angle

* slightly cuter

* cleanup

* consistent naming

* more cleanup

* fixing motor node issue

* updated package version
2018-01-09 22:05:26 -08:00
Peli de Halleux
5ed0135124
cleaning up images (#223)
* cleaning up images

* extra comma
2018-01-09 12:51:44 -08:00
Peli de Halleux
892a2d585f
Thresholds (#222)
* add threshold blocks

* updated strings

* added gap

* reorg color/gyro blocks

* fixing sound names

* adding stop block

* fixing exanmples
2018-01-09 12:46:48 -08:00
Peli de Halleux
a27a7fcd55
removing measured overloads until blocks support (#215) 2018-01-08 15:27:37 -08:00
Peli de Halleux
b5ad898c9e
Screentweak (#214)
* adding pid

* hiding functions

* precision of value
2018-01-08 15:00:00 -08:00
Peli de Halleux
d61a63f70a avoid overlaps in port view 2018-01-08 09:08:59 -08:00
Peli de Halleux
4207bd06c0 removing microbit font 2018-01-08 08:53:03 -08:00
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