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

  • Moderator

    No need to do the iPhone v Android debate, I own 4 macs (and I run Windows when I need to), so I've got the tools to write apps for iPhone or Android, unfortunately I don't know Java, and the SDK and doco for Android really sucks, which didn't make it easy for me to port my apps across.

     

    I've just started using Corona SDK, which uses LUA as a programming language, the learning curve is quite easy, and the best part, the apps run on iPhone and Android!  Releasing my first game app next week in Apple AppStore, and will probably follow with Android release soon after.

     

    Might go buy a Xoom tomorrow.   Copter GCS makes good excuse to get one, as I can't think of any other app I'd want to use on Android.

  • 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.

  • Moderator
    Woah, can use Xoom to control my Arducopter?, cool, just got my excuse to buy a Xoom!
  • 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.