Skip to content

Hack/mavlink set speed#1

Open
ryochiji wants to merge 2 commits into
Plane-4.5from
hack/mavlink-set-speed
Open

Hack/mavlink set speed#1
ryochiji wants to merge 2 commits into
Plane-4.5from
hack/mavlink-set-speed

Conversation

@ryochiji

@ryochiji ryochiji commented Jan 28, 2025

Copy link
Copy Markdown
Owner

Attempted hack at adding support for setting velocities using MavLink SET_POSITION_TARGET_LOCAL_NED message on QuadPlanes. (Related to this issue.)

Approach

  • updated ArduPlane/GCS_Mavlink.cpp file to parse the message (largely based on the copter code)
  • add a run() method to ArduPlane/mode_guided.cpp (based largely on ModeQLoiter::run() and other bits of code)

Testing
Tested on SITL by sending MavLink messages with dronekit. The test script tries to fly the drone in a "box" by flying in each cardinal direction in turn. Verified the script will fly a Copter as expected.

Issues

  • Speed drops to almost 0 after ~3 seconds and then drone seems to either continue in straight line or meander
  • North/South seems off by 20-30 degrees or more (see groundtrack in pic below):
Screenshot 2025-01-28 at 10 03 36 AM

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant