Commit Graph

50 Commits

Author SHA1 Message Date
Sam El-Husseini
dfe84471e8
Merge pull request #144 from Microsoft/motorslider
Add motor slider control
2018-01-12 13:04:45 -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
9d5ca35e83 fix battery encoding 2018-01-11 08:47:09 -08:00
Peli de Halleux
0dd5ab9bde appliying manual speed 2018-01-10 14:08:50 -08:00
Sam El-Husseini
8357372fb5 Update to make it more like a crank 2018-01-10 13:47:39 -08:00
Sam El-Husseini
aa8635c4e7 Always use the motor slider control 2018-01-10 10:00:48 -08:00
Sam El-Husseini
4e4f5495da Merge branch 'master' into motorslider 2018-01-10 09:56:59 -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
9ae6482f28
fixing isReady query on motors (#197) 2018-01-06 00:00:04 -08:00
Sam El-Husseini
50f6b04ed4 Re-implement Math.sign so it works on IE 11 (not supported). Square shaped corners for Flyout 2018-01-05 17:35:25 -08:00
Peli de Halleux
aa06fd344a
store synched motor info always (#187) 2018-01-05 08:40:49 -08:00
Sam El-Husseini
de91dc6ab7 Handle the case where multiple motors or multiple sensors are connected to the same port. (#181) 2018-01-04 21:57:01 -08:00
Peli de Halleux
1e460eef9e
basic reading of battery level (#182) 2018-01-04 21:50:13 -08:00
Sam El-Husseini
5aef77ccc6 Generalizing motorView for both medium and large motor views. Initial work towards synced motor views. Adding sync label for controller motor. 2018-01-04 14:03:50 -08:00
Caitlin Hennessy
39ba9b81af Initial work 2018-01-04 12:20:31 -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
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
Sam El-Husseini
cbe68b3199 Add motor slider control 2017-12-28 13:23:30 -08:00
Sam El-Husseini
f30eac41e9 Persist selected state of controls across simulator restarts 2017-12-28 11:17:18 -08:00
Peli de Halleux
01f7fe633c
Motorworks2 (#141)
* fixing polarity

* allocate motor on motorUsed only

* perform sub-step integration step for better precision
2017-12-28 09:07:57 -08:00
Peli de Halleux
f01370e4fd
Simulator support for motor commands (#137)
* support for "step" functions

* locale files

* enum issue

* fixing decoding of array

* implement clear count

* log unknown commands
2017-12-27 17:05:15 -08:00
Sam El-Husseini
180f32f25c Simulator refactoring to support better resizing of modules and controls 2017-12-22 14:00:23 -08:00
Peli de Halleux
7f5b8aed99 more tweaking of angle encoding 2017-12-19 17:15:53 -08:00
Sam El-Husseini
c989e2fdab
Merge pull request #121 from Microsoft/motorphysics
Motor work
2017-12-19 17:07:15 -08:00
Sam El-Husseini
d3dcb5de85 Use setChangedState for touch and color sensors 2017-12-19 17:01:45 -08:00
Peli de Halleux
9cca35d49f encoding 32bit angle into data buffer 2017-12-19 16:54:44 -08:00
Peli de Halleux
c8ac770983 read motor state into lms_motor 2017-12-19 16:18:17 -08:00
Peli de Halleux
aa031036ee updating motor state in game loop 2017-12-19 16:03:26 -08:00
Sam El-Husseini
1ab7ae6cfa minor PR feedback 2017-12-19 14:57:28 -08:00
Sam El-Husseini
2157af3e63 Using game loop instead of queueAnimationUpdate 2017-12-19 14:20:35 -08:00
Sam El-Husseini
785ddff706 Reverting screen optimization to use SetInterval and didChange 2017-12-19 12:53:12 -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
Sam El-Husseini
6320379d02 Initial sim implementation 2017-12-18 13:04:17 -08:00
Caitlin Hennessy
e591bed6ad Add 'clear screen' block to brick category (#100) 2017-12-15 14:29:10 -08:00
Caitlin Hennessy
a02f364a4c Update function names for consistency 2017-12-15 10:42:44 -08:00
Caitlin Hennessy
d436bd1227 Fix simulator stop() method 2017-12-14 09:41:01 -08:00
Caitlin Hennessy
cb648019bb Progress 2017-12-14 09:17:47 -08:00
Caitlin Hennessy
2d81be3b24 Add 'stopAllSounds' block 2017-12-13 16:31:42 -08:00
Caitlin Hennessy
e87e1767b5 Null check 2017-12-08 11:16:47 -08:00
System Administrator
193f66fd2d Limit sound concurrency to 1 2017-12-07 16:27:28 -08:00
Michal Moskal
ebbbe6e86c Add sounds (only simulator for now) 2017-10-30 17:25:58 +00:00
Michal Moskal
9cdb4081fd Add PNG decompressor in SIM 2017-10-30 14:42:08 +00:00
Michal Moskal
0dfde3b65f Implement text/icon methods in simulator 2017-07-13 22:01:39 +02:00
Sam El-Husseini
5ea8048f0c Limit screen updates to once every 30ms and only if needed. 2017-07-12 12:26:14 +03:00
Sam El-Husseini
8215e8446a Sim screen canvas implementation and _setPixel. 2017-07-12 10:25:17 +03:00
Michal Moskal
ad5d5daee5 Adding local include with constants; dropping LMS enum 2017-07-11 16:18:59 +02:00
Michal Moskal
4f6941e6cf Implement button mmap 2017-07-11 11:40:40 +02:00
Sam El-Husseini
46c18af461 Initial board SVG and basic simulator 2017-07-11 11:15:17 +03:00