Hello,
I am trying to use a sonar to make the drone more accurately maintain its height during motion.
This sonar gives PWM signal of measurements about 30 cm ~ 400 cm.
So I implemented a driver which reads the pwm using TIMER Interrupts that reads the Pulse width everytime it detects the edge.
I figured it is working correctly.
I also found that there is zranger.c and zranger2.c under deck/drivers folder however could not figure out what is the best way of binding my sensor data to these files.
It looks like it is developed for VL53L1 or VL53L0.
Is there any documents on using zranger or anyone can give me a thought on this issue? Any help would be much appreciated.
Thanks,
Kyu