Model based UAV autopilot tuning

Similar documents
Classical Control Based Autopilot Design Using PC/104

FLCS V2.1. AHRS, Autopilot, Gyro Stabilized Gimbals Control, Ground Control Station

Implementation of Nonlinear Reconfigurable Controllers for Autonomous Unmanned Vehicles

Module 2: Lecture 4 Flight Control System

If we want to show all the subsystems in the platform, we got the following detailed block diagrams of the platform.

A New Perspective to Altitude Acquire-and- Hold for Fixed Wing UAVs

Design of a Flight Stabilizer System and Automatic Control Using HIL Test Platform

A Mini UAV for security environmental monitoring and surveillance: telemetry data analysis

Heterogeneous Control of Small Size Unmanned Aerial Vehicles

Digiflight II SERIES AUTOPILOTS

Design of Self-tuning PID Controller Parameters Using Fuzzy Logic Controller for Quad-rotor Helicopter

GPS System Design and Control Modeling. Chua Shyan Jin, Ronald. Assoc. Prof Gerard Leng. Aeronautical Engineering Group, NUS

Operating Handbook For FD PILOT SERIES AUTOPILOTS

Applying Multisensor Information Fusion Technology to Develop an UAV Aircraft with Collision Avoidance Model

Hardware in the Loop Simulation for Unmanned Aerial Vehicles

Digiflight II SERIES AUTOPILOTS

Hardware-in-the-Loop Simulation for a Small Unmanned Aerial Vehicle A. Shawky *, A. Bayoumy Aly, A. Nashar, and M. Elsayed

New functions and changes summary

ARIES: Aerial Reconnaissance Instrumental Electronics System

OughtToPilot. Project Report of Submission PC128 to 2008 Propeller Design Contest. Jason Edelberg

412 th Test Wing. War-Winning Capabilities On Time, On Cost. Lessons Learned While Giving Unaugmented Airplanes to Augmentation-Dependent Pilots

Experimental Study of Autonomous Target Pursuit with a Micro Fixed Wing Aircraft

Design and Navigation Control of an Advanced Level CANSAT. Mansur ÇELEBİ Aeronautics and Space Technologies Institute Turkish Air Force Academy

University of Minnesota. Department of Aerospace Engineering & Mechanics. UAV Research Group

Applying Multisensor Information Fusion Technology to Develop an UAV Aircraft with Collision Avoidance Model

Design of FBW Flight Control Systems for Modern Combat Aircraft Shyam Chetty Former Director, CSIR-NAL Bangalore

CHAPTER 5 AUTOMATIC LANDING SYSTEM

Various levels of Simulation for Slybird MAV using Model Based Design

Teleoperation of a Tail-Sitter VTOL UAV

Modeling And Pid Cascade Control For Uav Type Quadrotor

TEAM AERO-I TEAM AERO-I JOURNAL PAPER DELHI TECHNOLOGICAL UNIVERSITY Journal paper for IARC 2014

Post-Installation Checkout All GRT EFIS Models

U-Pilot can fly the aircraft using waypoint navigation, even when the GPS signal has been lost by using dead-reckoning navigation. Can also orbit arou

ROBOTICS ENG YOUSEF A. SHATNAWI INTRODUCTION

User Manual Version 1.0

BLACKBOARD ARCHITECTURE FOR AN UNMANNED AERIAL VEHICLE CONTROLLER USING FUZZY INFERENCE SYSTEMS SWETHA PANDHITI

Development of Hybrid Flight Simulator with Multi Degree-of-Freedom Robot

Hydraulic Actuator Control Using an Multi-Purpose Electronic Interface Card

Haptic Collision Avoidance for a Remotely Operated Quadrotor UAV in Indoor Environments

Mobile Robots (Wheeled) (Take class notes)

IPRO 312: Unmanned Aerial Systems

QUADROTOR ROLL AND PITCH STABILIZATION USING SYSTEM IDENTIFICATION BASED REDESIGN OF EMPIRICAL CONTROLLERS

MGL Avionics EFIS. Integrated Autopilot. User and installation manual. Manual dated 24 May 2010

MGL Avionics. iefis. Integrated Autopilot. User and installation manual. Manual dated 14 November Page 1

