3D Robotics

Awesome simulation setup for ArduPilot!

Jordi's really outdone himself this time! He created a amazing full-featured simulator for ArduPilot that does the following:

  • Uses the servo output from the autopilot or RC controller (depending on which one is selected by the MUX) to "fly" a plane in the X-Plane flight simulator, via a custom interface he's designed around this ARM board.
  • Also flies the plane in manual RC mode with RC controller output going through the MUX and then into the ARM board.
  • Displays the plane's attitude and other flight telemetry with a custom Ground Station built in LabView.
  • Uses LabView to simulate the FMA Co-Pilot, stabilizing the plane in flight using PID loops.
  • Display the plane's position in a moving map using Google Maps, which also shows waypoints.
As you'll observe in the videos here, you can see the plane's: 1) Flight in X-Plane 2) Glass cockpit with full telemetry and debug data in the Ground Station 3) Overhead position and path in Google Maps Here's a diagram that shows how everything is connected:

You'd note that he's using using the ArduPilot Pro board with just one atmega installed for this. (the other atmega does stabilization, which we're doing in the LabView Ground Station for this demo.) It's the board we use for development, since it's easy to replace atmega chips. It's best to have at least two computers and three screens for this, as you'll see in the video. Video 1 (above) just shows the setup Video 2 (below) shows the plane taking off in manual mode, switching to autonomous and flying to first two waypoints Video 3 (below) shows the plane flying to the last two waypoints, and switching back to manual mode and landing. Video 2 Video 3 Full code and instructions on how to create this simulation setup coming soon.

E-mail me when people leave their comments –

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

Join diydrones

Comments

  • Hello,

    I am a novice on this website. I work for a company that develops small unmanned helicopter for the cinema industry. I write you because I would know what are the best software technologies to have a moving map in a ground station. I currently work with labview and I would like to have a map with my UAV geo-referenced and also be able to work in way point navigation. It exists some tools that provide a 3D visualization of the relief?
    Thank you very much for your help/advices/informations,
  • T3
    Jack Crossfire:
    "X-Plane is an interesting program at least as regards the author. One guy started writing it in 1994 & has made enough money selling it for $60 a copy to fly real airplanes & buy a ride in Spaceship 2."

    wikipedia:
    "
    Austin Meyer
    Austin has been a plane and computer enthusiast from a young age. He took his first flying lesson at age 15 and had his pilot certificate by the age of 17.
    "
    He is almost as self-made man as Bill G. No illusions about American Dream ;-)
  • Was the labview vi's ever posted. I would like to see how this was implemented.
  • Hi. Anybody else have a simulation set up for Ardupilot or suggestions? thx.
  • Hi jordi,
    no it's not urgent - I am just curious....
  • Developer
    Patrick:

    Que onda! Yes i still in Swiss, i will return this December 10, so maybe i can see you, how is going the project?
  • Developer
    !automatik:

    Yes I'm planning to release the code soon. Is very urgent?
  • X-Plane is an interesting program at least as regards the author. One guy started writing it in 1994 & has made enough money selling it for $60 a copy to fly real airplanes & buy a ride in Spaceship 2. Even though it's not open source, people still love it. Compare to your average Silicon Valley staff programmer, who puts in the same amount of work and is lucky to make next month's rent.
  • I'm not sure what you mean by this. The data that is of interest to the ground station is on board the UAV in the ArduPilot. One method of getting that data to the ground in real-time is to use a dedicated telemetry link which could be displayed by Labview. That is what I was mentioning when I talked about using an XBee. The second method is to overlay the data on the images of the video stream if it exists. However, once on the ground, there is no discrete representation of the data- it is all embedded as part of the video images. That isn't neccessarily a bad thing, especially if the data is also recorded in the Ardupilot for later analysis.
  • That OCD looks interesting....however if video is routed to a computer (if it is part of the ground station) it's fairly trivial, using software, to display information on top of that video feed - it can be overlayed for faster real time viewing/processing or "merged" into video stream for recording, etc.
    jordi, any chance that you can post labview code from simulation?
This reply was deleted.