I’m attempting to send external precise position estimation to a Pixhawk 2.1 running PX4 v1.7.3 in an indoor environment without GPS.
I’m trying to send local position information using an onboard companion computer that includes x,y,z and yaw. Local position is calculated using Ultra-Wideband system with 6 anchors and a tag installed on the drone.
I configured PX4 as follow:
- SYS_MC_EST_GROUP to LPE
- LPE_FUSION to accept vision information and disabling GPS
- SYS_COMPANION to 57600
I would like to do this using Mavlink C library or DroneCore. I started using offboard_velocity.cpp example but drone had a strage behaviour.
After the connection is established using Telem2, log shows a FollowMe configuration message error about altitude setpoint (I’m using default params).
Then, I set the offboard mode, arm, takeoff and landing and it works.
My question is: how to set target local position NED using DroneCore? Is it implemented in the stable release?
Could you give an example?