iNavFlight/inav-rangefinder

2.1.0-RC3 RANGEFINDER=UNAVAILABLE

Robotto opened this issue · 11 comments

Does not seem to work on.

INAV/KAKUTEF4V2 2.1.0 Feb 10 2019 / 16:13:09 (0d3d0ff30)

Is there a specific firmware where this is confirmed working?

ohsnap, i didn't compile the firmware with the right config.

for future reference, I added the following to /src/main/target/KAKUTEF4/target.h:

#define USE_RANGEFINDER
#define RANGEFINDER_I2C_BUS     BUS_I2C1
#define USE_RANGEFINDER_HCSR04_I2C
#define RANGEFINDER_HCSR04_I2C_I2C_INSTANCE (I2C_DEVICE)

and the following to /src/main/target/KAKUTEF4/target.mk:

drivers/rangefinder/rangefinder_hcsr04.c \
drivers/rangefinder/rangefinder_hcsr04_i2c.c \

@Robotto where do you add that?

@Robotto where do you add that?

Here: #4 (comment)

I Kown but where do you at the
/src/main/target/KAKUTEF4/target.h and the /src/main/target/KAKUTEF4/target.mk
?

thanks for helping but I have a problem
image
do you have an answer?

no that won't work