Dmitriy Antipov
af263c8183
change-gray-ti-brown ( #1021 )
...
A typo that hadn't been noticed before. Does not affect the operation of the simulator.
2023-05-06 09:47:27 -07:00
Dmitriy Antipov
fba924d125
Add a none option to the simulator for the color sensor and colorEnumPicker extension ( #1018 )
...
* Update colorGrid.ts
* Update ns.ts
Added option to select emptiness (nothing) for the colorEnumPicker block.
* set-new-names-for-color-cells
Set new names for colored cells that pops up when hovering over an element. So the user will understand the color.
* Update sim/visuals/controls/colorGrid.ts
Co-authored-by: Joey Wunderlich <jwunderl@users.noreply.github.com>
---------
Co-authored-by: Joey Wunderlich <jwunderl@users.noreply.github.com>
2023-05-05 16:04:13 -07:00
Dmitriy Antipov
9be35a1034
Added support for Reflection Raw mode for the color sensor to the simulator ( #1017 )
...
* redesigned-code-to-support-ref-raw
Code that adds reflection raw support for the color sensor. The range of values for this is from 0 to 1023, because analog to digital converter is 10 bits. In fact, the color sensor gives values of about 400 - 700, but I decided to leave the range, which could theoretically be. For other cases (reflections and ambient lighting), the range remains from 0 to 100. The average value when setting the mode in the simulator is displayed as 512, for other modes 50%.
* block-description-update
Block description update, as it did not take into account the mode of raw reflection values.
2023-05-05 15:54:56 -07:00
Dmitriy Antipov
cabcb048e3
Troubleshooting updates v1.4.25 ( #1012 )
...
* sim_fix
ES version update
* fieldeditors-es-upgrade-to-es2017
Update es to fix issue with fieldeditors.
* editor-es-upgrade-to-es2017
Update es that fixes an issue with the editor.
* editor-download-dialog-fix
Solving a download error that arose due to problems with the buttons in the dialog box.
* return_field_motors
We return the fieldmotors field, because it is necessary about the choice of types of motors: medium, large, one or two.
* update-fields-for-motor-blocks
Set the blocks to the fieldmotors field. Change the name of the blocks for the motors.
* enable-debugger
Instead of the slowmo mode, which was before, a debugger was added, in which slowmo is present.
* fix-field-music
It turned out to update the fieldmusic menu. The menu is now displayed in the correct position.
* Update field_music.ts
* fix-field-brickbutton
Fixed issue with button select menu position from ev3 brick.
* Update dialogs.tsx
* Update field_motors.ts
Repartition of Label for fieldmotos, now it's more readable, it's better.
* motors-new-icon
Created new icons for motors for dropdown image.
* remove-ai-files-for-motors-icon
Remove ai image files for motors
2023-04-25 12:06:54 -07:00
Richard Knoll
bef4ebac43
Updating npm dependencies and getting the build to work ( #1001 )
...
* Updating npm dependencies and getting the build to work
* update node in github actions to 14.x
2021-09-22 15:51:32 -07:00
Galen Nickel
faae7133f5
Word changes to reduce policheck hits ( #992 )
2020-11-06 13:09:53 -08:00
Maciej Mroziński
a157943bf7
Read default volume from device settings at start ( #987 )
2020-09-09 12:06:33 -07:00
Richard Knoll
1db61720fc
Adding config file for service worker ( #982 )
2020-03-27 15:16:56 -07:00
Peli de Halleux
2cd2950496
polarity in synched motor ( #945 )
...
* account for polarity
* more comments
* handle dual motor in runtime
* invert steer
* don't use firmware polarity
2019-10-10 07:44:53 -07:00
Michał Moskal
c5cec3a6ba
update to pxt 5 and pxt-common-packages 6 ( #934 )
...
* bump pxt
* fix build issues
* Auto-gen of projects/summary
* removing feild editors moved to pxt
* various typing fixes
* more typing fixes
* fixing various typing issues
* Start on integration of new pxt
* serial number fixes
* gc-ify MMap object
* Re-build generated files
* fix console listeners
* clear lf() warnings
* More generated files
* also auto-generated
* Compilation fixes
* fix merge
* mostly fixing blocks
* fix sim
* fix field motors
* enable a few features
* moving to tsx
* try to fix edtiro compilation
* more defs
* removing commands
* removing extra $
* fix blockly warning
* hiding images
* enabling more pxt features
* hide images
* setup autorun
* add lock on target_reset
* update deps
* return trylock result
* updated pxt
* rename video section
* add alpha channel
* upgraded pxt
* bump pxt/version
* removed alpha ref
* var ceanup
* don't do major bump
2019-10-08 21:57:55 -07:00
Peli de Halleux
374bbb8304
Drift-compensated angle in gyro ( #931 )
...
* compute angle based on undrifted rate
* add is calibrating function
* fix integrator
* added example
* docs
* poll faster
2019-10-01 10:11:58 -07:00
Peli de Halleux
80b9c715b2
Gyro tutorials ( #930 )
...
* gyro tutorials
* tutorials
* fix gyro simulator
* images
* updated image
* fix svg errors
2019-09-30 22:43:50 -07:00
Peli de Halleux
56bbcde299
Support for smooth acceleration/deceleration in run ( #900 )
...
* removed logging
* removing more logging
* always use step for single/multiple motors
* refactored schedule
* account for accel ramp up and down
* added default acc/decel
* rounding speed/angle
* remove hack
* use acceleration time in run too
* handle missing case
* adding notes on motors
* adding sample
* fixed ramp simulation
* clear defaults
* some docs, more later
* adding basic examples
* remove debug msg
* clean json
* added move schedule
* docs
* basic docs
2019-09-02 20:57:23 -07:00
Peli de Halleux
277c9903bb
Tank fixes ( #892 )
...
* fixing turnration computation
* updated tank computation
* fix rendering glitch
* restore tank computation
* rounding errors
2019-08-30 05:40:51 -07:00
Peli de Halleux
a302bbfc2b
Single tank ( #891 )
...
* add note about dual blocks
* fix simulator to match hardware
* updated wording
2019-08-29 13:11:01 -07:00
Max
db9b6a995b
IIC added ( #870 )
...
* IIC added
* Fixed bug with not detecting device
2019-08-27 17:57:21 -07:00
Peli de Halleux
21025b5f83
better handling end of integration step
2018-06-20 22:03:48 -07:00
Peli de Halleux
e05e147d6a
fix for motor driver ( #716 )
2018-06-20 16:45:02 -07:00
Sam El-Husseini
7974f36c31
Fix tank and steer blocks in the simulator, making them ignore polarity just like labview ( #713 )
2018-06-20 16:10:59 -07:00
Sam El-Husseini
f0df0222c0
Fixes for High contrast mode as per lego design. Most changes are in PXT. Adding high contrast theme in the simulator ( #564 )
2018-05-04 10:36:48 -07:00
Sam El-Husseini
30a67b729d
Align all modules to a minimum height. ( #563 )
2018-05-03 15:02:13 -07:00
Sam El-Husseini
e4c3fa0e57
Make the light around the color sensor appear bright and not a reflection of the current color detected. ( #561 )
2018-05-03 08:39:06 -07:00
Peli de Halleux
7e58b9b699
Motor angle ( #559 )
...
* control angle with slider
* called changed state
* remove logging
2018-05-02 22:04:29 -07:00
Sam El-Husseini
b323929f03
Fix color grid on IE. ( #556 )
2018-05-02 16:23:53 -07:00
Sam El-Husseini
84990d66a9
Update simulator as per latest lego UI design for sensors. Fix full screen layout issues. ( #554 )
2018-05-02 13:58:59 -07:00
Sam El-Husseini
b69af383a6
Better mouse event handling ( #552 )
...
* Use learnings from touch events in Blockly and apply to the Ev3 sim. Register move and up events on the document rather than the individual element allowing users greater flexibility where they move their mouse once it's down.
* Add mouse leave events
2018-05-02 13:54:06 -07:00
Sam El-Husseini
ab85cf2d0a
Remove jquery typings ( #547 )
2018-04-30 16:29:23 -04:00
Peli de Halleux
7c3d499109
fix dmesg duplicate definition issue ( #542 )
2018-04-25 16:45:26 -04:00
Michał Moskal
8ed79e7133
Swap X/y in images ( #528 )
...
* Swap X/Y in image encoding
* Fix PNG decoder
* Now really fix png
* reducing deps
* moving png.cpp into ev3
* bumped pxt
* updated shims
* fixing c++ compilation
* updated shims
* Fix pixel order
* update pxt
* Fix C++ image decoding
* Add expanded PNG images
* Generate E1 format images (in libs/ev3 run 'pxt buildsprites images')
* Go back to white background
* Remove PNG support
2018-04-19 12:08:16 -07:00
Sam El-Husseini
83700b4e14
Music field editor ( #529 )
...
Music fiele editor
2018-04-17 22:16:19 -07:00
Sam El-Husseini
3c96cfcc0a
Change to always show the sensor controls. ( #526 )
2018-04-16 11:50:12 -07:00
Sam El-Husseini
e43837d358
Hide or remove logging ( #523 )
...
* Hide or remove logging
* Remote dmsg
2018-04-15 19:36:10 -07:00
Sam El-Husseini
d0331720b4
Fix slider gradient bug when loading components from a previous sim run. ( #514 )
2018-04-13 15:52:38 -07:00
Sam El-Husseini
3e534f7329
Update state of the landscape brick view as well to be consistent with the portrait view (main) ( #508 )
2018-04-13 14:01:37 -07:00
Sam El-Husseini
7f8499bb5f
Always show the motor value regardless if it's 0. ( #509 )
2018-04-13 14:01:25 -07:00
Peli de Halleux
4627328bcd
Output set Type fix ( #487 )
...
* properly send outputsettype info
* fix simulator
* bump pxt
* typo in docs
2018-04-11 08:48:07 -06:00
Sam El-Husseini
379a6a26be
Add large and medium motor speed labels ( #480 )
...
* Add large and medium motor speed labels
* Support dual motor labels.
2018-04-10 11:50:58 -07:00
Sam El-Husseini
8398c8efdb
Dispose correctly of gradient definitions in the control. Attach to port number not id.
2018-04-10 11:49:15 -07:00
Sam El-Husseini
f41310e879
Update large motor holes to be transparent (like the real thing) ( #476 )
2018-04-09 17:27:57 -07:00
Sam El-Husseini
6d29cd40cb
Make both the simulator color picker and the Blockly editor color picker match in shape and the colors as well as order of colors. ( #474 )
2018-04-09 16:48:57 -07:00
Sam El-Husseini
b8286ab0b9
Medium motor resizing ( #472 )
2018-04-09 16:24:01 -07:00
Sam El-Husseini
ac1380ec92
Better screen zoom that makes use of the full width of the simulator. ( #471 )
2018-04-09 16:21:41 -07:00
Sam El-Husseini
d837a515dc
Fix brick color not changing to the color red. Fixes 453 ( #456 )
2018-04-08 03:35:02 -06:00
Sam El-Husseini
0dc2548d0b
Optimize simulator for light mode. ( #379 )
...
* Optimize simulator for light mode.
* Add user-select none.
2018-03-28 13:36:52 -07:00
Peli de Halleux
06f66571cf
Upgrading to pxt 3.5.4 ( #367 )
...
* pxt/common updates
* added game lib
* removing gamelib
2018-03-16 14:32:11 -07:00
Sam El-Husseini
49dc3b0a75
Fix resizing of screen canvas to ensure it fits within the area in the ev3 svg ( #365 )
2018-03-08 14:34:27 -08:00
Peli de Halleux
d4b3ebc2e4
Missing updatestats ( #351 )
...
* aligning screeninit with pxt32
* remove shim
* missing shim
* missing shim
2018-02-26 21:25:04 -08:00
Michał Moskal
c2d26a8418
Integrate screen APIs from common packages ( #343 )
...
* starting screen api intergration
* Further image integration
* Aligning with new screen apis
* Build fixes
* Adjust to common screen state
* Fix unpackPNG
* Add game library
* Optimize screen rendering
* bumping common packages
* updated shims
* moving images into ev3
* upgrading to common packages
* added try/use
* cap
* fixed tryp age
2018-02-26 15:16:17 -08:00
Sam El-Husseini
a2218d9ba5
Fix canvas (screen) user select options to disable selection in Safari, Mozilla, etc. ( #348 )
2018-02-26 13:58:51 -08:00
Caitlin Hennessy
22ce840181
Widget fixes ( #316 )
...
* Use bBox in motor slider
* Use setRate instead of setAngle in gyro widget
2018-02-08 16:55:23 -08:00