Updated 4.0.0 Release Notes (markdown)
[inav.wiki.git] / MSP-Navigation-Messages.md
blob8b5c0ccc198eca1e5b82985003bd4893f859acae
1 # MSP NAV Protocol and Types
3 This document describes MSP navigation messages, their usage and implementation details. Both **inav** and **multiwii** implementations (which are largely the same) are documented in this article.
5 Note that all binary values are little endian (MSP standard).
7 # Implementation and versions
9 This document should match the inav 1.2 (and later) and Multiwii 2.5 flight controller firmware. 
11 Prior to inav 3.0, the [inav-configurator](https://github.com/iNavFlight/inav-configurator) supported a subset of  MSP Waypoint (WP) types; for inav 3.0 it supports all WP types. In addition to the inav configurator, the messages described are implemented in [mwp](https://github.com/stronnag/mwptools) (Linux / FreeBSD / Windows (Cygwin,WSL)), ezgui (Android) mission planners / ground station applications and "drone helper" (Windows 10) mission planner. mwp and ezgui support both iNav and Multiwii; WinGui is a legacy Windows / Multiwii only mission planner that also supports this message set. 
13 # WayPoint and Action Attributes
15 Each  waypoint has a type and takes a number of parameters, as below. These are used in the MSP_WP message. The final column indicated if the message is implemented for inav 1.2 (and later).
17 | Value | Enum | P1 | P2 | P3 | Lat | Lon | Alt | iNav |
18 | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- |
19 | 1 | WAYPOINT      | Speed (cm/s) [1] (exception [6]) | | Altitude Mode [7] | ✔ | ✔ | ✔ | ✔ |
20 | 2 | POSHOLD_UNLIM |          | | | ✔ | ✔ | ✔ | [5] |
21 | 3 | POSHOLD_TIME  | Wait time (seconds) | (speed (cm/s)[1]) | Altitude Mode [7] | ✔ | ✔ | ✔ | ✔ 2.5 and later |
22 | 4 | RTH [4]       | Land if non-zero | | |    |    | ✔ [2] | ✔ |
23 | 5 | SET_POI [3]   |          | | | ✔ | ✔ | | ✔ 2.6 and later |
24 | 6 | JUMP          | Target WP#      | No. of repeats (-1 = forever) | | | | | ✔ 2.5 and later |
25 | 7 | SET_HEAD [3]  | Heading  (degrees) | | | | | | ✔ 2.6 and later |
26 | 8 | LAND | Speed (cm/s) [1] | Elevation Adjustment (m) [8] | Altitude Mode [7] | ✔ | ✔ | ✔ | ✔ 2.5 and later |
28 1. Leg speed is an inav extension (for multi-rotors only). It is the speed on the leg terminated by the WP (so the speed for WP2 is used for the leg WP1 -> WP2) (cm/s).
29 2. Not used by inav
30 3. Once SET_HEAD or SET_POI is invoked, it remains active until cleared by SET_HEAD with a P1 value of -1.
31 4. If a mission contains multiple RTH stanzas, then for MultiWii, the mission terminates at the first RTH. For inav, prior to c. 2.6, the mission would continue if RTH-LAND is not set, and valid waypoints follow.
32 5. If the final entry in a mission is a WAYPOINT, the inav treats it as POSHOLD_UNLIM.
33 6. For inav's "follow-me" mode (WP#255, POSHOLD engaged), P1 may be used to send an orientation heading (0-359 degrees).
34 7. inav 3.0 and later, P3 defines the altitude mode. 0 (default, legacy) = Relative to Home, 1 = Absolute (AMSL). Ignored for releases prior to 3.0.
35 8. inav 3.0 and later, P2 defines the ground elevation (in metres) for the LAND WP. If the altitude mode is absolute, this is also absolute; for relative altitude, then it is the difference between the assumed home location and the LAND WP. Ignored for releases prior to 3.0.
37 ## Geospatial Units 
39 | Field | XML Mission File | MSP_WP binary message |
40 | ----- | ---------------- | --------------------- |
41 | Latitude, Longitude | Decimal degrees, WGS84 | Integer, WGS84 Degrees * 1E7 |
42 | Altitude | Integer Metres | Centimetres |
44 Note that inav uses the GPS' "above mean sea level" (not "above WGS84 ellipsoid") elevation for navigation. Be aware of this distinction when using absolute  rather than relative (to home) mission altitudes. 
46 ## FlyBy Home Waypoints
48 From inav 4.0, "FlyBy Home" (FBH) waypoints are supported for WAYPOINT, POSHOLD_TIME and LAND. These WPs are designated by either (or both) of
49 * The latitude and longitude is zero; or
50 * The `flag` field is set to 0x48 (72d, 'H')
52 FBH waypoints have no defined location until the mission is executed, when they assume the location of the **arming** home location (not affected by `safehome`). This is ephemeral and is reset on each arming. The location uploaded to the FC is irrelevant where `flag == 0x48`; in such cases a subsequent download from the FC will return the original WP latitude and longitude, not the home used for a particular instance. 
54 ## Annotated Example
55 The following example, using the [MW XML](#xml-mission-files) (inav configurator, mwp, ez-gui) format, illustrates the WAYPOINT, JUMP, POSHOLD_TIME and LAND types:
56 ![Complex Mission](images/eg_complex_mission.png)
57 ```
58 <?xml version="1.0" encoding="utf-8"?>
59 <mission>
60   <missionitem no="1" action="WAYPOINT" lat="54.353319318038153" lon="-4.5179273723848077" alt="35" parameter1="0" parameter2="0" parameter3="0"></missionitem>
61   <missionitem no="2" action="WAYPOINT" lat="54.353572350395972" lon="-4.5193913118652516" alt="35" parameter1="0" parameter2="0" parameter3="0"></missionitem>
62   <missionitem no="3" action="WAYPOINT" lat="54.354454163955907" lon="-4.5196617811150759" alt="50" parameter1="0" parameter2="0" parameter3="0"></missionitem>
63   <missionitem no="4" action="WAYPOINT" lat="54.354657830207479" lon="-4.5186895986330455" alt="50" parameter1="0" parameter2="0" parameter3="0"></missionitem>
64   <missionitem no="5" action="JUMP" lat="0" lon="0" alt="0" parameter1="2" parameter2="2" parameter3="0"></missionitem>
65   <missionitem no="6" action="WAYPOINT" lat="54.354668848061756" lon="-4.5176009696657218" alt="35" parameter1="0" parameter2="0" parameter3="0"></missionitem>
66   <missionitem no="7" action="WAYPOINT" lat="54.354122567317191" lon="-4.5172673708680122" alt="35" parameter1="0" parameter2="0" parameter3="0"></missionitem>
67   <missionitem no="8" action="JUMP" lat="0" lon="0" alt="0" parameter1="1" parameter2="1" parameter3="0"></missionitem>
68   <missionitem no="9" action="POSHOLD_TIME" lat="54.353138333126651" lon="-4.5190405596657968" alt="35" parameter1="45" parameter2="0" parameter3="0"></missionitem>
69   <missionitem no="10" action="WAYPOINT" lat="54.354847022143616" lon="-4.518210497615712" alt="35" parameter1="0" parameter2="0" parameter3="0"></missionitem>
70   <missionitem no="11" action="LAND" lat="54.354052100964488" lon="-4.5178091504726012" alt="60" parameter1="0" parameter2="0" parameter3="0"></missionitem>
71 </mission>
72 ```
73 Mission points 5 and 8 are JUMP; they have no location as they affect the current location (the previous WP) and cause an action.
74 * After WP 4 (JUMP at 5), the vehicle will proceed to WP 2 (`parameter1 = 2`); it will do this twice (`parameter2 = 2`). Then it will proceed to WP 6.
75 * After WP 7 (JUMP at 8), the vehicle will proceed to WP 1 (`parameter1 = 1`); it will do this once (`parameter2 = 1`). Then it will proceed to WP 9.
76 * The second JUMP (8) will cause the first jump (5) to be re-executed.
78 Mission point 9 is POSHOLD_TIME. The vehicle will loiter for 45 seconds (`parameter1 = 45`) at the WP9 location. A multi-rotor will hold a steady position, fixed wing will fly in a circle as defined by the CLI parameter `nav_fw_loiter_radius`.
80 Mission point 11 is LAND. The vehicle will land (unconditionally, regardless of `nav_rth_allow_landing`) at the given location. The CLI setting `nav_disarm_on_landing` is honoured.
82 There is a video animation of the flight in [a short youtube video](https://youtu.be/MTA42WUOjUY) and a [more detailed youtube video tutorial](https://www.youtube.com/watch?v=w6M-v4qM5Yg). The mission is executed as:
84 | WP / next wp | Course |  Dist |  Total |
85 | ------------ | ------ | ----- | ------ |
86 | WP01 - WP02 | 287° |   99m |    99m |
87 | WP02 - WP03 | 350° |  100m |   198m |
88 | WP03 - WP04 | 070° |   67m |   265m |
89 | WP04 (J05) WP02 | 201° |  129m |   394m |
90 | WP02 - WP03 | 350° |  100m |   494m |
91 | WP03 - WP04 | 070° |   67m |   561m |
92 | WP04 (J05) WP02 | 201° |  129m |   690m |
93 | WP02 - WP03 | 350° |  100m |   789m |
94 | WP03 - WP04 | 070° |   67m |   856m |
95 | WP04 - WP06 | 089° |   71m |   927m |
96 | WP06 - WP07 | 160° |   64m |   991m |
97 | WP07 (J08) WP01 | 206° |   99m |  1090m |
98 | WP01 - WP02 | 287° |   99m |  1189m |
99 | WP02 - WP03 | 350° |  100m |  1288m |
100 | WP03 - WP04 | 070° |   67m |  1355m |
101 | WP04 (J05) WP02 | 201° |  129m |  1484m |
102 | WP02 - WP03 | 350° |  100m |  1584m |
103 | WP03 - WP04 | 070° |   67m |  1651m |
104 | WP04 (J05) WP02 | 201° |  129m |  1779m |
105 | WP02 - WP03 | 350° |  100m |  1879m |
106 | WP03 - WP04 | 070° |   67m |  1946m |
107 | WP04 - WP06 | 089° |   71m |  2016m |
108 | WP06 - WP07 | 160° |   64m |  2081m |
109 | WP07 - PH09 | 226° |  159m |  2239m |
110 | PH09 - WP10 | 016° |  197m |  2437m |
111 | WP10 - WP11 | 164° |   92m |  2529m |
113 ## Modifier actions
114 A number of the WP types (JUMP, SET_POI, SET_HEAD, RTH) act as modifiers to the current location (i.e. the previous WP), as follows:
116 ### JUMP
117 JUMP facilitates adding loop to mission, the first parameter is the WP to jump to, and the second parameter is the number of times the JUMP is executed. A parameter2 value of `-1` means JUMP indefinitely (i.e. the pilot must eventually manually abort the mission and take control). For MultiWii, the jump target (parameter 1) must be prior to the jump WP, for inav, forward and backward jumps are permitted. In general, forward jumps are less useful and will usually need a backward jump to be useful.
119 inav validates JUMP WPs prior to arming; the following conditions will cause a "Navigation Unsafe" [arming blocker](https://github.com/iNavFlight/inav/wiki/%22Something%22-is-disabled----Reasons/_edit).
121 * First item can't be JUMP (can't calculate 1st WP distance, impossible for backward jumps)
122 * Can't jump to immediately adjacent WPs (pointless)
123 * Can't jump beyond WP list (undefined behaviour)
124 * Can only jump to geo-referenced WPs (WAYPOINT, POSHOLD_TIME, LAND) (otherwise, undefined behaviour)
126 In the following example of a forward jump, WP #5 (POSHOLD_TIME) is visited exactly once.
127 ![Jump Forward](images/forward-jump-mission.png)
130 <?xml version="1.0" encoding="utf-8"?>
131 <mission>
132   <missionitem no="1" action="WAYPOINT" lat="54.353504451478102" lon="-4.5171693008103739" alt="50" parameter1="0" parameter2="0" parameter3="0"></missionitem>
133   <missionitem no="2" action="WAYPOINT" lat="54.353290963012334" lon="-4.5186271961455091" alt="50" parameter1="0" parameter2="0" parameter3="0"></missionitem>
134   <missionitem no="3" action="WAYPOINT" lat="54.354462866400432" lon="-4.519133424449862" alt="50" parameter1="0" parameter2="0" parameter3="0"></missionitem>
135   <missionitem no="4" action="JUMP" lat="0" lon="0" alt="0" parameter1="6" parameter2="2" parameter3="0"></missionitem>
136   <missionitem no="5" action="POSHOLD_TIME" lat="54.35511281066394" lon="-4.5180071708842604" alt="50" parameter1="30" parameter2="0" parameter3="0"></missionitem>
137   <missionitem no="6" action="WAYPOINT" lat="54.354418702382176" lon="-4.5170547858197763" alt="50" parameter1="0" parameter2="0" parameter3="0"></missionitem>
138   <missionitem no="7" action="JUMP" lat="0" lon="0" alt="0" parameter1="1" parameter2="3" parameter3="0"></missionitem>
139   <missionitem no="8" action="WAYPOINT" lat="54.353913541022997" lon="-4.5182771029460111" alt="50" parameter1="0" parameter2="0" parameter3="0"></missionitem>
140   <missionitem no="9" action="RTH" lat="0" lon="0" alt="0" parameter1="0" parameter2="0" parameter3="0"></missionitem>
141 </mission>
144 ### RTH
145 The craft returns to the home location.
147 ### SET POI (Multirotor only, multiwii, inav 2.6 and later)
149 The `SET_POI` defines a location for a point of interest (POI). The craft will fly the mission (until a `SET_HEAD`) with the nose pointing at the POI, which might be useful for aerial photography. Note that the craft does NOT fly to the POI.
151 In the following image:
153 * WP2 and WP11 are coincident.
154 * WP3 (yellow icon) defines the POI
155 * WP12 (`SET_HEAD -1`) cancels the POI
157 So the craft will fly normally from WP1 to WP2. The craft will then fly WP2 - WP11 with the "nose in" towards the POI (WP3).
159 After WP11, the craft flies normally, "nose first".
161 ![Set POI ](images/mission-set-poi.png)
163 [Youtube video tutorial on SET_POI and SET_HEAD](https://youtu.be/RO5N9tbzNg8)
165 ### SET_HEAD (Multirotor only, multiwii, inav 2.6 and later)
167 The `SET_HEAD` type sets the craft's heading (where it 'looks', not the direction of travel). This may be useful for useful for aerial photography. A value of `-1` causing the heading to be 'straight ahead', i.e. the direction of travel. Thus, `SET_POI` `-1` may used to cancel a previous valid `SET_HEAD` or `SET_POI`. A `SET_HEAD` remains in force until cancelled by `SET_HEAD` with `p1` of `-1`, or modified by a subsequent `SET_HEAD` or `SET_POI`.
169 In the following example (note that WP8 - WP9 is orientated 120°- 300°):
171 The craft flies normally (nose first) to WP1.
173 The craft flies WP1 - WP3 with the nose pointing 120° (i.e. at c. 90° relative to the track)
175 The craft flies WP3 - WP5 - WP6 with the nose pointing 300° (i.e. at c. 90° / 270° relative to the track).
177 The craft then files normally (nose first) WP6 - WP8 - WP9 (where it lands). The `SET_HEAD` with `P1 -1` at WP7 cancels the preceding `SET_HEAD`.
179 ![SET_HEAD image](images/mission-set-head.png)
181 ## Uploading
183 For safety, if no mission is defined, a single RTH action should be sent.
185 | Enum | P1 | P2 | P3 | Lat | Lon | Alt | Flag |
186 | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- |
187 | RTH | 0 | 0 | 0 | 0 | 0 | 25m [1] | 0xa5 |
189 1. your choice, really.
191 In general, flag is 0, unless it's the last point in a mission, in which case it is set to 0xa5 (165) (or 0x48 (72) for FBH WP). When waypoints are uploaded, the values are also returned by the FC, thus enabling the application to verify that the mission has been uploaded correctly.
193 # Messages (Navigation related)
195 | MNEMONIC | Value | Direction (relative to FC) |
196 | -------- | ---- | ---- |
197 | MSP_NAV_STATUS | 121 | Out |
198 | MSP_NAV_CONFIG | 122 | Out |
199 | MSP_WP | 118  | Out |
200 | MSP_RADIO | 199 | Out |
201 | MSP_SET_NAV_CONFIG | 215 | In |
202 | MSP_SET_HEAD | 211 | In |
203 | MSP_SET_WP | 209 | In (& out) |
205 ## MSP_WP / MSP_SET_WP
207 Special waypoints are 0, 254, and 255. #0 returns the RTH (Home) position, #254 returns the current desired position (e.g. target waypoint), #255 returns the current position. WP #255 may also be used to set the vehicle's desired location (i.e. "follow me") when the following modes are asserted:
209 * NAV_POSHOLD
210 * GCS_NAV
212 | Name | Type | Usage |
213 | ---- | ---- | ----- |
214 | wp_no | uchar | way point number |
215 | action | uchar | action (wp type / action) |
216 | lat | int32 | decimal degrees latitude * 10,000,000 |
217 | lon | int32 | decimal degrees longitude * 10,000,000 |
218 | altitude | int32 | altitude (metre) * 100 |
219 | p1 | int16 | varies according to action |
220 | p2 | int16 | varies according to action |
221 | p3 | int16 | varies according to action |
222 | flag | uchar | 0xa5 = last, otherwise set to 0 (or 0x48 (72) for FBH WP, inav 3.1+)|
224 The values for the various parameters are given in the section “WayPoint / Action Attributes”
225 Note that altitude is measured from the "home" location, not absolute above mean sea level, unless the absolute altitude flag is set for a WP (inav 3.0 and later). 
227 ## MSP_NAV_STATUS
229 The following data are returned by a MSP_NAV_STATUS message. The usage texts are those defined by Wingui; multiwii and inav support this message. Almost the same data is returned by the [inav LTM NFRAME](https://github.com/iNavFlight/inav/wiki/Lightweight-Telemetry-(LTM)#navigation-frame-n)
231 <table>
232 <thead>
233 <tr class="header">
234 <th>Name</th>
235 <th>Type</th>
236 <th>Usage</th>
237 </tr>
238 </thead>
239 <tbody>
240 <tr class="odd">
241 <td>gps_mode</td>
242 <td>uchar</td>
243 <td>None <br/>
244 PosHold <br/>
245 RTH <br/>
246 Mission</td>
247 </tr>
248 <tr class="even">
249 <td>nav_state</td>
250 <td>uchar</td>
251 <td>None <br/>
252 RTH Start <br/>
253 RTH Enroute <br/>
254 PosHold infinite<br/>
255 PosHold timed<br/>
256 WP Enroute <br/>
257 Process next <br/>
258 Jump <br/>
259 Start Land <br/>
260 Land in Progress <br/>
261 Landed <br/>
262 Settling before land <br/>
263 Start descent <br/>
264 Hover above home <br/>
265 Emergency Landing </td>
266 </tr>
267 <tr class="odd">
268 <td>action</td>
269 <td>uchar</td>
270 <td>(last wp, next wp?)</td>
271 </tr>
272 <tr class="even">
273 <td>wp_number</td>
274 <td>uchar</td>
275 <td>(last wp, next wp?)</td>
276 </tr>
277 <tr class="even">
278 <td>nav_error</td>
279 <td>uchar</td>
280 <td>Navigation system is working <br/>
281 Next waypoint distance is more than the safety limit, aborting mission <br/>
282 GPS reception is compromised - pausing mission, COPTER IS ADRIFT! <br/>
283 Error while reading next waypoint from memory, aborting mission. <br/>
284 Mission Finished. <br/>
285 Waiting for timed position hold. <br/>
286 Invalid Jump target detected, aborting mission. <br/>
287 Invalid Mission Step Action code detected, aborting mission. <br/>
288 Waiting to reach return to home altitude. <br/>
289 GPS fix lost, mission aborted - COPTER IS ADRIFT! <br/>
290 Copter is disarmed, navigation engine disabled. <br/>
291 Landing is in progress, check attitude if possible. </td>
292 </tr>
293 <tr class="odd">
294 <td>target_bearing</td>
295 <td>int16</td>
296 <td>(presumably to the next WP?)</td>
297 </tr>
298 </tbody>
299 </table>
301 ## MSP_NAV_CONFIG (MW)
303 The following data are returned from a MSP_NAV_CONFIG message. Values are from multiwii config.h. Values may also be set by MSP_SET_NAV_CONFIG.
305 <table>
306 <thead>
307 <tr class="header">
308 <th>Name</th>
309 <th>Type</th>
310 <th>Usage</th>
311 </tr>
312 </thead>
313 <tbody>
314 <tr class="odd">
315 <td>flags1</td>
316 <td>uchar</td>
317 <td>
318 Bitmap of settings from MW config.h <br/>
319 b0 : GPS filtering <br/>
320 b1 : GPS Lead <br/>
321 b2 : Reset Home <br/>
322 b3 : Heading control <br/>
323 b4 : Tail first <br/>
324 b5 : RTH Head <br/>
325 b6 : Slow Nav <br/>
326 b7 : RTH Alt </td>
327 </tr>
328 <tr class="even">
329 <td>flags2</td>
330 <td>uchar</td>
331 <td>
332 Bitmap of settings from MW config.h <br/>
333 b0 : Disable sticks <br/>
334 b1 : Baro takeover</td>
335 </tr>
336 <tr class="odd">
337 <td>wp_radius</td>
338 <td>uint16</td>
339 <td>radius around which waypoint is reached (cm)</td>
340 <tr class="even">
341 <td>safe_wp_distance</td>
342 <td>uint16</td>
343 <td>Maximum permitted first leg of mission (m, assumed?)</td>
344 </tr>
345 <tr class="odd">
346 <td>nav_max_altitude</td>
347 <td>uint16</td>
348 <td>Maximum altitude for NAV (m)</td>
349 </tr>
350 <tr class="even">
351 <td>nav_speed_max</td>
352 <td>uint16</td>
353 <td>maximum speed for NAV (cm/sec)</td>
354 </tr>
355 <tr class="odd">
356 <td>nav_speed_min</td>
357 <td>uint16</td>
358 <td>minimum speed for NAV (cm/s)</td>
359 </tr>
360 <tr class="even">
361 <td>crosstrack_gain</td>
362 <td>uchar</td>
363 <td>MW config.h value*100</td>
364 </tr>
365 <tr class="odd">
366 <td>nav_bank_max</td>
367 <td>uint16</td>
368 <td>maximum bank ??? for NAV, MW config.h value*100</td>
369 </tr>
370 <tr class="even">
371 <td>rth_altitude</td>
372 <td>uint16</td>
373 <td>RTH altitude (m)</td>
374 </tr>
375 <tr class="odd">
376 <td>land_speed</td>
377 <td>uchar</td>
378 <td>Governs the descent speed during landing. 100 ~= 50 cm/sec unknown units</td>
379 </tr>
380 <tr class="even">
381 <td>fence</td>
382 <td>uint16</td>
383 <td>Distance beyond which forces RTH (m)</td>
384 </tr>
385 <tr class="odd">
386 <td>max_wp_number</td>
387 <td>uchar</td>
388 <td>maximum number of waypoints possible (read only)</td>
389 </tr>
390 </tbody>
391 </table>
393 ## MSP_RADIO
395 If you have a 3DR radio with the MW/MSP specific firmware, the follow data are sent from the radio, unsolicited.
397 | Name | Type | Usage |
398 | ---- | ---- | ----- |
399 | rxerrors | uint16 | Number of RX errors |
400 | fixed_errors | uint16 | Number of fixed errors, if error correction is set |
401 | localrssi | uchar | Local RSSI |
402 | remrssi | uchar | Remote RSSI |
403 | txbuf  | uchar | Size of TX buffer |
404 | noise | uchar | Local noise |
405 | remnoise | uchar | Remote noise |
407 ## FC Capabilities (MW only)
409 Note that 32bit flight controllers (baseflight, cleanflight) use capability == 16 for a different purpose
410 (CAP_CHANNEL_FORWARDING). It is advised to use other messages for checking for capabilities on non-MW platforms.
412 | Capability | Value |
413 | ---- | ---- |
414 | BIND | 1 |
415 | DYNBAL | 4 |
416 | FLAP | 8 |
417 | NAV | 16 |
419 # Implementations
421 The MSP NAV message set is implemented by [mwptools](https://github.com/stronnag/mwptools) (Linux, Windows, FreeBSD), ezgui / mission planner for iNav (Android), WinGUI (MS Windows) and the [inav-configurator](https://github.com/iNavFlight/inav-configurator).
423 # XML Mission Files
425 [inav-configurator](https://github.com/iNavFlight/inav-configurator), [mwptools](https://github.com/stronnag/mwptools), ezgui / mp4i (and WinGUI) share a common, interoperable, XML mission file format. A XSD can be found in the [inav developer documenation](
426 https://github.com/iNavFlight/inav/tree/master/docs/development/wp_mission_schema).