Copter-GCS now supports MAVLink

3689415633?profile=original

At long last, I finally beat MAVLink into Java submission. I wasn't able to find any MAVLink bindings for Java (needed by android), so I ended up using JNI and wrote a MAVLink wrapper. It works nicely and makes using MAVLink very easy. Its available for download here. I've included both the "common" and the "pixhawk" messages.

 

As you see above, I've added a HUD mode.

 

I've uploaded the new copy of the GCS for easy download or through the Android Market (search copter-gcs). Of course the source is available through SVN


I am focused on Copters, as that is what I fly, but with MAVLink support, the copter-gcs is now also useful for ArduPilotMega. I loaded the APM code on my quad (minus the props :-) ), and was able to see / tune track just fine with it. The only thing missing is that the PID tuning widgets I have are currently only setup for the copter. The next version I expect will have the APM pids added in. For now you can just use the Parameters view to set anything you like:

 

3689415780?profile=originalWhen you make a change, just hit the button next to is to save it.

That's about the news for now. I will be working on Mission Planning and some clean-up next.

 

If anyone has any problems, let me know. Same thing if there is a feature missing (no promises though).

So far USB host mode for tablets (connect XBee directly) and Wifi links have been requested, although i'm not sure when/if they will make it in.

E-mail me when people leave their comments –

You need to be a member of diydrones to add comments!

Join diydrones

Comments

  • Ah yes, the Apple vs OtherPlatform debate hehe.

    The funny thing is that for me, having no mac computer, the IPhone SDK can only be used through hacks (can't legally develop from a PC). No XCode, no SDK, no simulator: By comparison I was up and running in 30 minutes with android.

     

    Jeff, that shot looks cool on your tablet, might just have pushed me over the edge. I think you sent me some links earlier, I'll try and dig them up (or please resend them) and i'll have a look at it in depth today. If you are ok testing, I can try to add it in.

     

    Cheers,

    Bart.

  • Moderator

    Unfortunately I suck at Java, I was going to port my iPhone apps over to Android, I bought an Android phone, but the Android SDK sucks compared to iPhone SDK, and I just gave up.

     

    Once I free up some time I might be able to learn about the MAVLINK protocol and make a Mac version.  Unfortunately apple doesn't allow Bluetooth serial unless you join the Made for iPod program, which I tried to join, but got caught up in so much red tape.

  • well not yet, we need a developer to assist in the serialization and parsing of the xbee/usb on the Xoom then we can control our copter via Xoom. Unfortunately, I am not that guy but you might be able to help. I saw your apple serialization and parsing seems to doing great maybe you can chime in, look at Bart's code and port your code to android.
  • Moderator
    Woah, can use Xoom to control my Arducopter?, cool, just got my excuse to buy a Xoom!
  • His connection is Android <> Bluetooth <> XBee <> AC2
    img20110426235731.jpg@Bart
    I really hope you would consider to add the option for a USB <> Serial connection > I tried to review your code and the BT Service/Connections must be completely re-written to adapt a USB serial input. I then realize I am no programmer.

     

    I do agree with your comment about cables being too troublesome to Android phones but I think it will be awesome for Android Tablets like this photo of my Xoom

    3692235401?profile=original

  • Moderator
    Android -> USB -> Xbee -> AC2?  Is that how I understand the connection?
  • And a great new chapter has arrived
  • Really cool - looking forward to more of this!
  • 3D Robotics
    Sweet. Great work!
This reply was deleted.