summaryrefslogtreecommitdiff
path: root/hil-gps-id-yaw-compat.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-10-12 10:26:43 +0000
committerCoprDistGit <infra@openeuler.org>2026-10-12 10:26:43 +0000
commitac424b579d810b965aabc114c1f596933e4a0e9b (patch)
tree0001730846264e8a9cd7b2cd030c66b831dc8c99 /hil-gps-id-yaw-compat.patch
parent25a120882178bc8fd2608f90c248277f52f1a881 (diff)
automatic import of ros-humble-mavros-extras
Diffstat (limited to 'hil-gps-id-yaw-compat.patch')
-rw-r--r--hil-gps-id-yaw-compat.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/hil-gps-id-yaw-compat.patch b/hil-gps-id-yaw-compat.patch
new file mode 100644
index 0000000..dc49eec
--- /dev/null
+++ b/hil-gps-id-yaw-compat.patch
@@ -0,0 +1,17 @@
+--- a/mavros_extras/src/plugins/hil.cpp 2026-10-12 10:25:09.627053991 +0000
++++ b/mavros_extras/src/plugins/hil.cpp 2026-10-12 10:25:09.636054018 +0000
+@@ -240,8 +240,12 @@
+ gps.vd = req->vd;
+ gps.cog = req->cog;
+ gps.satellites_visible = req->satellites_visible;
+- gps.id = req->id;
+- gps.yaw = req->yaw;
++ // id and yaw fields were added to HilGPS.msg in mavros 2.16.0;
++ // the ROS SIG repo ships mavros_msgs 2.14.0 which lacks these fields.
++ // Leave gps.id/gps.yaw at default (0) - HIL_GPS still sent, just
++ // without optional id/yaw from the ROS message.
++ // gps.id = req->id;
++ // gps.yaw = req->yaw;
+ // [[[end]]] (sum: 7jKMh3Vikx)
+
+ uas->send_message(gps);