Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] PX4 Mission as relative altitude results in inconsistent execution of missions #22867

Closed
Jaeyoung-Lim opened this issue Mar 11, 2024 · 1 comment

Comments

@Jaeyoung-Lim
Copy link
Member

Jaeyoung-Lim commented Mar 11, 2024

Describe the bug

Currently a waypoint in PX4 consists of the following fields

  • latitude (WGS84)
  • longitude (WGS84)
  • relative_altitude

The problem is that given the same mission file, a mission execution would be different depending on where the vehicle starts. Even worse, when the vehicle is started from the same position, the vehicle will fly different altitudes depending on where the EKF origin is initialized.

This can become even worse when the local origin resets, changing the mission locations depending on where the origin is.

Mavlink also seems to not specify what the altitude field means for the MAV_CMD_DO_REPOSITION

To Reproduce

  1. Fly a mission
  2. Restart the vehicle in a different altitude
  3. Fly another mission

Expected behavior

With a same mission file, the vehicle flies the same sequence of positions.

Screenshot / Media

No response

Flight Log

No flight log

Software Version

Latest main

Flight controller

All

Vehicle type

None

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

No response

Additional context

@Jaeyoung-Lim
Copy link
Member Author

You can define the origin of a mission in absolute altitude. Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant