Professional Documents
Culture Documents
Abstract— This paper describes the hardware and software of the (Controller–area network) communication interface to send the
avionics for a mini-helicopter robot called Colibrí, which measurements to the flight computer and it needed additional
provides the instrumentation, intelligence, and energy to the power sources. That configuration added too much weight to
autonomous navigation. The paper describes the function of each the avionics hardware and required more space; also, the
electronic device in the navigation system and explains the tools material used to construct the box was 0.9 mm aluminum. In
for rapid software prototyping. This programming environment the new design avionic box (version 2.0), the weight was
uses a high-level graphical language like Simulink® to design a reduced to 50% of the initial weight, by using 0.4 mm
test model, and from it automatically build the executable code in aluminum and by the integration of sensors into a single device
C, which runs in the QNX real-time operating system during
called IMU (Inertial Measurement Unit).
each flight. Matlab® Real-Time Workshop is the tool that
enables this efficient programming methodology. The tests in The avionics box has the following functions: to provide a
pilot assisted flights show that the environment makes easy the communication link between the vehicle and the ground
development of state estimators, finite state machines, controllers station, to carry electronic devices that make up the hardware,
and other subsystems. to enable the change of manual/autonomous mode, to perform
real-time acquisition and autonomous control algorithms in the
Keywords- Avionics; mini-helicopter; real-time systems; rapid on-board computer. Thus, the fundamental components
software prototyping; Matlab/Simulink; Unmanned Aircraft
required in avionics are an integrated sensor unit for
Systems
navigation, a flight computer with a real-time operating system
(QNX), a communication system, video equipment, a reading
I. INTRODUCTION card for servomotors, a manual/autonomous mode switching
The avionics of Unmanned Aircraft Systems (UAS) is a card, a wireless network card, and a power supply.
technological development that integrates processing, The tasks performed by the computer on board during the
measuring, wireless communication and sensors systems, and it flight tests are scheduled in the Simulink graphical design
can be programmed for tasks like acquisition, communication environment; once the application is compiled, the Real-Time
and real-time control of autonomous or non-autonomous aerial Workshop (a Matlab tool) automatically generates C code,
vehicles. The avionics box is attached to the fuselage of the optimizes it, and transfers it from the host computer to the
vehicle and its weight must be considered within the limits of flight computer. This methodology, known as rapid software
the effective load that the mini-helicopter can carry. The prototyping, has the advantage of eliminating the intermediate
different electronic devices that contribute to weight are steps between the design and the implementation of test models
sensors, cables, flight computer, wireless bridge, etc. These can customized for each flight. The generation, collection and
reduce the maneuverability or autonomous control of the transfer are invisible to the designer. Real-Time Workshop
vehicle, therefore the hardware inside the box should be as works with real-time operating systems; Colibrí system uses
light as possible. QNX because of its versatility, reliability, technical support and
Many kinds of avionics boxes have been built and applied excellent documentation (licenses are free for universities).
with different purposes [1]-[6]. Colibrí avionics box is one of The rapid software prototyping environment is an
them. It has been built from COTS (commercial, off-the-shelf) environment in which the working versions of a system
components, integrated with a friendly software environment (prototype) can be tested and implemented quickly and
and tested in several experiments. Colibrí system is described automatically [8],[9]. Rapid software prototyping requires a
in this paper. design environment (Matlab), a builder (Real-Time
The first version of Colibrí avionic box [7] used non- Workshop), a wired or wireless way of transferring files, a
integrated sensors (magnetometer, barometer and sonar, global development computer (host), and a target computer (target). It
positioning system - GPS), which required an additional CAN allows the simulation of mini-helicopter behavior in different
flight scenarios to adjust parameters in the controllers, excite
the system with different trajectories, to communicate the test antennas. The distribution of components inside the box was
model to an external device like a joystick. made so that the center of mass coincided with the geometrical
center, so that the helicopter center of gravity is not displaced
from the main rotor shaft and it does not create unnecessary
additional torques.
Figure 1. X-Cell 60 Gas 105-102 radio control helicopter with the avionic box
13. On/off switch Figure 5. Drivers in Matlab/Simulink of avionics devices and communication
in Colibrí system
A. Inertial Measurement Unit: MNav 100AC
The software in the PC104 uses hardware interruptions;
The Colibrí inertial navigation system is integrated into the thus, the processing unit does not require to continuously
MNav [11], which manages two groups of sensors: three checking the state of the PWM signals. The application has a
accelerometers, three gyroscopes, a magnetometer and a GPS, time base controlled by the activation of the signal of the pedal
which estimates the three approximated geodesic coordinates servomotor. This signal activates the time base within which all
and three NED velocities. This device sends measurements to scheduled breaks must occur, including data packaging and
the flight computer through a RS-232 serial protocol. The delivery to the serial port of the flight computer.
number of sensors used in the MNav varies according to the
information required on each flight. The MNav also offers the When there is a rising edge on the pedal channel, a
possibility of driving directly the four servos by means of hardware timer and a countdown variable start. The timer is
Pulse-Width Modulation (PWM) signals generated by a built-in used to calculate the current pulse width of the pedal signal, in
microcontroller (see Fig. 4). time units, and to mark the moment when it can gather
information from the three remaining signals and send their
B. Servomotor reading card state. The software has a cyclic component that decreases the
countdown variable in each iteration, and when it is zero the
The status of the four servos (lateral and longitudinal cyclic above task is executed. When a falling edge occurs on the pedal
actuators, collective actuators and pedal actuators) needs to be channel, the timer stops and its current value will be the pulse
known to ensure a smooth transition when the pilot using the width measurement of the pedal signal. The code uses the same
joystick changes from manual to autonomous mode. The servos logic for the three remaining signals.
are connected in turn to a Futaba PCM1024 receiver integrated
into the helicopter chassis. The channels of this receiver get
C. Flight computer
four PWM signals corresponding to the current states of the
servos, driven by the pilot, and an additional signal to switch Real-time processing is one of the main features of the
from manual to autonomous. The output PWM signals are computer system in UAS. Control actions computation, state
intercepted in the avionic box and registered in a PIC18F258, estimation (extended Kalman filter), wireless transmission of
sent to the flight computer via RS232 and sent to the data to the ground station, and capture of data are continuously
monitoring station (Ground Control Station) by wireless processing for navigation and control. The flight computer of
communication [7]. the X-Cell works with the real-time operating system QNX
[13]. The system has different sampling rates for different
sensors, but the control sampling rate is 50 Hz.
The program in the flight computer integrates the whole
system of acquisition, filtering, estimation, control and discrete
events logic. The computer coordinates the hierarchy of
required tasks: reception of INS measurements via RS-232,
reading of servomotors, delivery of received data packets to the
ground station via TCP/IP, selection of the control according to
some operation point, execution of the estimation and control
algorithms, and sending of commands to the servos.
Figure 7. Test model for the acquisition and communication between the
avionic box and the ground station
IV. CONCLUSIONS
REFERENCES
In this paper, the basic elements of a simple avionics box
[1] Cai G., Chen B.M., “An overview on development of miniature
are presented with some details. The description allows to unmanned rotorcraft systems”, Frontiers of Electrical and Electronic
somebody to reproduce the box and understand the key ideas of Engineering in China, Vol. 5, No. 1, pp 1-14, 2010.
the hardware development. Together with the hardware, [2] Sprague K., et al., “Design and applications of an avionics system for a
general ideas of rapid software prototyping are exposed and miniature acrobatic helicopter”, AIAA Digital Avionics Systems
applied to the avionics box into the possibilities and advantages Conference, USA, 3C5/1-3C5/10, vol.1, 2001.
of a well-supported tool like Matlab and Simulink. The details [3] Brown N., Samuel A., Bhandari S., Colgren R., Schinstock D.,
of electronic components can be found in the manuals. Lookadoo J., “Modular Wireless Avionics System for Autonomous
UAVs”, AIAA Guidance, Navigation, and Control Conference and
Several tests show that the exposed avionics box together Exhibit, 21 – 24 August 2006, Keystone, Colorado, Paper No. 2006-
with the rapid software prototyping environment is an 6683, 2006
interesting and easy deployment platform to reach the [4] Gravilets V., Shterenberg A., Dahleh M. A., Feron, E., “Avionics
autonomous fly of a mini-helicopter robot. The system must be System for a Small Unmanned Helicopter Performing Agressive
Maneuvers”, Digital Avionics Systems Conference, 2000.
improved permanently, but the global architecture could be the
[5] Unmanned Aircraft Systems Roadmap 2005-2030. Department of
same. Defense, USA. 2005.
[6] Selier M., Voorsluijs G., et al., “Future surveillance using autonomous
unmanned helicopters”, AIAA/ICAS International Air and Space
Symposium and Exposition: The Next 100 Years, 2003.
[7] Vélez C.M., Agudelo A., “Control and Parameter Estimation of a Mini-
Helicopter Robot Using Rapid Prototyping Tools”, WSEAS Trans. on
Systems, Vol. 5, No. 9, ISSN 1109-2777, pp. 2250-2256, 2006
[8] Luqi L. Steigerwald R., “Rapid software prototyping”, Proceedings of
International Conference on System Sciences, Vol. 2, pp. 470-479, 1992
[9] Pollini L., Innocenti M., “A Synthetic Environment for Dynamic
Systems Control and Distributed Simulation”, IEEE Control System
Magazine, Vol. 20, No. 2, pp. 49-61, 2000
[10] Gas X-Cell Graphite Instruction Manual. Part Number 105-102. 1995
[11] MNav100CA User’s Manual. San Jose: Crossbow, 2005
[12] TP400B PC/104-Plus PC Compatible Computer: Technical Reference
Manual. Chesterfield: DSP Design, 2002.
[13] QNX Software, versión 6.2.1. www.qnx.com. Last visit: July 2010.
Figure 9. Software prototyping environment modules
[14] RxMux Functional Specifications. Merrimack: Reactive Technologies,
2007
ACKNOWLEDGMENT [15] Barry controls, Metal and Mesh Isolators,
http://www.barrycontrols.com/products/product.cfm?cid=8&fid=37,
This work was supported by EAFIT University with the Last visit: July 2010.
project under code 103-000011. The authors express thanks to [16] Real-Time Workshop: Users guide. Mathworks Inc, 2006.
students of Mathematical Engineering and Master in Applied [17] Using MATLAB version 7.3.0. (R2006b). MathWorks Inc, 2007.
Mathematics of EAFIT University, Medellin, Colombia, by [18] Using SIMULINK version 6.5 (R2006b). MathWorks Inc.
their constant support to the project.