Hi there
Does anyone out there have a solution for converting the sharp IR sensors (GP2Y0A21YK) to distance - at the moment it is spitting out values exponentially. It seems like there are a lot of different libraries for this in arduino (https://github.com/guillaume-rico/SharpIR), but we cannot make it work in bela. Should I write my own function in c++ (and if so, how?) or is there a way to do it directly reading it from the adc~ in PD?