"Hi Parth,
As I was trying to connect the UT390B laser rangefinder to the APM, I tried the following code but it does not work:
#include <AP_Common.h>
#include <AP_Math.h>#include <AP_Param.h>#include <AP_Progmem.h>
#include <AP_HAL.h>#include…"
I have successfully connected the UART2 TX/RX to the UT390B laser rangefinder and sent commands to it in Arduino. But it seems misunderstood the command in Ardupilot due to baud rate or some other settings.In Ardupilot code, I have initialized the…
"Thanks for your explanation. Now I understand.
In fact, you have suggested me one good way to check if the drone starts leaving the ground. It can be done by monitoring the yaw."
"You should monitor the yaw value in the while loop to see if it is changed or not. If it is not changed, may be another value for throttle and/or yaw PWM should be set."