How can I fly my pixhawk drone in optitrack?

#1

Dear developers, I encounter some problems when I fly my drone in Optitrack. I use a Raspberry Pi 3 MODEL B+ as the computer on the drone. And I run mavros in the computer. The firmware I download into pixhawk is lpe(px4fmu-v2_lpe) complied from the source which I git clone from the github, https://github.com/PX4/Firmware.git. And I follow this link(https://risc.readthedocs.io/1-indoor-flight.html) to setup the parameters with QGC, what is more, before I run offboard node like(http://dev.px4.io/en/ros/mavros_offboard.html), I aligned the front of my drone with x axis of the optitrack, however, when I run the offboard node, the drone fly up, but it cann’t hover at the expect point, what is more, it Rotate 90 degrees aiming to the East, then it drift or even fly out of control. Could you please tell me how to deal with it?

1 Like