I flashed the Master branch, and now I have this option. But still the same.
I still have this worrying warning at startup
WARN [blinkm] I2C init failed.
sf1xx accepts the
start -a command (either on startup with the
SENS_EN_SF1XX parameter set to 5, or manually), but it says
[sf1xx] driver not running if I type
By adding a bit of debug prints, it seems to fail when sending its first I2C command:
transfer returns an error code of
-6, that I failed to trace any further.
I tried to update the API (the command it sends is marked as deprecated, and I had to update the API to make it work in Serial as well), but I have the same problem. (same with trying to change
PX4_I2C_BUS_ONBOARD instead of
I can connect the sensor using an I2C interface on my computer, the sensor works correctly, so it is not a problem on its side.
For the moment I'm stuck with the Serial version, and when I wanted to send back my additions to the official repo, I saw that PX4 does not support the serial version of these sensors anymore (since commit
f0c0b6f6e893a1e7164b4ffc5b60dc16cb62df91), which concerns me furthermore.