OpenRoberta / openroberta-lab

The programming environment »Open Roberta Lab« by Fraunhofer IAIS enables children and adolescents to program robots. A variety of different programming blocks are provided to program motors and sensors of the robot. Open Roberta Lab uses an approach of graphical programming so that beginners can seamlessly start coding. As a cloud-based application, the platform can be used without prior installation of specific software but runs in any popular browser, independent of operating system and device.
Apache License 2.0
124 stars 118 forks source link

range check for blockly fields missing (at some places :-) #1614

Open rbudde opened 5 months ago

rbudde commented 5 months ago

the error was detected with the ev3lejosv1 plugin. Use the drive-distance block and write an integer for speed or distance, that is too large, e.g. 3000000000. The simulation works, the compilation of the generated code fails with an error message. Using 3000000000.5 works.

At least for speed and distance the data type and the range of values should be checked. This is a minor problem, but annoying for children. We have been told, that children like to write very large numbers into fields.