Software in the Loop-Extreme Novice

Greetings everyone!

 

I am brand new to the UAV community and have been assigned to develop an ArduPilot based fixed-wing UAV as part of a summer research internship. In preparation for the internship, I am to familiarize myself with the ArduPilot Software in the Loop simulation. Unfortunately, the full extent of my experience with programming consists of a single undergraduate semester of Arduino in an introduction to Mechatronics class, and I am completely unfamiliar with C++, Python, and the littany of CompSci terms which are used so freely in this community.

 

I feel I can figure out the software once it is up and running, however while I have been trying to decode the SITL information at this page: http://code.google.com/p/ardupilot-mega/wiki/SITL, I have made little to no progress toward even getting the programs built and operational. Is there anyone here who could reduce the build to a series of simple and direct steps to get the program operational on my computer rather than having to sift through lists of source code and hoping I get all the subcomponents I need installed? I am attempting to run the simulation on a laptop running 64-Bit Windows 7 Enterprise SP1.

 

The organization I will be working for saw my experience with Arduino, as well as my interest in aviation, and felt this project would be appropriate, however I have come to find a much greater level of programming experience could be necessary, experience I do not have time to obtain by this summer.

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

Join diydrones

Email me when people reply –

Replies

  • Hello,

    I have never tried to compile ArduPilot in Windows but it might work with cygwin. The easiest way however would be to use a linux system (can be a virtual machine) and compile there.  Here is an old forum post which explains it quite well:

    http://diydrones.com/forum/topics/apm-sitl-with-flightgear-and-ubun...

    The information you need - updated to the current process is:

    1. Open a terminal console window.
    2. Make a new folder for simulation software and enter the directory:

      mkdir sitl
      cd sitl

    3. Install prerequisites, if missing:

      sudo apt-get install git python-serial g++ autoconf libtool automake gawk

    4. Download MAVProxy, mavlink, JSBSim and APM:

      git clone git://github.com/tridge/MAVProxy.git
      git clone git://github.com/tridge/mavlink.git
      git clone git://github.com/tridge/jsbsim.git
      git clone https://code.google.com/p/ardupilot-mega/

      You need to have Arduino installed. Get it from here: http://arduino.cc/en/Main/Software , unpack it somewhere, like your home directory for example. Remember where you uncompressed it, as you will need it later.

    5. Build and install JSBSim:

      cd jsbsim
      ./autogen.sh
      ./configure --enable-libraries --enable-shared --prefix=/opt/jsbsim
      make
      sudo make install
      cd ..

    6. Build ArduPlane and ArduCopter binaries and copy them from temporary folder:

      cd ardupilot-mega/ArduPlane
      Configure build system: "make configure"
      Build: "ARDUINO=~/arduino-1.0.4 make sitl"
      cd ../..
      cp /tmp/ArduPlane.build/ArduPlane.elf .
      You how have a version of ArduPlane that runs on your desktop.

    7. Install flightgear:

      sudo apt-get install flightgear

     

    You can follow the instructions here (http://code.google.com/p/ardupilot-mega/wiki/SITL) to get the simulators connected.

     

     Hope this helps a little.

    Best regards,
    Niklas

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @Smartphone89: DonkeyCar Racing League Korea #donkeycar @diyrobocars https://t.co/mDlHDR1d98
yesterday
Jørn Ramnæs liked VIDEO LINK's profile
Friday
Mark Harrison left a comment on Moderators
"Wow, Ning2 looks really great on mobile. I had sort of drifted away as my browse-time went more on my phone, so this is great."
Friday
Hank Deucker left a comment on PIXHAWK
"I am sure most will say not again, Pixhawk telemetry. I do need help and all can be reassured that I have spent many hours scouring the net for useful information. I am not new at quadcopter flying, I started in 2012 and have progressed through many…"
Thursday
DIY Robocars via Twitter
https://t.co/rLmFr8M2UK
Thursday
Hank Deucker left a comment on PIXHAWK
"Tomorrow, I am thinking about the wording at the moment."
Thursday
DIY Drones via Twitter
Welcome to the new DIY Drones design!. You may have noticed that DIY Drones looks a little different today. That's… https://t.co/cg2EmeDGMQ
Wednesday
DIY Drones via Twitter
New! Online Training on Drones for Disaster Response https://t.co/brqRuujjY2
Tuesday
DIY Robocars via Twitter
https://t.co/8EMCvYW6oz
Tuesday
DIY Robocars via Twitter
RT @OttawaAVGroup: We are going to try something new this week. We will be having a drop-in style meeting Wednesday @ 7-9pm EST. Pop in and…
Monday
DIY Robocars via Twitter
RT @tawnkramer: Thanks Everyone for another fun virtual race! Amazing Ai racers competing head-to-head, Virtual Makers Fair event. Catch us…
May 23
DIY Robocars via Twitter
RT @make: Find out the latest from @diyrobocars at 10am PT from @chr1sa of @3DRobotics on Virtually Make Faire! #makerfaire #maketogether #…
May 23
DIY Robocars via Twitter
RT @Heavy02011: Join us Saturday online: Virtual Race League: @DIYRobocars Race #2 - Parking Lot Nerds https://t.co/aJUu4sdutx #Meetup via…
May 22
DIY Robocars via Twitter
RT @donkey_car: Yay, we are part of the virtual @makerfaire with @diyrobocars. Come see our race or better yet train a model and race with…
May 21
DIY Robocars via Twitter
RT @chr1sa: The @DIYRobocars Virtual AI Race is going to be part of the virtual @makerfaire on Sat! https://t.co/wnMDAboLID
May 20
DIY Robocars via Twitter
RT @tawnkramer: Please join us next week for our second DIYRobocars online race. We will be using a new Mountain Track course! https://t.co…
May 19
More…