Is it possible to send the boolean return values of the I2C function calls via the log framework to the client? Can't find the right datatype to create a LOG_GROUP.arnaud wrote:This sounds like it is crashing somewhere when reading the sensor. It could help to look at the I2C lines to see if there is any communication going on. Also lighting up an LED just before reading a range value and lighting off just after will tell you if it crashes in this part of the code or somewhere else. Also a random though: try to increase the stack size of the task that runs your code. Having a stack overflow there it typically the kind of thing that would crash the copter.
Your help is very appreciated, thank you.