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.
In general we have decided not to add any more code to NEPODefs.h, desired place for new functions is inline, see #278
The calculation of max in the function reduces the range from the output, 0 (no noise) can never be reached.
-> We want to calculate the peak amplitude and convert it in percent, see e.g. here, please improve the function, remove it from NEPODefs.h and create it like in #278 proposed
Describe the bug Sound sensor returns simple analog read instead of the sound loudness.
To Reproduce Create a program as in the screenshot and open the source code view
Expected behavior Sensor returns the maximum absolute value from one wave period converted to % (0-100)
Screenshots
Additional context see implementation for the sound sensor for Calliope