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.
We would appreciate any help available.