Mobsya / blockly

The web-based visual programming editor.
https://developers.google.com/blockly/
Apache License 2.0
1 stars 9 forks source link

add visualisation of sensor and variable in Thymio blockly #17

Open mbonani opened 6 years ago

mbonani commented 6 years ago

could be very similar if we implement that: https://github.com/aseba-community/aseba/issues/397

stephanemagnenat commented 6 years ago

This and aseba-community/aseba#397 would be much easier if all sensors and actuators were accessible by variables (in contrast to native functions) in the Thymio VM. One should keep this in mind for the next robot.

mbonani commented 6 years ago

Ok, but I don't think that the most important is to visualise the state of the leds. And for me actuators like sound have no sense with variables. And in a sense there are so many led in Thymio that having them grouped in functions simplify code and save memory.

stephanemagnenat commented 6 years ago

Ok, but I don't think that the most important is to visualise the state of the leds.

It would be great to have a live preview of the robot's color in the color blocks.

And in a sense there are so many led in Thymio that having them grouped in functions simplify code and save memory.

I firmly believe that the improvement in discoverability would offset the additional memory cost. And we talk about 60-70 bytes. Moreover, it would make the access to sensors and actuators more consistent which would allow further programming language possibilities.