F-104 Electronic Systems

FAA APPROVED AIRPLANE FLIGHT MANUAL SUPPLEMENT FOR. Trio Pro Pilot Autopilot

HELISIM SIMULATION CREATE. SET. HOVER

The Next Generation Design of Autonomous MAV Flight Control System SmartAP

Introducing the Quadrotor Flying Robot

The brain for the plane is the Airelectronics' U-Pilot flight control system, which is embedded inside the plane's fuselage, leaving a lot of space on

Jager UAVs to Locate GPS Interference

Assessing the likelihood of GNSS spoofing attacks on RPAS

Development of an Experimental Testbed for Multiple Vehicles Formation Flight Control

Position Control of a Hydraulic Servo System using PID Control

드론의제어원리. Professor H.J. Park, Dept. of Mechanical System Design, Seoul National University of Science and Technology.

Flight-dynamics Simulation Tools

CS-25 AMENDMENT 22 CHANGE INFORMATION

UAV: Design to Flight Report

Formation Flight CS 229 Project: Final Report

Frequency-Domain System Identification and Simulation of a Quadrotor Controller

INTEGRATION OF INSTRUMENTATION PAYLOAD ON A REMOTELY PILOTED AERIAL VEHICLE

OBSTACLE DETECTION AND COLLISION AVOIDANCE USING ULTRASONIC DISTANCE SENSORS FOR AN AUTONOMOUS QUADROCOPTER

Keywords: Aircraft Systems Integration, Real-Time Simulation, Hardware-In-The-Loop Testing

AIRCRAFT CONTROL AND SIMULATION

Artificial Neural Networks based Attitude Controlling of Longitudinal Autopilot for General Aviation Aircraft Nagababu V *1, Imran A 2

A Machine Tool Controller using Cascaded Servo Loops and Multiple Feedback Sensors per Axis

STUDY OF FIXED WING AIRCRAFT DYNAMICS USING SYSTEM IDENTIFICATION APPROACH

SMART BIRD TEAM UAS JOURNAL PAPER

FROM IN-FLIGHT SIMULATORS TO UAV SURROGATES

Omar E ROOD 1, Han-Sheng CHEN 2, Rodney L LARSON 3 And Richard F NOWAK 4 SUMMARY

Neural Flight Control Autopilot System. Qiuxia Liang Supervisor: dr. drs. Leon. J. M. Rothkrantz ir. Patrick. A. M. Ehlert

Small Unmanned Aerial Vehicle Simulation Research

FUZZY CONTROL FOR THE KADET SENIOR RADIOCONTROLLED AIRPLANE

Wide Area Wireless Networked Navigators

Module 13 Aircraft Aerodynamics, Structures and Systems

AN INSTRUMENTED FLIGHT TEST OF FLAPPING MICRO AIR VEHICLES USING A TRACKING SYSTEM

VCU Skyline. Team Members: Project Advisor: Dr. Robert Klenke. Last Modified May 13, 2004 VCU SKYLINE 1

Intermediate Lateral Autopilots (I) Yaw orientation control

Project Number: 13231

INTELLIGENT LANDING TECHNIQUE USING ULTRASONIC SENSOR FOR MAV APPLICATIONS

WIND TUNNEL FREE-FLIGHT TEST FOR FLIGHT DYNAMICS AND CONTROL SYSTEM EXPERIMENTS

Design Of An Autopilot For Small Unmanned Aerial Vehicles

Frequently Asked Questions

OPTIMAL AND PID CONTROLLER FOR CONTROLLING CAMERA S POSITION IN UNMANNED AERIAL VEHICLES

1, 2, 3,

Skylark OSD V4.0 USER MANUAL

ARKBIRD-Tiny Product Features:

DIGITAL CONTROL OF ELECTRO-HYDRAULIC STEERING TEST BENCH

ARDUINO BASED CALIBRATION OF AN INERTIAL SENSOR IN VIEW OF A GNSS/IMU INTEGRATION

UAV - UAS TECHNOLOGY BASICS

2009 Student UAS Competition. Abstract:

Baseline UAV Controller Initial Thesis Report

Final Report. Chazer Gator. by Siddharth Garg

