Vous êtes sur la page 1sur 17

ACKNOWLEDGMENTS

I would like to acknowledge the contributions made by several people


in the design of the autopilot and supporting systems. First, I extend my gratitude to Dr.
Randy Beard and Dr. Timothy McLain for providing the vision, guidance and the endless
supply of money for parts and airplanes.

I would like to thank Walt Johnson for

countless hours spent laying out the incredibly small traces that made the autopilot board
as small and light as it is. I also want to acknowledge Derek Kingston for his work in
tackling the elusive attitude estimation problem. Josh Hintz and Dave Hubbard deserve
credit on three accounts: First, for sticking with the project in the early days when
working on the autopilot was not fun; Second, for spending long hours in the sun testing
doomed autopilot algorithms while everyone in the lab thought we were out sunbathing at
the park; Third, for developing the venerable Virtual Cockpit ground station. In addition,
I would like to thank Kendall Fowkes for the hours spent designing and building
airplanes only to have them broken into a million pieces. I would also like to thank
Carolyn Cornaby for having the courage to edit and proofread a 240 page thesis. Finally,
I would like to thank the following people for their many contributions: Steve Griffiths,
Josh Redding, Morgan Quigley, Deryl Snyder, Mark Denny, and Jen Wilds.

CONTENTS

Acknowledgments

vii

List of Figures

xiii

List of Tables

xvii

Introduction

1.1 Thesis Contributions ..................................................................................................4


1.1 Design Metrics ...........................................................................................................4
1.3 Related Work .............................................................................................................5
1.4 Technical Challenges .................................................................................................6
1.5 Thesis Organization ...................................................................................................7
2

Flight Control
2.1

Zagi Dynamics .................................................................................................9

2.1.1

Simulation Environment ............................................................................10

2.1.2

Setting Up the Simulation..........................................................................12

2.1.3

Lateral Dynamics Simulation ....................................................................12

2.1.4

Longitudinal Dynamics Simulation ...........................................................15

2.1.5

Simulation Analysis ...................................................................................16

2.2

Aircraft Control Design .................................................................................16

2.2.1

Lateral Control ..........................................................................................17

2.2.2

Longitudinal Control..................................................................................19
vii

2.3

2.3.1

Lateral Autopilot Simulation .....................................................................23

2.3.2

Longitudinal Autopilot Simulation ............................................................25

Autopilot Hardware

29

3.1

Autopilot system overview ............................................................................29

3.2

UAV Flight Platform .....................................................................................32

3.2.1

Flight Platform Requirements....................................................................33

3.2.3

Electric Conversion....................................................................................36

3.3

Avionics .........................................................................................................37

3.3.1

Autopilot Board .........................................................................................38

3.3.2

I/O ..............................................................................................................47

3.3.3

GPS Receiver .............................................................................................49

3.3.4

Communication Hardware .........................................................................50

3.3.5

Bypass Circuit............................................................................................53

3.3.6

Payload.......................................................................................................56

3.3
4

Closed-Loop Autopilot Simulation................................................................21

Ground Station Hardware ..............................................................................58

Autopilot Software
4.1

61

Autopilot Software Structure And Flow ........................................................62

4.1.1

Pre-Main Autopilot Software.....................................................................63

4.1.2

Main Loop..................................................................................................66

4.1.3

Costates ......................................................................................................68

4.2
4.2.1

Sensor Processing ..........................................................................................70


Data Collection ..........................................................................................71

viii

4.2.2
4.3

Attitude Estimation ........................................................................................75

4.3.1

Estimating Roll and Pitch ..........................................................................75

4.3.2

Estimating Heading....................................................................................78

4.4

Sensor Calibration..........................................................................................79

4.4.1

Autopilot Sensors.......................................................................................80

4.4.2

Calibrating The GPS ..................................................................................81

4.5

Low-Level Control Algorithms .....................................................................82

4.6

Mid-Level Control Algorithms ......................................................................84

4.6.1

Altitude Tracker .........................................................................................84

4.6.2

Waypoint Navigation Script ......................................................................86

4.7

Sensor Processing ......................................................................................72

High-Level Control........................................................................................96

4.7.1

Go Home Fail-Safe ....................................................................................96

4.7.2

