You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: change command message to vector from named force-torque values
* Initial changes to mavlink and other message handling
* Updated mixer.h and mixer.cpp to have mixers be 10 by 10
* Added params for new larger mixers
* Fixed array initialization, created new mixers, made all files look for u[i] instead of fx, etc
* cleanup: remove comments and consolidate with some for loops
* feat: switch default ordering of command vector to be [forces, torques] to match mixers
* fix bugs detected by copilot
---------
Co-authored-by: M1tchM355 <mitchell.messerly@gmail.com>
Copy file name to clipboardExpand all lines: comms/mavlink/rosflight.xml
+24-17Lines changed: 24 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -53,24 +53,36 @@ See the generating_v1.0_instructions.txt to regenerate mavlink headers based off
53
53
<entryvalue="0x00"name="IGNORE_NONE">
54
54
<description>Convenience value for specifying no fields should be ignored</description>
55
55
</entry>
56
-
<entryvalue="0x01"name="IGNORE_VALUE1">
56
+
<entryvalue="0x01"name="IGNORE_VALUE0">
57
+
<description>Field value0 should be ignored</description>
58
+
</entry>
59
+
<entryvalue="0x02"name="IGNORE_VALUE1">
57
60
<description>Field value1 should be ignored</description>
58
61
</entry>
59
-
<entryvalue="0x02"name="IGNORE_VALUE2">
62
+
<entryvalue="0x04"name="IGNORE_VALUE2">
60
63
<description>Field value2 should be ignored</description>
61
64
</entry>
62
-
<entryvalue="0x04"name="IGNORE_VALUE3">
65
+
<entryvalue="0x08"name="IGNORE_VALUE3">
63
66
<description>Field value3 should be ignored</description>
64
67
</entry>
65
-
<entryvalue="0x08"name="IGNORE_VALUE4">
66
-
<description>Field value4 should be ignored</description>
67
-
</entry>
68
-
<entryvalue="0x16"name="IGNORE_VALUE5">
68
+
<entryvalue="0x10"name="IGNORE_VALUE4">
69
+
<description>Field value4 should be ignored</description>
70
+
</entry>
71
+
<entryvalue="0x20"name="IGNORE_VALUE5">
69
72
<description>Field value5 should be ignored</description>
70
73
</entry>
71
-
<entryvalue="0x32"name="IGNORE_VALUE6">
74
+
<entryvalue="0x40"name="IGNORE_VALUE6">
72
75
<description>Field value6 should be ignored</description>
73
76
</entry>
77
+
<entryvalue="0x80"name="IGNORE_VALUE7">
78
+
<description>Field value7 should be ignored</description>
79
+
</entry>
80
+
<entryvalue="0x100"name="IGNORE_VALUE8">
81
+
<description>Field value8 should be ignored</description>
82
+
</entry>
83
+
<entryvalue="0x200"name="IGNORE_VALUE9">
84
+
<description>Field value9 should be ignored</description>
85
+
</entry>
74
86
</enum>
75
87
<enumname="ROSFLIGHT_ERROR_CODE">
76
88
<entryvalue="0x00"name="ROSFLIGHT_ERROR_NONE"/>
@@ -196,15 +208,10 @@ See the generating_v1.0_instructions.txt to regenerate mavlink headers based off
196
208
197
209
<messages>
198
210
<messageid="180"name="OFFBOARD_CONTROL">
199
-
<description>Offboard Control (6-DOF)</description>
211
+
<description>Offboard Control (10-DOF)</description>
200
212
<fieldtype="uint8_t"name="mode"enum="OFFBOARD_CONTROL_MODE">Offboard control mode, see OFFBOARD_CONTROL_MODE</field>
201
-
<fieldtype="uint8_t"name="ignore"enum="OFFBOARD_CONTROL_IGNORE">Bitfield specifying which fields should be ignored, see OFFBOARD_CONTROL_IGNORE</field>
202
-
<fieldtype="float"name="Qx">Qx control channel interpreted according to mode</field>
203
-
<fieldtype="float"name="Qy">Qy control channel, interpreted according to mode</field>
204
-
<fieldtype="float"name="Qz">Qz control channel, interpreted according to mode</field>
205
-
<fieldtype="float"name="Fx">Fx control channel interpreted according to mode</field>
206
-
<fieldtype="float"name="Fy">Fy control channel, interpreted according to mode</field>
207
-
<fieldtype="float"name="Fz">Fz control channel, interpreted according to mode</field>
213
+
<fieldtype="uint16_t"name="ignore"enum="OFFBOARD_CONTROL_IGNORE">Bitfield specifying which fields should be ignored, see OFFBOARD_CONTROL_IGNORE</field>
214
+
<fieldtype="float[10]"name="u">u control channel interpreted according to mode</field>
208
215
</message>
209
216
<messageid="181"name="SMALL_IMU">
210
217
<description>IMU data</description>
@@ -313,7 +320,7 @@ See the generating_v1.0_instructions.txt to regenerate mavlink headers based off
313
320
<fieldtype="float"name="battery_voltage"/> <!-- V -->
314
321
<fieldtype="float"name="battery_current"/> <!-- A -->
315
322
</message>
316
-
<!-- From Common -->
323
+
<!-- From Common -->
317
324
<messageid="0"name="HEARTBEAT">
318
325
<description>The heartbeat message shows that a system is present and responding. The type of the MAV and Autopilot hardware allow the receiving system to treat further messages from this system appropriate (e.g. by laying out the user interface based on the autopilot).</description>
319
326
<fieldtype="uint8_t"name="type">Type of the MAV (quadrotor, helicopter, etc., up to 15 types, defined in MAV_TYPE ENUM)</field>
0 commit comments