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
The original definitions are defined in [standard.xml](https://github.com/mavlink/mavlink/blob/master/message_definitions/v1.0/standard.xml).
298
298
"""
299
299
300
-
eliffilename=='ardupilotmega':
301
-
insert_text+="""
302
-
# Dialect: ArduPilotMega
303
-
304
-
These messages define the ArduPilot specific message set, which is custom to [http://ardupilot.org](http://ardupilot.org).
305
-
306
-
This topic is a human-readable form of the XML definition file: [ardupilotmega.xml](https://github.com/mavlink/mavlink/blob/master/message_definitions/v1.0/ardupilotmega.xml).
307
-
308
-
> **Warning** The ArduPilot MAVLink fork of [ardupilotmega.xml](https://github.com/ArduPilot/mavlink/blob/master/message_definitions/v1.0/ardupilotmega.xml) may contain messages that have not yet been merged into this documentation.
They should be considered a 'work in progress' and not included in production builds.
316
306
317
307
This topic is a human-readable form of the XML definition file: [development.xml](https://github.com/mavlink/mavlink/blob/master/message_definitions/v1.0/development.xml).
308
+
"""
309
+
eliffilename=='test':
310
+
insert_text+="""
311
+
# Dialect: test
312
+
313
+
The test dialect is used for testing XML file parsing.
314
+
315
+
This topic is a human-readable form of the XML definition file: [test.xml](https://github.com/mavlink/mavlink/blob/master/message_definitions/v1.0/test.xml).
318
316
"""
319
317
eliffilename=='all':
320
318
insert_text+="""
321
319
# Dialect: all
322
320
323
-
This dialect is intended to `include` all other [dialects](../messages/README.md) in the mavlink/mavlink repository (including [external dialects](https://github.com/mavlink/mavlink/tree/master/external/dialects#mavlink-external-dialects)).
321
+
This dialect is intended to `include` all other [dialects](../messages/README.md) in the [mavlink/mavlink](https://github.com/mavlink/mavlink) repository (including [external dialects](https://github.com/mavlink/mavlink/tree/master/external/dialects#mavlink-external-dialects)).
324
322
325
323
Dialects that are in **all.xml** are guaranteed to not have clashes in messages, enums, enum ids, and MAV_CMDs.
326
324
This ensure that:
327
325
328
326
- Systems based on these dialects can co-exist on the same MAVLink network.
329
327
- A Ground Station might (optionally) use libraries generated from **all.xml** to communicate using any of the dialects.
330
328
331
-
> **Warning** New dialect files in the official repository must be added to **all.xml** and restrict themselves to using ids in their own allocated range.
332
-
A few older dialects are not included because these operate in completely closed networks or because they are only used for tests.
329
+
> **Warning**
330
+
>
331
+
> - New dialect files in the official repository must be added to **all.xml** and restrict themselves to using ids in their own allocated range.
332
+
> - Dialects should push changes to mavlink/mavlink in order to avoid potential clashes from changes to other dialects.
333
+
>
334
+
> A few older dialects are not included because these operate in completely closed networks or because they are only used for tests.
333
335
334
336
This topic is a human-readable form of the XML definition file: [all.xml](https://github.com/mavlink/mavlink/blob/master/message_definitions/v1.0/all.xml).
335
337
"""
338
+
339
+
eliffilename=='ardupilotmega':
340
+
insert_text+="""
341
+
# Dialect: ArduPilotMega
342
+
343
+
> **Warning** [ardupilotmega.xml](https://github.com/ArduPilot/mavlink/blob/master/message_definitions/v1.0/ardupilotmega.xml) contains the accurate and up-to-date documentation for this dialect.
344
+
> The documentation below may not be accurate if the dialect owner has not pushed changes.
345
+
346
+
These messages define the [ArduPilot](http://ardupilot.org) specific dialect (as pushed to the [mavlink/mavlink](https://github.com/mavlink/mavlink) GitHub repository by the dialect owner).
347
+
348
+
This topic is a human-readable form of the XML definition file: [ardupilotmega.xml](https://github.com/mavlink/mavlink/blob/master/message_definitions/v1.0/ardupilotmega.xml).
349
+
350
+
"""
351
+
352
+
eliffilename=='cubepilot':
353
+
insert_text+="""
354
+
# Dialect: cubepilot
355
+
356
+
> **Warning** [cubepilot.xml](https://github.com/CubePilot/mavlink/blob/master/message_definitions/v1.0/cubepilot.xml) contains the accurate and up-to-date documentation for this dialect.
357
+
> The documentation below may not be accurate if the dialect owner has not pushed changes.
358
+
359
+
These messages define the [CubePilot](http://www.cubepilot.com) specific dialect (as pushed to the [mavlink/mavlink](https://github.com/mavlink/mavlink) GitHub repository by the dialect owner).
360
+
361
+
This topic is a human-readable form of the XML definition file: [cubepilot.xml](https://github.com/mavlink/mavlink/blob/master/message_definitions/v1.0/cubepilot.xml).
insert_text+='\n\n*This is a human-readable form of the XML definition file: [%s](https://github.com/mavlink/mavlink/blob/master/message_definitions/v1.0/%s).*'% (
339
-
filename, filename)
367
+
dialectName=filename.rsplit('.', 1)[0]
368
+
filenameXML=f'{dialectName}.xml'
369
+
insert_text+=f"""
370
+
# Dialect: {dialectName}
371
+
372
+
> **Warning** This topic documents the version of the dialect file in the [mavlink/mavlink](https://github.com/mavlink/mavlink) Github repository, which may not be up to date with the file in the source repository (it is up to the dialect owner to push changes when needed).
373
+
> The source repo should be listed in the comments at the top of the XML definition file listed below (but may not be).
374
+
375
+
This topic is a human-readable form of the XML definition file: [{filenameXML}](https://github.com/mavlink/mavlink/blob/master/message_definitions/v1.0/{filenameXML}).
0 commit comments