TigreSAT 2010 &2011 June Monthly Report

SELF-BALANCING MOBILE ROBOT TILTER

SENLUTION Miniature Angular & Heading Reference System The World s Smallest Mini-AHRS

GUIDED WEAPONS RADAR TESTING

A Do-and-See Approach for Learning Mechatronics Concepts

Design and Implementation of FPGA Based Quadcopter

STORC: SEARCH TO RESCUE CRAFT FINAL TECHNICAL PAPER

Transcription:

Model based UAV autopilot tuning TINE TOMAZIC, DRAGO MATKO Pipistrel doo Ajdovscina, Faculty of Electrical Engineering Goriska cesta 5a, SI-57 Ajdovscina ; Trzaska cesta 5, SI- Ljubljana SLOVENIA tine@pipistrelsi, dragomatko@feuni-ljsi wwwpipistrelsi mscfeuni-ljsi Abstract: The paper presents the role of Autopilots in Unmanned Aerial Vehicles (UAVs) and the process of their configuration before flying can occur The common autopilot architecture, emphasising the control module, is given shortly and the functionality of the commercially available UAV autopilot "Micropilot MP8", used for initial flights of the first Slovenian UAV "Karantanija", is summarised in a table Furthermore, the development of the 3 degrees-of-freedom aircraft motion simulator is presented The motion simulator was developed and used as a test bench in attempt to tailor autopilot's flight dynamics to "Karantanija" UAV even before the actual first unmanned flight The author presents the evolution of the motion simulator which was first used in open-loop configuration and later adapted for Hardware-in-the- Loop simulations using actual autopilot hardware Once completed, the equipment was used to evaluate UAV's (autopilots) capability to carry-out the required mission in case of various sensor failures in different stages of flight The paper also presents the anticipated behaviour of the aircraft following an engine failure in two different autopilot altitude handling modes, based on the experiment with the 3 degrees-of-freedom motion platform Benefits, future possibilities of use and further development of the aircraft motion simulator are discussed in the conclusion Key-Words: Theory of Flight, UAV, autopilot, HIL tuning, motion simulator, dynamic modelling, safe Introduction UAVs range from small tactical bird-sized flying machines with only minimal sensors to fully armed strategic aircraft capable of operating from the other side of the World At the moment UAVs seem to be the most attractive military and law-enforcement flying machines due to lower maintenance costs, lower operational costs, and smaller risk to human personnel What is more, UAVs have recently proliferated in non-military operations, which include forest fire supervision (Hungary), whale hunting oversight (Western Europe, Japan), pirate ship attack prevention (Indonesia, Australia), road traffic surveillance and traffic-jam reporting (USA), and more The very concept of UAV requires very advanced autopilot systems Amongst other features UAV systems require that in the event of a lost remote control signal the vehicle autonomously returns to home base Early age UAVs were called drones because of their limited autonomous capabilities They were piloted directly by a human operator, who used camera imagery and data feeds from basic flight instruments to judge the progress of the flight Later UAVs incorporated basic autopilot functions such as pitch-hold mode to ease the workload off the drone operators by automatically stabilizing the UAV Further development yielded autopilot devices, which were able to carry out stabilized flight as well as basic manoeuvres, although the flights were still commanded by a human operator in real-time Modern UAVs autopilots, like their mannedaviation counterparts, generally divide a flight into several phases, such as take-off, climb, level flight, descent, approach/landing and various emergency situation recoveries Each of these flight phases present their own set of challenges, which autopilots must cope with But a modern UAV autopilot is not just a system, used to steer the aircraft in a stabilized manner it is an advanced navigational package which typically incorporates a Control Module, Flight Management System, Continuous double-way Telemetry Data Link and the capability of being over-ridden with operators manual control in any phase of the flight Ideally, the autopilot system would also function hand-in-hand with advanced sensory equipment, which includes but is not limited to a stabilised camera gimble, image recognition modules, emission sensors, radiation sensors, various radars etc Up to present date, there have been no known events of configuring a tactical-size-uav Autopilot's flight dynamics on a device separate from the actual airframe and in controlled laboratory environment before the actual maiden flight To achieve this, a 3- ISBN: 978-96-474-68-4 8

