MAVLink Java Generator

802 views
Skip to first unread message

ghelle

unread,
Sep 19, 2012, 5:12:45 AM9/19/12
to mav...@googlegroups.com
Hello all!
 
I just finish my MAVLink Java Generator!
 

Command line arguments are :

  • source : directory path containing xml files to parse for generation
  • target : directory path for output Java source files
  • isLittleEndian : true if type are stored in LittleEndian in buffer, false for BigEndian
  • forEmbeddedJava : true if generated code must use apis for embedded code, false else
  • debug : true to generate toString methods in each message class

Example :

  • java org.mavlink.generator.MAVLinkGenerator resources/v1.0 target/ true true true true

Generate MAVLink message Java classes for mavlink xml files contains in resources/v1.0 in target diretory for Little Endian data, embedded code with debug code.

 

It is architectured with 3 Eclipse Java projects.

org.mavlink.generator : contains the generator and MAVLink xml files. Generated code is put in org.mavlink.library/generated folder.

org.mavlink.library : Helpers for MAVLink and message. Contains generated code from generator.

org.mavlink.util : CRC classes uses by generator and library.

 

After code generation, 2 jar descriptors in org.mavlink.library and org.mavlink.util projects can be used to generate jars for your application...

 

I have 2 solutions for code repository :

I create a google code project

I host it in MAVLink project

 

All comments are welcome! :-)

I can send zip archive for beta testers...

 

Have fun!

 

Best regards

 

Guillaume Helle

 

sandmen

unread,
Sep 20, 2012, 10:27:44 AM9/20/12
to mav...@googlegroups.com
Hi,
I' want to use your java implementation in a android app,
is that possible?
Do you have a how-to file, how to use your code or library's?
Can you send me your zip-file?

Thanks
peter

Guillaume Helle

unread,
Sep 23, 2012, 11:41:44 AM9/23/12
to mav...@googlegroups.com
Hello Peter,
 
first sorry to reply to you so late, i was debugging and writing readme files... :-)
Yes i think you can use it for Android because if you generate for embedded, API used can be used in all JVM and CLDC libs...
But i suppose in Android you can use too ground station generated code...
 
I join the zip file : have fun!
If you find bugd, you want new features or have any questions, don't hesitate to write me!
 
Best regards
 
Guillaume

2012/9/20 sandmen <p.haf...@gmail.com>
JavaMAVLink.zip

sandmen

unread,
Nov 8, 2012, 4:31:09 AM11/8/12
to mav...@googlegroups.com
Guillaume,
I have some trouble to get the mavlink working on Java,
I hope you can help me. I have send you a message via diy drones.

John Wiseman

unread,
Apr 18, 2013, 8:07:09 PM4/18/13
to mav...@googlegroups.com, ghel...@gmail.com
Hi, I was just wondering what the current status of the Java mavlink generator was.

Guillaume, is https://docs.google.com/open?id=0ByNPsEbODkrqRF96NmdCR0w4bzA still the latest version of your code?  Do you have a fork on github or somewhere?


Thanks,
John

Reply all
Reply to author
Forward
0 new messages