PIC Fail-Safe..............................................................................................98

4.8

Autopilot Communication .............................................................................99

4.9

Autopilot Performance.................................................................................100

Autopilot Users Manual


5.1

105

Autopilot System .........................................................................................106

5.1.1

Airborne Components..............................................................................106

5.1.2

Ground Station Components....................................................................109

5.2

Ground Station Software..............................................................................111

5.2.1

Status Window .........................................................................................112

5.2.2

PID Loops Tab.........................................................................................116

ix

5.2.3

Waypoint Tab Window............................................................................124

5.2.3

Plane Setup Tab .......................................................................................132

5.3

Autopilot System Installation ......................................................................180

5.3.1

Installing The Autopilot...........................................................................181

5.3.2

Installing The GPS...................................................................................181

5.3.3

Installing The Radio Modem ...................................................................183

5.3.4

Installing The Pitot System......................................................................184

5.4

Autopilot Setup ............................................................................................185

5.4.1

Control Surface Setup ..............................................................................186

5.4.2

Sensor Calibration and Testing................................................................189

5.4.3

Initial PID Loop Setup .............................................................................193

5.4.4

Waypoint Navigation Script Setup ..........................................................195

5.4.5

Waypoint Navigation Script PID Configuration......................................196

5.4.6

Aircraft Limits .........................................................................................196

5.4.7

Fail-Safe Behavior ...................................................................................198

5.5

First Flight....................................................................................................200

5.6

Second Flight Session ..................................................................................202

5.6.1

Tuning The PID Gains .............................................................................202

5.6.2

Testing The Navigation Script And Altitude Tracker..............................203

5.6.3

Testing The Fail-Safes .............................................................................206

5.7

Pre-Flight .....................................................................................................207

5.7.1

Power-Up .................................................................................................207

5.7.2

Control Surfaces.......................................................................................208

5.7.3

GPS ..........................................................................................................208

5.7.4

Sensors .....................................................................................................209

5.7.5

Waypoint Programming...........................................................................210

5.7.6

PID Loops ................................................................................................210

5.7.7

Autopilot Commands ...............................................................................211

5.7.8

Launch......................................................................................................211

5.8

In-Flight Monitoring ....................................................................................213

5.9

Landing ........................................................................................................214

Appendix A

217

Appendix B

219

Appendix C

231

Appendix D

233

BIBLIOGRAPHY

235

xi

xii

LIST OF FIGURES

Figure 2.1: 6 DOF MATLAB Aircraft Simulation.......................................................... 12


Figure 2.2: Lateral response in the Zagi to step in aileron............................................... 13
Figure 2.3: Lateral response in the Zagi to step in rudder ............................................... 14
Figure 2.4: Longitudinal response in the Zagi to step in elevator ................................... 15
Figure 2.5: Inner lateral roll and roll rate controller. ....................................................... 17
Figure 2.6: Inner lateral yaw rate controller. ................................................................... 18
Figure 2.7: Outer lateral heading angle controller. .......................................................... 18
Figure 2.8: Inner longitudinal pitch and pitch rate controller.......................................... 19
Figure 2.9: Inner longitudinal airspeed controller. .......................................................... 20
Figure 2.10: Outer longitudinal altitude controller. ......................................................... 21
Figure 2.11: Outer longitudinal airspeed controller......................................................... 21
Figure 2.12: Simulink diagram of the closed loop autopilot simulation.......................... 22
Figure 2.13: Simulink diagram of autopilot block........................................................... 23
Figure 2.15: Closed loop lateral response to step in desired heading (Psi). .................... 24
Figure 2.16: Closed loop longitudinal response to step in desired pitch angle (Theta)... 25
Figure 2.18: Closed loop longitudinal response to step in desired velocity (Vp)............ 26
Figure 3.1: Autopilot Hardware........................................................................................ 30
Figure 3.2: Detailed UAV system diagram....................................................................... 31
Figure 3.3: Stock Zagi THL combat flying wing glider from Trick RC. ......................... 34
xiii

