It has been a little quiet here over the Christmas and New Year break. We were busy though. Felix Ruess, Martin Müller and me (Piotr Esden-Tempski) were at the 27th Chaos Communication Congress in Berlin. We presented Paparazzi and received lot’s of interest.
Felix gave an interview about Paparazzi to Projectmovie 2010. It is in German but the makers of the movie are planning to add English subtitles to the movie at some point. 🙂
As promised, we want to talk about projects we are currently working on. One of them is Lisa/M.
Lisa/M will be the medium sized Autopilot based on the STM32 Cortex-M3 microcontroller. It is part of the Lisa series of Autopilots. It is very small (50mm x 25mm), about the size of an RC receiver. We want it to be as affordable as possible so that more people can join the autonomous aircraft revolution. The final cost still needs to be determined, as we are not done with the development yet.
Due to its large capabilities and small size, it can be used as a full Autopilot for fixed wing airplanes, multicopters and helicopters, as well as an IO extender/repeater (in which case the IMU can be left out, cutting the cost significantly).
One other interesting feature is that it can host the SMD mounted Aspirin IMU without adding size. The Aspirin IMU is the next generation small, flat, low part count and cheap IMU that will get an article by itself.
Lisa/M with mounted IMU has the following sensors on board:
3 Axis Gyroscope
3 Axis Accelerometer
3 Axis Magnetometer
Pressure sensor
The pressure sensor is mounted directly on Lisa/M as this sensor is not provided by Aspirin. Without a GPS unit you have all necessary sensors for full attitude and altitude stabilization in an extremely small package (if you know of a smaller one, let us know!). With an external GPS unit, it is a full fledged Autopilot.
Now you may ask when will it be available for prime time. We can’t give you a definite answer just yet. What we definitely can say is that it will be as soon as it is ready. 🙂
But now seriously. We are currently working on the second revision of our prototypes. Based on our experience it takes 3 to 4 revisions of a hardware design to get it right. That means in a few months if everything goes well.
Don’t lose faith though. The first design was already good enough to be able to fly an airplane. That means that there are no major mistakes in the design.
We will of course keep you up to date on this projects progress in future articles.
Paparazzi features adaptive control loops that can cope with substantial “changes” of the airframe in flight. May it be a motor dropout, partial loss of control surfaces or dropping a heavy payload. As videos usually say more than words, here are two that demonstrate this.
The first video shows Paparazzi’s adaptive control loops (written by Pascal Brisset and Gautier Hattenberger at ENAC) for fixedwing aircraft keeping a Multiplex Twinstar on track, despite dropping a portion of the right wing and aileron and then switching the right motor off.
Martin Mueller equipped the Twinstar with video cameras to document this. You can easily see that after part of the right wing is dropped the adaptive controller compensates for this automatically although only 50% of the aileron control surface remains. To make things even worse, the motor on the same side was switched off to simulate engine failure but the autopilot manages to keep it stable. At that point the aircraft became virtually impossible to fly by the very skilled safety pilot in manual control.
Although the adaptive vertical control for multicopters (by Antoine Drouin at ENAC) has been around for almost two years now, here is a demo of a Paparazzi Booz quadrotor suddenly dropping 50% off its weight.
In this case, a Kalman filter of dimension one is used to estimate the the ratio of vertical acceleration over the produced thrust. This basically equates to the inverse of the mass during flight. Then the inverted dynamic model is used to issue a nominal thrust command based on this estimate. With this the quadrotor is able to stay very near same height, whereas with standard feedback control loops it would “go through the roof” when the payload is suddenly dropped.
Many Paparazzi followers will be familiar with the popular TINY and TWOG fixed wing autopilot boards that have allowed so many UAV pilots their first taste of autonomous flight. A few will even have had the pleasure of using the Booz multicopter autopilot board. All three of these designs are based on the Phillips LPC2148 microcontroller, which has proven to be a solid performer in this role. Antoine Drouin, the genius behind the Booz board, has once again outdone himself with a completely new series of autopilot boards based on the STM32 ARM Cortex-M3 microcontroller, which has the umbrella name Lisa. The first available is the Lisa/L and it is this board that will be explored in coming articles.
In the case of Lisa/L the 64 pin STM32F103RE processor has 64k of RAM, 512k of FLASH and runs at 72Mhz. To ensure that future autopilot features are not restricted by board design, Antoine has ensured that all of the processor’s pins are exposed on Molex PicoBlade connectors. This allows access to all of the available peripherals, which include 3 USARTS, 2 SPI, 2 I2C, 1 CAN and 3 ADC channels and many more.
The board also provides an interface which is both electronically and mechanically compatible with that of the Gumstix Overo, providing the option of running autopilot code (and any other applcations) under Embedded Linux on an Overo with the STM32 acting as an I/O processor.
The board is equipped with a pair of pressure sensors, one absolute to measure altitude and one differential to measure airspeed. Additionally, Lisa/L is fully compatible with the BOOZ IMU module which can be conveniently mounted above the Lisa/L board.
The addition of further sensors and external peripherals like modems, servos, USB webcams or wifi sticks is facilitated through the inclusion of three different power supplies (5V for external peripherals, 3V3 for avionics and a linear supply to provide clean power to sensitive sensors).
For the first time in a Paparazzi autopilot board, a USB based JTAG interface to the STM32 has been incorporated. This high speed interface allows for both fast programming and run time debugging using GDB. Debugging doesn’t get any easier :). If the Gumstix module is mounted, this USB interface also provides the serial console.
Even from these few short paragraphs, it should be apparent that Lisa/L has been designed with power and flexibility in mind. This has already demonstrated with the flight of both quadrocopters, hexacopters and fixed wing aircraft utilising very different sensor suites (such as the Paparazzi Booz IMU and Paparazzi IR sensors ).
For those that can’t wait until next time the Lisa/L Gallery is a must see.
In the upcoming articles we will explore the features of Lisa/L further.
This is a brief note to keep everyone updated on progress towards supporting Paparazzi on OSX. Currently Paparazzi is supported only on Linux. With the growing base of Paparazzi developers it has become possible for us to consider supporting multiple operating systems.
Mac OSX was chosen for attention ahead of Windows 7 due to the its similarity to Linux. We hope that the experience gained in supporting this operating system will give an indication of what form a combined build system for all three platforms will take.
The GUI used by the Paparazzi ground segment is based on GTK, this provides a transparent way of building X Windows based applications for OSX. To date all the components of the ground segment have been built in this way and function as intended. Unfortunately this currently requires hand building some packages, attention is now being given to simplifying the process by wherever possible submitting patches to the package maintainers.
Once the machinery is in place for installing Paparazzi on OSX without hand building some packages, only a few extra changes will be required to produce a version that uses the gtk-quartz-engines. This will then provide the look and feel of a native OSX application.
A number of interesting facts have surfaced during this process.
The first is that the Paparazzi development team have over the years have been very careful to adhere to the Posix standard. This has meant that very few code changes have been required to make Paparazzi run on OSX. This portability is something the team should be very proud of.
The second is the amazing depth of talent in the Paparazzi development team. I provide only one example of this but there are many more. A central component required in the ground segment is the build system used by Paparazzi to create firmware for the autopilot. This consists of a cross compiler and related utilities. In this case Esden had already done much of the work required to produce such a toolchain with his summon-arm-toolchain script. Thanks to that with only a few “clicks” we ended up with a toolchain that we could use for both of our arm targets, lpc21 and stm32.
As the Paparazzi community is very active and getting bigger every day, we have decided that it is time to make a blog that reflects the thriving development and keeps everyone up to date. We hope to inform everyone about new features, challenges and plans.
Paparazzi is the only really Open-Source (hardware and software) UAV project in the world with proven capability and stability.
To support that statement we offer the following statistics:
The current codebase contains 144,959 lines of code made up of:
110,279 lines of ansi C
24,904 lines of Ocaml
3,724 lines of shellscript
2,202 lines of python
1,710 lines of C++
1,422 lines of perl
602 lines of assembler
116 lines of lex
On the hardware side there are 47 Eagle CAD schematic files and 46 Eagle CAD board files covering several autopilot designs and their related sensor and power systems.
Paparazzi supports the use of thermopiles or IMUs for attitude estimation in fixed wing aircraft and IMUs only for rotorcraft (helicopters, quadcopters, hexacopters). Presently there are 11 airframes officially supported for use as exemplars with a further 153 user contributed airframes.
Paparazzi is unusually flexible in its ground control architecture in that it consists of a series of agents that communicate via a software bus. This has already allowed a UAV to be controlled using the internet as part of the telemetry link.
But enough of the self praise. Welcome everyone to our shiny new blog and I hope you will enjoy the amazing trip with us. 🙂
There is a video available that shows how Paparazzi’s adaptive control loops keep a Twinstar in the air that drops 30% of its right wing with 50% of the aileron and then also switches the right engine off. Another video shows a Paparazzi quadcopter using adaptive control to stay level after dropping 50% of its total weight.
We believe the switch from Subversion to the fast git version control system will make development easier, faster and more fun. It also makes it easier for YOU to contribute. You can easily fork paparazzi on github, commit your bugfixes and new features and send us a pull request.
More info on how to get the paparazzi code from github can be found here.
We also want to encourage you to submit bugs or feature requests on the simple github issue tracker.
After many years of development, so many new autopilot boards and aircraft types have been added that a sourcecode reorganization was needed. This undertaking is started and will simplify the continuous evolution of the project.
To benefit from these important changes, it only requires you to update your airframe configuration document once. After you have updated, you should not notice the significant reorganization that is going on behind the scenes. This change will benefit your aircrafts flying successfully for the years to come. The required changes are described on Update Your Airframe Configuration.
At this point several developments are blocked because of this. Therefor we kindly request you to upgrade your airframe configuration documents as soon as possible and thank you in advance for doing so.
The IMAV 2010 International Micro Air Vehicles Conference and Flight Competition took place today in Braunschweig, Germany. The ENAC Paparazzi team took home 1st place for the outdoor autonomy mission and 2nd place for the indoor flight dynamics challenge. Both the indoor and the outdoor event consisted of two separate competitions, one focusing on high maneuverability, the other one focussing on the MAV’s ability to perform a complex autonomous mission.
Research and development of open-source UAV systems since 2003