dsuarezv / mavlink.net

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

Missing enum for message IDs? #19

Closed jonathancurrie closed 7 years ago

jonathancurrie commented 7 years ago

Is it possible to add an enum for the message IDs? Something like:

public enum MavMsgIDs { Heartbeat = 0; SysStatus = 1; SystemTime = 2; .. }

It would just make my method of decoding messages a little easier. I can't find this functionality so far.

jonathancurrie commented 7 years ago

I've added code to CSharpGenerator.cs that does this - useful addition?

dsuarezv commented 7 years ago

Yes, please PR.

jonathancurrie commented 7 years ago

Done.