Figure 3.4: Completed Zagi THL flight platform with electric conversion. .................... 37
Figure 3.5: Avionics hardware diagram............................................................................ 38
Figure 3.6: Autopilot main board block diagram.............................................................. 39
Figure 3.7: In-house IMU hardware. ................................................................................ 45
Figure 3.8: Sensor Sampling Diagram.............................................................................. 46
Figure 3.9: Autopilot board showing interface ports. ....................................................... 48
Figure 3.10: Furuno GH-80 GPS installed. ...................................................................... 49
Figure3.11: Aerocomm AC4490-500-M3 digital modem installed in a UAV................. 51
Figure 3.12: 900 MHz digital communications dipole antenna installed in a UAV. ....... 52
Figure 3.13: Photo of the completed Bypass circuit. ........................................................ 54
Figure3.14: Bypass circuit diagram. ................................................................................. 55
Figure 3.15: Bypass circuit connected to the autopilot, servos, and RC receiver............. 56
Figure 3.16: Video payload installed in UAV. ................................................................ 57
Figure 3.17: Ground station hardware. ............................................................................. 59
Figure 4.1: Autopilot software high level diagram.......................................................... 62
Figure 4.2: Pre-main software flow. ................................................................................ 63
Figure 4.3: Global variables and structures. .................................................................... 64
Figure 4.4: Main loop flow and autopilot costates. ......................................................... 67
Figure 4.5: Sensor processing flow.................................................................................. 70
Figure 4.6: Attitude estimation flow................................................................................ 76
Figure 4.7: Heading estimation flow. .............................................................................. 79
Figure 4.8: Basic PID loop structure as implemented in the autopilot source code. ....... 83
Figure 4.9: Aileron control loop as implemented in the autopilot source code............... 84

xiv

Figure 4.10: Waypoint navigation script flow. ................................................................ 89


Figure 4.11: Closed loop response to 180 degree step in heading................................. 101
Figure 4.12: Closed loop altitude hold performance to constant commanded altitude . 102
Figure 4.13: Closed loop airspeed hold performance. ................................................... 103
Figure 4.12: Closed loop waypoint tracking performance............................................. 104
Figure 5.1: Autopilot hardware diagram........................................................................ 106
Figure 5.2: Airborne Hardware...................................................................................... 107
Figure 5.3: Gimbaled video camera as part of the video payload. ................................ 109
Figure 5.4: Ground Station hardware............................................................................. 110
Figure 5.5: Virtual Cockpit Main window..................................................................... 112
Figure 5.6: PID Loop configuration tab......................................................................... 117
Figure 5.7: Waypoint tab window. ................................................................................ 124
Figure 5.8: Navigation Status Information box. ............................................................ 131
Figure 5.9: GPS information in the Navigation Status box. .......................................... 132
Figure 5.10: Plane Setup tab window. ........................................................................... 133
Figure 5.11: Autopilot Calibration window................................................................... 175
Figure 5.12: Autopilot installed in the aircraft............................................................... 181
Figure 5.13: Sample GPS installation and ground plane. .............................................. 182
Figure 5.14: A sample modem installation. ................................................................... 183
Figure 5.15: A suitable dipole antenna installed in the winglet of a flying wing UAV. 184
Figure 5.16: Pitot tube installation in a flying wing aircraft.......................................... 185

xv

xvi

LIST OF TABLES

Table 3.1: Flight platform requirements. .......................................................................... 33


Table 3.2: Airframe specifications.................................................................................... 34
Table 3.3: Flight platform component list ........................................................................ 36
Table 3.4: Autopilot sensors ............................................................................................. 47
Table 3.5: Autopilot external interface ports .................................................................... 48
Table 5.1: Autopilot PID loops...................................................................................... 118
Table 5.2: User programmable PID loops. ..................................................................... 123
Table 5.3: System status bits.......................................................................................... 145
Table 5.4: PID loop ID numbers.................................................................................... 148
Table 5.6: FLC bit mask selection. ................................................................................ 164
Table 5.7: Effort reversal bit masks............................................................................... 165
Table 5.8: Servo mixing bit mask. ................................................................................. 165
Table 5.9: Servo mixing flag. ........................................................................................ 187

xvii

xviii

CHAPTER 1

