dsuarezv / mavlink.net

A better MavLink object generation for C#. Richer message classes are generated from the object definitions.
38 stars 35 forks source link

Generating .NET output from multiple message definition .xml files #18

Closed jonathancurrie closed 7 years ago

jonathancurrie commented 7 years ago

It seems if I call mavlinkgen with multiple definition files (e.g. mavlinkgen common.xml mine.xml --output="test.cs") all I get is a test.cs with the message definition from the last definition file. Is there a way to merge all definitions into a single generated output?

dsuarezv commented 7 years ago

Specify only one file in the command line and use includes inside the file.

jonathancurrie commented 7 years ago

Many thanks for the quick response. I can't find the syntax how to include a message definition in e.g. common.xml - any suggestions?

jonathancurrie commented 7 years ago

Annoying, sorry, found it.

jonathancurrie commented 7 years ago

Working, thank you!

dsuarezv commented 7 years ago

I leave it here for reference:

<?xml version='1.0'?>
<mavlink>
    <include>common.xml</include>
    ...