DOF motion platform, which mimics airframe's exact behaviour in flight, was developed Using this equipment, flight dynamics and other primary functions of the Autopilot were configured first, following by the evaluation of its performance during various normal and emergency situations which arise in actual flights Note that all of the above occurred before the actual airframe took autonomous flight [] The paper is organised as follows: In section the autopilot architecture including control module, flight management system, data link and ground station is presented Commercially available UAV autopilot Micropilot MP8, used in "Karantanija", is reviewed in Section 3 Section 4 describes the development and use of the 3 degrees-of-freedom aircraft motion platform for configuration of the autopilot's flight dynamics Problem Formulation The decision to build the aircraft motion simulator was made after considering the eventual high material loss involved in case of losing the airframe during the maiden and initial flights using autopilot steering and guidance [,3] "Karantanija" is a highperformance, slippery, electric powered UAV with reconnaissance capabilities using a visual spectrum or thermal imaging camera [7] Losing the only existing specimen at the time would bring a significant delay to the development and cause numerous problems with the re-acquisition of the necessary equipment Development The aim of building the aircraft motion simulator was to obtain a time and cost efficient solution for initial configuration of the autopilot's flight dynamics, which would take place inside controlled laboratory environment without jeopardising the actual UAV's integrity As this has, to the best of author's knowledge, not been attempted before, it was also unknown whether mimicking roll, pitch and yaw would suffice to persuade the Autopilot as if it is actually flying an airframe With most experience in modelling and I/O communications in Matlab/Simulink, this was the chosen environment for the modelling of the actual aircraft Equations of aircraft motion were used to produce a non-linear model tailored to the proportions and specifications of the "Karantanija" design A full set of equations of motion [3] are as follows in () through () ( xcosαcos β ysin β zsinαcos β) V = F F F () m α ( Fxsinα Fzcosα) Vmcos β q ( pcosα rsinα) tan β β ( Fxcosαsin β Fycos β Fzsinαsin β) psinα rcosα = () = (3) Vm p = Pppp Ppqpq Pprpr Pqqq qr P r r m n P qr r PL P M P N q = Q p Q pq Q pr Q q pp pq pr qq Q qr Q r Q L Q M Q N qr rr m n r = R p R pq R pr R q pp pq pr qq R qr R r R L R M R N qr rr m n qsinϕ rcosϕ ψ cosθ (4) (5) (6) = (7) θ = qcosϕ rsinϕ (8) ϕ = p ψ sinθ (9) x = ucosθcos ψ v(sinϕsinθcosψ cosϕsin ψ) e w(cosϕsinθcosψ sinϕsin ψ) y = ucosθsin ψ v(sinϕsinθsinψ cosϕcos ψ) e w(cosϕsinθsinψ sinϕcos ψ) () () H = ( usinθ vsinϕcosθ wcosϕcos θ) () Where: V - aircraft velocity (speed) α - angle of attack β - sideslip angle p - angular velocity around x axis (roll rate) q - angular velocity around y axis (pitch rate) r - angular velocity around z axis (yaw rate) ψθϕ,, - yaw, pitch, roll F xyz,, - force in direction of x, y, z axis LM,, N - torque around x, y, z axis Pii, Qii, Rii - constants which are derived from aircraft proportions and specifications Having assembled the non-linear model of "Karantanija", where the inputs were: deflection of all control surfaces (including flaps), throttle and atmospherical conditions (air density, temperature etc) disturbances (wind, turbulence) and the outputs were all previously mentioned states, it was discovered that the non-linear model cannot be ISBN: 978-96-474-68-4 9