INTRODUCTION
Unmanned Aerial Vehicles (UAVs) have proven their usefulness in military
applications in recent years. Large UAVs such as the General Dynamics Predator (27
foot wingspan) [1] have become an integral part of the U.S. arsenal. Since 1994, the
Predator has logged more than 20,000 flight hours, executing surveillance and tactical
missions in virtually every part of the world. The military is also making use of smaller
UAVs, known as mini UAVs. The AeroVironment Pointer Mini-UAV was one of the
first Mini UAVs deployed [2]. It has been used all over the world by small military units
as a short range video reconnaissance platform. It has a cost of $88,000 [3], relatively
low in comparison with the Predators price tag of $50 million. The Pointer has proven
itself robust and reliable, but it does have disadvantages. This UAV is designed to be
man-packable but the UAV is heavy and cumbersome for one person to carry. Its 9foot wingspan also makes it easily visible to the enemy at the low altitudes it flies.
Hence, the armed forces have made a significant push to develop a replacement for
Pointer. This effort has lead to the Dragon Eye Mini UAV. The Dragon Eye is smaller
and lighter than Pointer. However, Dragon Eye is still large enough (4 foot wing span)
[4] to be visible to the enemy and requires a 2-man crew to transport and operate. There
is room for improvement in the areas of UAV size and portability.

Recently, interest has increased in the relatively undeveloped area of UAVs with
wingspans of less than 2 feet. Military personnel, encouraged by the successes of Pointer
and Dragon Eye, desire to get the same close area surveillance capabilities into smaller,
lighter packages. These Micro UAVs have several advantages over Mini UAVs. Their
small size makes them easier to carry. It is possible for a Micro UAV to be transported
and operated by one individual, as opposed to the two- or three- man crews that are
currently required to operate the Mini UAVS. The size of Micro UAVs also allows them
to be packed in and deployed from small containers. For one application, this would
allow several Micro UAVs to be deployed from a Mini or Large UAV to gather closerange surveillance data. Micro UAVs are also less expensive than their larger
counterparts. They are smaller and require less material to build. This cost saving gives
them potential to be a disposable asset; Micro UAVs could be flown in unfriendly areas
where the risk of damage is high. It also frees the operator from the task of ensuring the
airplane is recovered, allowing more effort to be spent on primary mission goals.
In addition to military applications, there are many potential civilian
applications for Micro UAVs [5]. The size and cost advantages that make them
appealing to the military also make them attractive for use in the private sector.
However, the use of UAVs in non-military applications is currently limited for reasons of
cost, safety, and special requirements. The prohibitive cost of Large and Mini UAVs
makes it difficult for individuals and private organizations to purchase and own. The
current generation of Mini and Large UAVs also pose a potential danger to the civilian
population because of their weight. Micro UAVs are much safer in this aspect, as they
can weigh less than 1 kilogram. In addition to high cost and physical danger associated

with currently available UAVs, the challenges of using these aircraft in the private sector
include significant training of the operator. Large UAVs also require large runways to
operate.
Micro UAVs have the potential to overcome many of the limitations of Mini and
Large UAVs. For this reason there is great interest in adopting Micro UAVs for a variety
of applications. These include government applications, such as fire fighting and law
enforcement. The U.S. spends millions of dollars each year patrolling borders with
conventional aircraft [6]. If border agents were equipped with low-cost Micro UAVs,
thousands of dollars could be saved, as UAVs cost much less then similarly equipped
full-size aircraft. In the private sector, there also exists a range of surveillance
applications for UAVS. One example is use by the media. Newscasters spend millions
of dollars on helicopters to cover breaking news stories. Micro UAVs could be carried
by news crews and launched over a breaking story to gather aerial footage immediately.
The Micro UAVs would also pose less risk to the civilian population than low-flying fullsized helicopters. It is likely that as Micro UAVs become available, they will be
employed in many more applications to cut cost and improve coverage.
For Micro UAVs to be successful militarily and commercially, they must be
low-cost, easy to operate, and small. Currently, there are no fully autonomous
operational UAVs available with wingspans of less than 2 feet. One of the main
roadblocks in developing Micro UAVs is the size and weight of the autopilot system. For
an aircraft with a wingspan of less than 2 feet to carry an autopilot and useful payload,
the autopilot cannot weigh more than a few ounces. It must also be small enough to fit in

Vous aimerez peut-être aussi