Add support for MAV_CMD_DO_SET_GLOBAL_ORIGIN (replaces SET_GPS_GLOBAL…#14566
Conversation
…_ORIGIN msg) tries the command and falls back to the message using the existing methods for this sort of thing
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #14566 +/- ##
==========================================
+ Coverage 25.47% 30.57% +5.10%
==========================================
Files 769 787 +18
Lines 65912 67499 +1587
Branches 30495 31271 +776
==========================================
+ Hits 16788 20639 +3851
+ Misses 37285 32936 -4349
- Partials 11839 13924 +2085
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 402 files with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
FYI reviewer, I don't know if the code is good, but this feature is desirable. An implementation will be going into PX4 soon PX4/PX4-Autopilot#24697
Note that for PX4 at least, fixes are going in that will NAK this command if param1,2,3,4 are not sent as NaN. We don't yet enforce that or that the values of param 5,6,7 must be set to valid values (i.e. a NaN for param7) can't be handled sensibly.
Note, the command is currently in develoment.xml.
|
Aside: Running |
…_ORIGIN msg)
tries the command and falls back to the message using the existing methods for this sort of thing
Description
QGC only supports the deprecated message equivalent of this command
Type of Change
Testing
I used ArduPilot on a CUAVv5 . With modern ArduPilot the command succeeds. With modern ArduPiulot with MAV_CMD_DO_SET_GLOBAL_ORIGIN hacked out it correctly falls back to using the message.
Platforms Tested
Flight Stacks Tested
Screenshots
Checklist
Related Issues
n/a
By submitting this pull request, I confirm that my contribution is made under the terms of the project's dual license (Apache 2.0 and GPL v3).