ArduPilotMega / Flightgear simulation on Linux

 

Just documenting steps to get this set up, so as I don't forget.  Sorry but couldn't find a concise summary to fit my specific desire: do it on linux.      I'll clear this up in the wiki if I could have access to it.

 

Flightgear works, have that running.  Available in synaptic in ubuntu, easiest way to get it.

 

Now, need interface program, receive APM serial data outputs (servo commands), and send Flightgear simulation states (fake IMU signals),  both over ftdi serial cable between pc and APM.    It sounds like that Micheal Oborne's neato ArduPilotMegaPlanner program will run on linux, if I have mono. (reading the wiki page http://code.google.com/p/ardupilot-mega/wiki/FlightGear,  and blog http://diydrones.com/profiles/blog/show?id=705844%3ABlogPost%3A186272&commentId=705844%3AComment%3A186412&xg_source=activity)  latest APMPlanner is posted here:   http://code.google.com/p/ardupilot-mega/downloads/detail?name=ArduPilotMegaPlanner.zip&can=2&q=

 

But I've never heard of mono except in high school.   Oh,  this mono,  http://en.wikipedia.org/wiki/Mono_%28software%29        which runs .net programs on linux.     

 

So, ubuntu 10.10 already has mono.   ok, no highschool kissing jokes now.

 

download the APMP .zip file, unpack it, and open a cmd window in that directory, and type

$ mono ArdupilotMegaPlanner.exe

error message to the effect 'assembly mscorlib.dll was not found or could not be loaded.

need something called 'Nant' which includes some required files.  install that:   sudo apt-get install nant

 

And now it works!  APMPlanner launches.   I'll see now if can get it working together.  Thanks Michael for making it cross platform/OS compatible!

 

 

so, short answer, at least for Ubuntu 10.10: 

-unzip it, put it where you want  

-use mono to launch it,   $ mono ArdupilotMegaPlanner.exe

-you might need to install nant,    $ sudo apt-get install nant

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

Join diydrones

Email me when people reply –

Replies

  • great!

    but how can I know which one is my serial port?

  • Hi all,

    A few months have gone by since the last post, so I'd like to ask if anyone has succeeded in getting later versions of APM-Planner and FlightGear working together ?

    Thanks,

    Nick

  • Well, so I have APMPlanner launched and it appears to run (as the common binary, not recompiled on linux).  Poking around in it, it has locked up / crashed a couple times, not sure why.   So, I still have to get it set up and working with the APM and Flightgear all together.  I'll post once I have that.  But it appears so far it should or may work.  I haven't used APMPlanner for it's other functionality, I'm trying it first just for connecting APM & Flightgear.

     

    Also clarify my original post:  I have Flightgear 1.9 installed.  I forget if I got it from synaptic, or installed sort of manually in order to get the older version, instead of newer version which is alleged to have some issue for this use.

     

    Some people must be doing this on Linux?  Right?  How have you done it?   Is see there is another small connection program source code in the SVN, maybe that is used to connect APM serial port with Flightgear?  Or are you using APMPlanner.

  • Awesome!  I was having a horrible time trying to run APMPlanner in a VM on Kubuntu 10.10.  Thank you!
This reply was deleted.

Activity

Neville Rodrigues liked Neville Rodrigues's profile
Jun 30
Santiago Perez liked Santiago Perez's profile
Jun 21
More…