We are running the offb_node.cpp found here but our quadcopter iis not behaving as expected. Here are the flight logs. And here is a video.
As you can see it doesn’t take off and immediately starts drifting forward. While looking at the flight logs we noticed four main issues:
Looking at the logs you can see that the altitude setpoint is set to zero.
We noticed that the barometer altitude is at 270 m, do we need this to be enabled?
Additionally, the vehicle keeps switching back and forth between Offboard mode and AutoLand for reasons that we cannot understand.
Finally, it seems that the distance sensor is not working although we were able to see fairly accurate distance measurements displayed with QGroundControl analyzer, so we don’t understand why the log shows such bad estimate.
Hello, guys! I have a similar problem. I am running the mavros offboard example on my quadcopter, with z=0.6. I am also using motion capture, but my drone doesn’t really take off, it just arms and moves to the side, not up. Here is the log file. Please check it out and help me understand what am I doing wrong. I am struggling with this for quite some time now.