computed in real-time in Simulink on given hardware Matlab R4, Intel P4, 8 GHz, GB RAM Hence, the model was linearised [4] at several airspeed and angle-of-attack operating points, spread across the flyable envelope of "Karantanija" Using a Matlab S-function the State Space model matrices A and B (C is I, D is zero) were interpolated on-the-fly given the actual airspeed and angle-of-attack computed in the previous simulation step Testing and code optimisation showed that the model can be computed real-time up to times per second on the same hardware Having obtained a working real time quasi-nonlinear model of "Karantanija" (Figure on bottom of this page) it was necessary to develop a way to transmit the computed real-time outputs to the 3 DOF motion platform The motion platform comprises of 3 mass balanced metal frames with bearings and a plexy-glass platform where the test equipment can be fixed (Figure ) The motion of the platform is driven by 3 powerful Graupner servo motors, which are normally used in large remote controlled aircraft models yaw) to the SSC-3 controller, thus the motion platform Upon completion, the 3 degrees-of-freedom motion simulator ie open loop system response was tested using a joystick input and validated for realistic results Hardware In The Loop In order to configure the autopilot it was necessary to intercept the position of the control surfaces, commanded by the autopilots Control Module, and route them into the inputs of the "Karantanija" Simulink model To achieve this, servo motors to be used on the aircraft were modified and fitted with an extra set of wires which transmitted the position of the servo motor (voltage) to Simulink, using a National Instruments A/D converter The voltage corresponding to the position of servo motor (control surface) is then adapted and used as a numerical input to the Simulink model Schematic of Harware In the Loop configuration of the 3 DOF aircraft motion simulator is shown on Figure Figure HIL Schematic Configuratino of the Autopilot With the MP8 mounted on the 3 DOF motion platform it and the Hardware In the Loop mode established, it was first necessary to disable the MP8's GPS input by using the "FFFF" command over the serial connection The Compass Module replaced the GPS to provide the MP8 with information about heading What followed was the tuning of the feedback loops with either P-, PIand PID-type controllers There are also possibilities of incorporating feed-forward control to improve the coordination of eg aileron and rudder inputs Tab 5 indicates all feedback loops featured in MP8's Control Module Figure 3-DOF Motion Platform Selection of such components contributed to costefficiency of the project To control the servo motors, the SSC-3 PWM servo controller by Lynxmotion was selected It offers 3 channels of microstep resolution servo control (µs resolution of PWM signal) and Bidirectional communication with Query commands [5] The SSC-3 controllers connects to Matlab using conventional RS-3 communication where commands can be sent and received with Matlab built-in functions "serial", "fopen", "fprintf" and "fclose" Again, a Matlab S-function was used to transmit the calculated model outputs (roll, pitch, ISBN: 978-96-474-68-4

Table Available Feedback Loops Name Input Output Roll (rate) Aileron (rate) Elevator Sideslip Rudder 3 Rudder 4* Airspeed Throttle 5* Altitude Throttle 6 Altitude 7** AGL 8 Airspeed 9 Roll *** Crosstrack error Descent rate * left at default values as the exact engine power was not yet known ** impossible to simulate with precision, left at default value *** impossible to simulate indoor with no GPS data As the presentation of the results gathered in the abovementioned evaluation can be rather complicated, only the case of engine failure will be displayed in this paper The most common issue with engine failure is sudden loss of airspeed resulting in a stall and uncontrollable flight MP 8 offers two major ways of maintaining certain altitude and airspeed The operator can select the obvious "Elevator controls altitude, throttle controls airspeed" mode, or the second "Elevator controls airspeed, throttle controls altitude While the first yields more precise altitude control, it proved problematic in case of engine failure Therewith, stall occurs multiple times as a result of the controller attempting to re-establish flight at a predetermined altitude, but failing to achieve due to the lack of available power (Figure 6) The second pitch control mode is slower in response to in-flight disturbances, but handles engine failure in a much safer manner While the tuning of loops -3, 9 and on the 3 DOF motion simulator was carried out with relative ease [6, 7], loops 4,5,6 and 8 proved more difficult The reason was simple, yet not easy to overcome During feedback loops tuning, the pitot (airspeed probe) tube and static port (altitude probe) were blocked and set to a constant level in the middle of the flyable envelope To carry out the tuning of loops 4,5,6 and 8 it was therefore necessary to design a system which would provide differential and static pressure to the autopilot's main board and where these pressures would fluctuate according to Simulink model outputs To achieve this, a system of two small air pumps and relatively large ( ml) buffer bottles were connected to the pressure ports of the Autopilot The pressure pumps were driven by Simulink model outputs, adapted and routed through a National Instruments D/A converter Thereby, an even more complete Hardware in the Loop functionality was achieved and the missing feedback loops tuned With the autopilot being mounted at easy reach it was possible to observe and evaluate unpredictable and emergency situations which may occur in real flight of the UAV Abnormal situations which were evaluated include: Figure 3 Elevator controls altitude Stall does not occur and the aircraft starts to descent at a constant airspeed and rate of descent (Figure 4) Figures 3 and 4 present two states, key to evaluation of flight safety in case of engine failure airspeed and altitude On both figures, equal altitude span in displayed on bottom graphs is used for clarity Also, the moment of engine failure is highlighted with a red circle As Karantania's engine is electric, which can routinely be stopped mid-flight for staying silent for periods of time during a mission, the "Elevator controls airspeed, throttle controls altitude" mode was used for final implementation Failed ailerons (both neutral position and displaced); Failed elevator (both neutral position and displaced); Failed rudder (both neutral position and displaced); Engine failure ISBN: 978-96-474-68-4

3 Real-life performance correlation 4 Conclusion Following the simulator-based MP8 set-up the autopilot was installed to the actual Karantanija UAV airframe and tested for in-flight performance Data analysis was performed using the on-board flight data recorded It was determined that all feedback loops, which parameters were tuned during simulation flights on the 3-DOF Motion Platform, performed in a stable manner and with satisfactory results As a matter of fact, only feedback loop 4Airspeed-Throttle feedback loop required major tuning during actual test flights as it was left on default values during simulation trials Using the 3 DOF aircraft motion simulator combined with model-generated airspeed and altitude feed to the autopilot, it was proven that it is possible to "convince" the autopilot that it is "flying" a real airframe The low costs of development and the advantage of tuning various elements of the Control Module of the autopilot indoors most definitely outweigh the eventual material loss in case of a crash during maiden and initial flights using autopilot steering and navigation There is no other known method of determining aircraft's response (stability and consistency of flight) using the actual on-board hardware in emergency situations alike, without jeopardizing the integrity of the airframe Hence, the 3 DOF motion simulator is considered invaluable for the development team of "Karantanija" What is more, the non-linear model used to simulate the behaviour of "Karantanija" on the motion platform can be adapted to replicate the behavior of another type of aircraft with relative ease Also, the motion platform can be driven using a different set of motion equations, simulating movements of virtually and moving body in 3 degrees of freedom Figure 4 Elevator controls airspeed ACKNOWLEDGEMENTS Figures 5 and 6 show data acquired from the onboard flight data recorded during one of the initial test flights The bottom-most line on the Figure 6 indicates when the autopilot flew in automated CIC (Computer In Control) mode Then, the actual roll angle matched the desired roll angle as predicted Roll 8_35 Operation part financed by the European Union, European Social Fund References: [] T Tomazic, D Matko Configuration of UAV autopilots dynamics using a 3 DOF aircraft motion simulator Proceedings of Eurosim 7, 7 [] Mircopilot Inc Micropilot Autopilot Installation and Operation Manual Mircopilot Inc, 998-7 [3] D Matko, R Karba, and B Zupančič Simulation and Modelling of Continuous Systems: A Case Study Approach Prentice Hall 99 [4] Franc Jenko Non-linear mathematical model of aircraft and flight animation (in Slovene) MSc thesis, University of Ljubljana, Faculty of Electrical Engineering, 5 [5] R Karba, System Modelling (in Slovene) Faculty of Electrical Engineering, Ljubljana 999 Start = 384 Stop = 456 8 CiC mode Desired Current 6 4 Roll [stopinje] ï ï4 ï6 ï8 ï 4 6 8 3 3 Cas [s] 34 36 38 4 Figure 5 Desired and Actual Roll Trajektorija 8_35 Start = 384 Stop = 456 6 6/79/3 7/6/8 4 5/36/3 Sever [m] 8/45/ 4/96/9 9/53/9 3/36/5 3/5/6 ï 3/48/ 33/5/6 34/55/3 ï4 trajektorija cas/visina/hitrost CiC mode Start ï6 ï ï 3 Vzhod [m] 4 5 6 7 Figure 6 Flown trajectory over point-determined curse ISBN: 978-96-474-68-4