PX4 / PX4-Autopilot

PX4 Autopilot Software
https://px4.io
BSD 3-Clause "New" or "Revised" License
8.17k stars 13.36k forks source link

Problem in position control mode of indoor flight with Vicon-MAVROS system #21939

Open ZifeiJiang opened 1 year ago

ZifeiJiang commented 1 year ago

Describe the bug

Mavros: 1.16.0 PX4: v1.13.2 Ros: Noetic

The problem is shown in the video that when I switch to position mode, the autopilot will give error and auto disarm. I can get stable takeoff and hovering, it is just position control mode. Everything seems okay, only in MAVROS terminal, it's printing ''HP: requesting home position'' https://drive.google.com/file/d/1W1u2F3h7dpoEsb0qAk2B4kebaZeo8vKV/view?usp=sharing

I have checked the ODOMETRY data QGroundcontrol, here is the screen capture.

QGround_odom1

At this point we are not sure what is the root cause of the issue, but it seems to be some issues from PX4 side.

Any help would be appreciated. Thanks!!!

To Reproduce

Takeoff and switch to position control mode. Or directly switch to position control mode as shown in the video.

Expected behavior

Normal position control mode flight

Screenshot / Media

No response

Flight Log

https://logs.px4.io/plot_app?log=65bea070-2d03-461c-8995-4cdcd2dbdd17

Software Version

v1.13.2

Flight controller

Holybro Pixhawk 6C

Vehicle type

None

How are the different components wired up (including port information)

No response

Additional context

No response

DronecodeBot commented 1 year ago

This issue has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there:

https://discuss.px4.io/t/problem-in-position-control-mode-of-indoor-flight-with-vicon-mavros-system/33707/1