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 121 forks source link

Arduino Wifi Rev2: Incompatibility with some libraries (used for arduinos) #470

Open bjost2s opened 4 years ago

bjost2s commented 4 years ago

Describe the bug when e. g. an ultrasonic sensor or an infrared sensor is used in the configuration, the program cannot be compiled and a compiler error is displayed.

TODO

boonto commented 4 years ago

The problematic sensors are RFID and infrared. There is currently an open pull request to the infrared library here which should fix that one once merged and updated. For the RFID sensors the problem seems to have been introduced in the 1.8.5 version of the megaavr core as documented here.

For now we could add a simple (and ugly) workaround with a "not supported" message similar to the say block for EV3 Lejos V0. As those issues will hopefully be fixed soon.

boonto commented 4 years ago

I also split the integration tests in #364 into their own "unowifirev2" folder, which should be removed and replaced with the "ardu" folder once the libraries work.

boonto commented 4 years ago

As a quick workaround I added the "not supported" messages, so the user is notified that the two blocks do not work. No code is generated and compilation will succeed as a result.

boonto commented 4 years ago

The IRremote library was updated to support Uno Wifi Rev2. I have updated our usages and removed the "not supported" messages.