Full text
PROJECTE DE FI DE CARRERA T´ ITOL DEL PFC : Ground Control Segment for UAS Civil Applications TITULACI ´ O: Master in Science in Telecommunication Engineering & Management) AUTOR: Ra ´ul Cuadrado Santolaria DIRECTOR: Pablo Royo Chic DATA: November 4, 2011
Title : Ground Control Segment for UAS Civil Applications Author: Ra´ ul Cuadrado Santolaria Director: Pablo Royo Chic Date: November 4, 2011 Overview The aeronautical industry is in a new era of growth thanks to numerous technological advances. One of them is the UAS; Unmanned Aircraft Systems are able to fly by themselves with autonomous operation capabilities. UAS can advantage manned aircrafts in the so called D-cube applications: Dull, Dirty or Dangerous. Risks and costs can be minimized using UAS since they need no crew and their construction, operation and maintenance costs are comparatively lower. This Master Thesis has been developed in the ICARUS (Intelligent Communications and Avionics for Robust Unmanned aerial Systems) research group, which is developing a new platform with UAS technology for civil use. It is true that this type of technology is already used in the military field for years, but it is now in the civil use where it can be expanded even more. Under this scenario, a certain level of control and monitoring is required from the ground segment so that the pilot in command (PiC) is able to supervise the VAS operations. Therefore, it is needed an application in order to solve all pilot in command necessities. A real UAS flight has many different specific phases, for each one of the phases is needed a specific information to shown. This application has to control the UAS, the flight plans and will receive all the information that generates the UAS payload. This Master Thesis solves some of the objectives of the ICARUS research group. One of the main parts of the project is the design and implementation of two applications for the Ground Control Station (GCS). In the GCS we need different workstations, each one for flight plan modifications. In GCS we need three different workstations, each one for different purpose. The first one is the workstation for the PiC to flight control (called Flight Monitor Service). The second one is the workstation for the PoC to manage the flight plan modifications (called Flight Plan Monitor Service) and the las one is for mission and payload management. This project is focused in the design and development of the first two workstation.
Quiero dar las gr´ acias a mi familia por ayudarme a tirar con todo hacia adelante y a Alba por esperarme estos dos a˜ nos. Ante todo quiero dedicar este proyecto a Pablo por aguantarme y ayudarme todo este tiempo. Gr´ acias!!
CONTENTS INTRODUCCTION ................................ 1 CHAPTER 1. Background ........................... 5 1.1. Middleware Architecture for Remote Embedded Applications (MAREA) . . 5 1.2. USAL: UAS service abstraction layer ..................... 6 1.3. Flight Plan Specification Language . . . . . . . . . . . . . . . . . . . . . . 6 CHAPTER 2. Geographic Information System Management . . . . 9 2.1. Specifications .................................. 9 2.2. Architecture ................................... 10 2.3. Design ...................................... 11 2.3.1. BruTile Mapping Control . . . . . . . . . . . . . . . . . . . . . . . . 11 2.3.2. Vector Layer Manager . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.3.3. Spatial Reference Systems Manager . . . . . . . . . . . . . . . . . 14 2.3.4. GIS Providers Manager . . . . . . . . . . . . . . . . . . . . . . . . 14 2.4. Implementation ................................. 14 2.4.1. UcMapControl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.4.2. Vector Layers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 2.4.3. MapCoordinate . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 CHAPTER 3. Graphical Controls Library for the Ground Control Stations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 3.1. Primary Flight Display ............................. 21 3.1.1. Design and Implementation . . . . . . . . . . . . . . . . . . . . . . 22 3.2. Cockpit Display of Traffic Information ..................... 22 3.2.1. Design and Implementation . . . . . . . . . . . . . . . . . . . . . . 23 3.3. Manager of Virtual Autopilot States . . . . . . . . . . . . . . . . . . . . . . 24 3.3.1. Design and Implementation . . . . . . . . . . . . . . . . . . . . . . 24 3.4. Display and Graph Generator ......................... 25 3.4.1. Design and Implementation . . . . . . . . . . . . . . . . . . . . . . 25
3.5. Video and Audio Player and Grabber ..................... 26 3.5.1. Design and Implementation . . . . . . . . . . . . . . . . . . . . . . 26 3.6. Interface for Joystick Management . . . . . . . . . . . . . . . . . . . . . . 27 3.6.1. Design and Implementation . . . . . . . . . . . . . . . . . . . . . . 28 3.7. Google Earth Synthetic View ......................... 29 3.7.1. Design and Implementation . . . . . . . . . . . . . . . . . . . . . . 29 CHAPTER 4. Flight Plan Monitor Service . . . . . . . . . . . . . . . . . 31 4.1. Flight Plan Monitor Requirements . . . . . . . . . . . . . . . . . . . . . . . 31 4.2. Flight Plan Monitor Architecture . . . . . . . . . . . . . . . . . . . . . . . . 31 4.3. Flight Plan Monitor Design and Implementation . . . . . . . . . . . . . . . 32 4.4. Flight Plan Monitor Graphical User Interface . . . . . . . . . . . . . . . . . 33 CHAPTER 5. Flight Monitor Service . . . . . . . . . . . . . . . . . . . . 37 5.1. Flight Monitor Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . 37 5.2. Flight Monitor Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . 37 5.3. Flight Monitor Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 5.4. Flight Monitor Implementation ......................... 39 5.4.1. Code Implementation . . . . . . . . . . . . . . . . . . . . . . . . . 39 5.4.2. Interface Implementation . . . . . . . . . . . . . . . . . . . . . . . 40 CHAPTER 6. Conclusions and Future Work . . . . . . . . . . . . . . . 43 6.1. Conclusions ................................... 43 6.2. Future Work .................................. 44 6.3. Environmental Impact ............................. 44 BIBLIOGRAPHY ................................. 47
LIST OF FIGURES 1 Ground control station distribution. . . . . . . . . . . . . . . . . . . . . . . . . 2 1.1 Main flight plan structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.1 Geographic Information System Management architecture . . . . . . . . . . . 10 2.2 Geographic Information System Management design . . . . . . . . . . . . . . 11 2.3 BruTile mapping control design . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.4 Design of fligh plan layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2.5 UcMapControl class diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 2.6 UcMapControl class diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 2.7 MapControlLayer class diagram . . . . . . . . . . . . . . . . . . . . . . . . . 17 2.8 FlightPlanMapControlLayer class diagram . . . . . . . . . . . . . . . . . . . . 18 2.9 MapCoordinates implementation . . . . . . . . . . . . . . . . . . . . . . . . 19 3.1 Architecture of Primary Flight Display control . . . . . . . . . . . . . . . . . . 22 3.2 Cockpit Display of Traffic Information control architecture . . . . . . . . . . . . 23 3.3 Diagram of Virtual Autopilot states control . . . . . . . . . . . . . . . . . . . . 24 3.4 Architecture of control to display flight plan as a graph . . . . . . . . . . . . . . 26 3.5 Architecture of video and audio control . . . . . . . . . . . . . . . . . . . . . 27 3.6 Joystick interface diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 3.7 Architecture of control to generate synthetic view . . . . . . . . . . . . . . . . 29 4.1 Architecture of Flight Plan Monitor Service . . . . . . . . . . . . . . . . . . . . 32 4.2 Design of Flight Plan Monitor Service . . . . . . . . . . . . . . . . . . . . . . 32 4.3 Flight Plan Monitor screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 4.4 Tools for flight plan and updates management . . . . . . . . . . . . . . . . . . 35 5.1 Architecture of Flight Monitor Service . . . . . . . . . . . . . . . . . . . . . . 38 5.2 Design of Flight Monitor Service . . . . . . . . . . . . . . . . . . . . . . . . . 39 5.3 Class diagram of Flight Monitor Service . . . . . . . . . . . . . . . . . . . . . 40 5.4 Main screen of Flight Monitor Service . . . . . . . . . . . . . . . . . . . . . . 41 5.5 Secondary screen of Flight Monitor Service . . . . . . . . . . . . . . . . . . . 41
2 Ground Control Segment for UAS Civil Applications Figure 1: Ground control station distribution. •Flight Plan Monitor Workstation: The FPMo is designed for the pilot on command (PoC) users profile. The Flight Plan Manager (FPMa) capabilities are managed with the FPMo; by means of this workstation we can monitor and edit the flight plan. The capabilities required of the FPMo are related to inherent dynamic behaviors offered by the FPM and the surrounding services that help manage in-flight contingencies, takeoff and landing operations, etc •Mission Monitor Workstation: During a real flight mission this workstation will be the most important one. The MMo is the workstation used to manage the mission and the payload. All the information produced by the UAS payload as the sensors or cameras will be shown in this workstation for the post process. This thesis focuses on the development of two of the workstations of the GCS, particularly the FPMo and FM. These stations can be analyzed as a set of elements that provide information on the status of UAS or elements that allow interaction with it. In order to reuse the work done for these two workstations, it was decided to implement the stations from small modules or controls. For this reason one of the main components developed for this project is a library of controls which contains all the little pieces that make up the FPM and the FM. Objectives The main objective of this project is to develop the Flight Monitor (FM) and Flight Plan Monitor(FPMo) workstations for the ICARUS Ground Control Station. Inside this big main
3 objectives, four different goals were fixed at the beginning of the thesis: •The workstations have to be stable. The FM and FPMo do not have to implement a lot of features but they have to be robust to serious failures (execution can not be interrupted). •The stations have to be implemented in small controls. This controls are grouped in a library of controls in order to be reused. •Both workstations need control to visualize data over a map. For this reason it is necessary to develop a control for visualizing this data without Internet connection. •The final application has to be integrated inside the ICARUS simulator (called ISIS). It has to take into account the platform specifications, the requirements and the interaction with other simulator components.
4 Ground Control Segment for UAS Civil Applications
Background 5 CHAPTER 1. BACKGROUND 1.1. Middleware Architecture for Remote Embedded Applications (MAREA) For implementing UAS civil missions we use a distributed embedded system that will be on board of the aircraft and that will operate as a payload/mission controller. The proposed system is built as a set of embedded microprocessors, connected by a Local Area Network (LAN), in a purely distributed and scalable architecture. Over the different distributed elements of the system we will deploy software components, called services, which will implement the required functionalities. These services cooperate for the accomplishment of the UAS mission. MAREA is a middleware-based software system used to communicate different services over the local area network (LAN)[3]. MAREA provides an execution environment with communication channels and common functionalities. The role of each service is expressed by the action of publish, subscribe, or both simultaneously; in this way, the publish/subscribe model eliminates complex network programming for distributed applications that makes it easy to implement an embedded service. MAREA offers the localization of the other services and manages their discovery within the network; it handles all the transfer chores, message addressing and retransmission,data delivery, flow control, etc. MAREA promotes a publish/subscribe model for sending and receiving data, events and commands among the services of the UAS. Services that produce valuable data publish this information while other services may subscribe to them. MAREA is responsible for delivering the information to all subscribers that declare an interest in the topic. Information exchange is carried out through four communication primitives, which have been named as Variables, Events, Remote Invocations and File Transmissions. •Variables. Variables are the transmission of structured, and generally short, information from a service to one or more services of the distributed system. •Events. Like Variables, Events also follow the publication-subscription paradigm. The utility of Events is to inform of punctual and important facts to all the services that care about. •Remote Invocation. The Remote Invocation is an intuitive way to model one-to-one of interactions between services. •File Transmission. The File Transmission primitive is used basically to transfer long file-structured information from a node to another when exists the need to transfer continuous media with safety variables. Variables are the transmission of structured, and generally short, information from a service to one or more services of the distributed system.
6 Ground Control Segment for UAS Civil Applications 1.2. USAL: UAS service abstraction layer Providing a common infrastructure for communicating isolated UAS services is not enough for keeping the development and maintenance costs for UAV systems low. The existence of an open-architecture avionics package specifically designed for UAS may alleviate the developments costs by reducing them to a simple parameterization. From the study and definition of several UAS missions, one can identify the most common requirements and functionalities that are present among them. The UAS Service Abstraction Layer (USAL) is the set of available services running on top of the UAS architecture to give support to most types of UAS missions [1]. USAL can be compared to an operating system. Computers have hardware devices used for input/output operations. Every device has its own particularities and the OS offers an abstraction layer to access such devices in a uniform way. Basically, it publishes an Application Program Interface (API) which provides end-users with efficient and secure access to all hardware elements. The USAL considers sensors and in general all payload as hardware devices of a computer. The USAL is a software abstraction layer that gives facilities to end-users programs to access the UAS payload. The USAL also provides many other useful features designed to simplify the complexity of developing the UAS application. Even though the USAL is composed of a large set of available services, not all of them have to be present in every UAS or in every mission. Only those services required for a given configuration/mission should be present and/or activated in the UAS. Available USAL services have been classified in three categories: •Flight services: all services in charge of basic UAS flight operations:autopilot, basic monitoring, contingency management, etc. •Mission services: all services in charge of developing the actual UAS mission, controlling the payload and the area of surveillance, processing or saving the earth observation information and showing it to the end users. •Payload services: specialized services interfacing with the input/output capabilities provided by the actual payload carried by the UAS. 1.3. Flight Plan Specification Language In order to manage unmanned vehicle in autonomous mode it is necessary to load a flight plan. The flight plan is a document that specifies the route the aircraft will follow. Common UAS autopilot systems use as a mechanism for flight plan execution a list of points. However this method has some limitations to specify a complex mission. For that reason in the ICARUS group we have been developed a complex flight plan language [2]. The flight plans defined using waypoints have several important limitations:
Background 7 •It is difficult to specify complex trajectories and it does not support constructs such as forks or iterations. •It is not flexible because small changes may imply having to deal with a considerable amount of waypoints •It is unable to easly adapt to mission circumstances. •It lacks constructs for grouping and reusing flight plan fragments. To improve current UAS operation a flight plan language with richer semantics is proposed, which enables flight progress to adapt to mission circumstances. The flight plan is stored in an XML document that will be submitted to the UAS in order to carry out its execution. A flight plan specifies the path followed by the aircraft using several items. As seen in Figure1.1, each flight plan is composed of a sequence of stages, such as take-off, departure procedure and others. Each flight plan stage is composed of a structured collection of legs. The leg is used to specify the trajectory followed by the aircraft to reach a given waypoint from the preceding one. In the simplest case this trajectory will be a straight line. Figure 1.1: Main flight plan structure
8 Ground Control Segment for UAS Civil Applications
Geographic Information System Management 9 CHAPTER 2. GEOGRAPHIC INFORMATION SYSTEM MANAGEMENT This chapter describes the component implemented to visualize georeferenced information. This component allows map visualization from different providers, and representation of georeferenced data, such as UAS path, flight plan, etc. The first objective of this component is to provide the Flight Plan Monitor Workstation an optimal way for illustrating the UAS path and UAS flight plan on a map. Previous ICARUS applications [4] use the ShapMap library [7] to seize the opportunities offered by Geospatial Information Services (GIS) to provide map data. SharpMap is a mapping library to use in web and desktop applications. It provides access to many types of GIS data, enables spatial querying of that data, and render maps. The main problem of this library is that it can not save maps locally. Therefore Internet connection is necessary to load all maps. UAS usually involve work in areas where it is difficult to access. In many cases the GCS is located in places where it is impossible to have Internet access so it is impossible to load the maps. There are other solutions like the paid version of Google Earth Portable [15], but the price of the product, for the performance required, is too high. For solving this problem we have decided to use the BruTile library [6], which is able to provide a map data and to save it a local cache. The main BruTile problem is that it can be used to display maps but it does not allow to represent any object on the map. Therefore, the second project decision was to develop a mechanism to link a georeferenced data representation with BruTile data. 2.1. Specifications The minimum requirements of this software component are described below: •Georeferenced 2D map display. •Control operation without Internet. •Loading maps using WMS [14] standard. •Loading Google Maps maps [16]. •Georeferenced objects on map. •Map movement by mouse. •Zoom in and Zoom out. •Zooming in a given area. •Centering the map on a point.
10 Ground Control Segment for UAS Civil Applications Another important requirement is that it can be reused. To accomplish this requirements we decided to implement a fully independent control to GCS applications. The control has been implemented for reusing in other applications minimizing the effort to adapt the applications. 2.2. Architecture The manager of Geographic Information is called UcMapControl. It is a visual control which has been programmed using .Net. To develop the control core C# has been used, and the presentation layer is implemented using WPF [10]. This control is divided into two blocks (Figure 2.1), one block is the BruTile map control and the other block contains the layers to show georeferenced data. Figure 2.1: Geographic Information System Management architecture The BruTile map block is responsible visualizing GIS data obtained from WMS or GoogleEarth servers. It manages the GIS data cache and provides the main mechanism for interaction between the user and the map, such as moving the map or the zoom switch. In order to show different georeferenced data we have designed a mechanism based in layers. The layer is the element that allows drawing referenced items on the map. Also it provides the mechanisms needed to transform particular data in graphical form. Each layer is oriented to solve a particular problem. Several layers have been developed for this project: •Layer to display flight plans. •Layer to display the UAS path. •Layer to display landmarks. •Layer to display a runway.
Geographic Information System Management 11 •Layer to visualize the UAS waypoint destination. 2.3. Design In this section we are going to describe the different elements and resources that make up the UcMapControl control. Special attention is paid to the basic components that have been implemented, explaining the use and the basic attributes that compose them. Figure 2.2 shows the design diagram of the control. The Manager of Geographic Information, called UcMapControl, is the basic component. UcMapControl contains all other controls. It is responsible to give the map source to BruTile Mapping Control and manages the user interaction. Also the UcMapControl synchronizes the vector layers. The UcMapControl provides the map source to BruTile Mapping Control [8] . The GIS provider manager delivers to UcMapControl the server configurations. Finally, Spatial Reference System (SRS) manager is the object responsible to do the geographic point conversion between vector layers and BruTile control. Figure 2.2: Geographic Information System Management design These components are described in more detail in following sections. 2.3.1. BruTile Mapping Control In order to manage the map data we have used a BruTile Mapping Control called MapControl. The BruTile control separates drawing from data fetching. The renderer only render the data it has available in memory at that instant. The fetcher runs on background thread and receives messages from the UI thread telling it what to fetch. The Figure 2.3 shows how BruTile Mapping Control data fetcher works. The UI and Fetcher communicate through non blocking messages. Whenever the user pans or zooms, a View
18 Ground Control Segment for UAS Civil Applications •DestinationMapControlLayer: The DestinationMapControlLayer is the implementation of destination vector layer. This layer consists of displaying a line between two specified points. It first adds the destination, and then, updates the initial position with the UAS position. The line is drawn using the object of type Line. The destination is obtained from the UAS telemetry. •FlightPlanMapControlLayer: This layer is the implementation of flight plan vector layer. The FlightPlanMapControlLayer is made up of a several objects displayed on the screen. Unlike the other layers, the FlightPlanMapControlLayer does not provide mechanisms for updating the content. In this layer to improve performance and increase scalability we have decided to create different objects with individual synchronization. In order to illustrate the Legs as a drawing we have implemented a LegShape class. The diagram class of this layer and the LegShape implemented are shown in Figure 2.8. Figure 2.8: FlightPlanMapControlLayer class diagram The LegShape is responsible for searching the start points and end points of a Leg. A Leg is defined by a destination point, so to draw a path we need to know the destination point of the previous Leg. When the flight plan is composed by Intersection and Iterative Legs we must take into account a number of rules. For this reason it has been developed an algorithm to obtain the initial point or points. The LegShape class also identifies the waypoint type with different icons depending on whether the IntersectionLeg is a fly-by or fly-over. From LegShape class, other classes only have to implement the methods needed to transform the definition of each Leg in its corresponding drawing. 2.4.3. MapCoordinate MapCoordinate implements the methods to perform coordinate conversions. This class converts decimal degrees (DecDeg) or radians coordinates into the coordinate system used by the map. To perform this function the MapCoordinates use the map source schema and the current view of the map (see Figure 2.9). The source schema is implemented in ExtendedSchema, it provides information about spatial reference system used to request the map data. The View object provides information about the current status of BruTile map control. This class provides information about
Geographic Information System Management 19 Figure 2.9: MapCoordinates implementation the displayed map area and the applied zoom. The Table 2.2 shows the methods to do the conversion. Type Name Description Method GePointFromDegrees Converts from point in degrees to point in the reference system used by the map loaded into the control. Method GePointFromRad Converts from point in radians to point in the reference system used by the map loaded into the control. Method GetNormalizedPoint Get the screen location of a point. Method GetPointScreenToDeg Converts from point in pixels to point in degrees. Table 2.2: MapCoordinate methods to do the conversions
20 Ground Control Segment for UAS Civil Applications
Graphical Controls Library for the Ground Control Stations 21 CHAPTER 3. GRAPHICAL CONTROLS LIBRARY FOR THE GROUND CONTROL STATIONS In this section we are going to explain the different controls needed to develop the Flight Monitor and Flight Plan Monitors workstations. The workstations have required many elements to manage UAS operations. In order to reuse these elements we have created a controls library where we added all developed controls. Thus, each control can be reused in different workstations. The software controls that have been developed in our library are: •Primary Flight Display •Cockpit Display of Traffic Information •Manager of virtual autopilot states. •Video and audio player and grabber. •Interface for Joystick Management •Google Earth Synthetic View 3.1. Primary Flight Display A primary flight display or PFD is a modern aircraft instrument dedicated to flight information. Representations of older aircraft instruments are combined on one compact display, simplifying pilot work flow and streamlining cockpit layouts.The details of the display layout on a primary flight display can vary enormously, depending on the aircraft and the aircraft’s manufacturer. However the great majority of PFDs follow a similar layout convention. The center of the PFD contains an Attitude Indicator (AI), which gives the pilot information about the aircraft’s pitch and roll characteristics, and the orientation of the aircraft on the horizon. On left and right of the attitude indicator there are usually the airspeed and altitude indicators, respectively. The airspeed indicator displays the speed of the aircraft in knots, while the altitude indicator displays the aircraft’s altitude above Mean Sea Level (AMSL). Both of these indicators are usually presented as vertical tapes, which scroll up and down as altitude and airspeed change. The vertical speed indicator, usually located next to the altitude indicator, indicates how fast the aircraft is ascending or descending, or the rate at which the altitude changes. This is usually represented with numbers in thousands of feet per minute. For example, a measurement of +2 indicates an ascent of 2000 feet per minute (fpm), while a measurement of -1.5 indicates a descent of 1500 feet per minute. Usually the PFD also contains the
22 Ground Control Segment for UAS Civil Applications heading display. The heading control has been implemented separately from the control because it will be reused for different Graphical User Interface (GUI) components. 3.1.1. Design and Implementation Figure 3.1: Architecture of Primary Flight Display control The operation of this control is very simple. As we see, this control transforms telemetry data into a visual representation. The input data is compatible with the International System Units (SI), so it becomes in values used by the cockpit instruments. The visual layer of the control consists of a set of images (see Figure 3.1). This image are moved across the screen depending on the input values. We have decided to load some image instead of painting the visualization through code because it generates lees overhead on the CPU. The control layout has been done in a way that each indicator of the PFD is independent. We have defined different methods to update the values. The list of control methods is described in Table 3.1. Type Name Description Method UpdatePitchAndRoll Update the UAS pitch and roll Method UpdateAltitude Update the UAS altitude Method UpdateVerticalSpeed Update the UAS vertical speed Table 3.1: Methods to update Primary Flight Display control 3.2. Cockpit Display of Traffic Information Cockpit Display of Traffic Information (CDTI) has the function of presenting surveillance information about the surrounding traffic to the flight crew. The information presented includes the relative position of other aircraft in the vicinity with respect to the aircraft itself. Traffic information for the CDTI is obtained from automatic dependent surveillance broadcast(ADS-B)
Graphical Controls Library for the Ground Control Stations 23 The operational goals of the CDTI are to improve the safety and efficiency of flight operations through an enhanced surveillance capability coupled with new operational procedures. Early applications of CDTI included the following objectives and applications. •Improve traffic situational awareness •Improve the probability of visual acquisition of traffic compared with unaided visual search •Allow aircraft to obtain more efficient altitudes and tracks in oceanic/remote airspace. 3.2.1. Design and Implementation The implemented CDTI control is called UcCDTI. As seen in Figure 3.2 UcCDTI control consists of two parts. One part shows the UAS heading. The other one shows the traffic in front of the UAS. This control has several input parameters. On one hand it requires the UAS telemetry (heading, position and speed). And on the other hand the ADS-B messages, which allow to update the traffic aircraft position on the screen. In order to manage the aircraft independently we have implemented AirCraft class. The AirCraft object is responsible of the orientation and the refreshment of displayed aircraft. We have different methods to refresh the control and update its content. The list of control methods is described in Table 3.2. Figure 3.2: Cockpit Display of Traffic Information control architecture Type Name Description Method NewADSBMessage Add new ADSB message Method UpdateTelemetry Update the position, heading and speed of our UAS Table 3.2: Methods to add new ADSB message and update UAS telemetry
24 Ground Control Segment for UAS Civil Applications 3.3. Manager of Virtual Autopilot States The Virtual Autopilot Service is the component that interacts between the autopilot and the rest of the components of the USAL. It is a service that provides a standardized interface to the particular autopilot on board. VAS is responsible for managing the autopilot states. The aim of the VAS states is to increase the autopilot functionalities and to give the same services without depending on the on-board autopilot. There are a large number of states and a large number of possible transitions. Due to this complexity the PiC needs a mechanism to change VAS state safely. The objective of this control is to provide intuitive support for changes between states. 3.3.1. Design and Implementation The change of state on the VAS requires a simple control that shows the allowed state transitions, and then displays the current status. Figure 3.3: Diagram of Virtual Autopilot states control As shown in Figure 3.3 the VAS state manager (called UcVasScreen), has one output and one input. The operation of the controls is as follows. First, the current VAS state, is introduced at the control and next, the control updates the buttons and enables the corresponding buttons. In the next step the user selects the transition and the control notifies the new state to the VAS. The UcVasScreen acts as a container of several objects called UcVasStateButton. This object operates as a button and manages its operations to allow to request the state change. The UcVasStateButton have several state which are indicated by its color. •Dark Gray - The state is disabled and it is not possible. The transition to this state is wrong. •Gray - The state is disabled and it is not possible the transition of this state.
Graphical Controls Library for the Ground Control Stations 25 •Blue - The user has click the button once time. If the button is pressed again the buttons turns gray. If after the user have pressed the button in blue state and VAS does not change the state during five seconds, the button turns gray again. •Green - In this color the VAS has been replied with a state changed. This color indicates the current state. The main advantage of having the state management in the button is that it is easy to adapt VasState control, if new states are added or removed. The list of control methods is described in Table 3.3. Type Name Description Method OnVasStateChange This method update the current VAS state at control Event ChangeCurrentVasState The control throws this event to request the state change Table 3.3: Input and Output of VAS states control 3.4. Display and Graph Generator The Display and Graph Generator aims at showing the hierarchical flight plan structure as a graph. As seen in section 6 the structure of a flight plan can be very complex. In simple flight plans unique path is found, it can be enough to display a flight plan on the map. When we are managing a flight plan with forks and iterative legs, the map view becomes very confusing. Therefore we need another kind of flight plan representation when alternative or iterative Legs are present. Therefore, the Display and Graph Generator generates a flight plan view as a tree. 3.4.1. Design and Implementation Figure 3.4 illustrates the Display and Graph Generator architecture. The name of this control is UcGraphControl. The UcGraphControl is a container of nodes and their relations. Each node is implemented through UcGroupNode and UcNode objects. The GroupNode allows group some Nodes. The main function of uCGraphControl is to generate the nodes and their relationships from a flight plan. The Graph class is the class that owns the primitives needed to generate the graph. This class understands only nodes and relations between them. From this information generates the Nodes list that will be displayed and their positions. Table 3.4 show the methods to interact with this control.
26 Ground Control Segment for UAS Civil Applications Figure 3.4: Architecture of control to display flight plan as a graph Type Name Description Method PrintGraph Paint the flight plan as a graph Table 3.4: Input method of graph control 3.5. Video and Audio Player and Grabber One of the requirements to be fulfilled by the ground station is to display in real time the video from the UAS on board camera. The .Net Framework does not provide adequate support for managing a video capture target. In order to obtain the video from video capture target it is required to use an external library. To solve this problem we used the DirectX.Capture library [12]. This library provides a friendly interface to use some of the options provided by the DirectShow library.1 3.5.1. Design and Implementation In order to manage audio and video we have implemented a control called UcVideoControl. The control has as input parameters the audio and video configurations. With this data the UcvideoControl configures the DirectX.Capture library. We have decided to use the DirectX library because DirectShow provides a lot of options and it is very difficult to configure it. Although the facilities that this library provides, we have determined to implement some interesting features. First we have added the possibility to record or not the displayed video. The library always record the video but if we use it for a long time the video becomes extremely heavy. 1DirectShow is a multimedia framework and API produced by Microsoft for software developers to perform various operations with media files or streams.
Graphical Controls Library for the Ground Control Stations 27 Figure 3.5: Architecture of video and audio control The library provides a control to display the video designed in Windows Form. We have implemented all previous controls using WPF so that this control was not compatible. Now the UcVideoControl provides an interface to integrate Directx.Capture in WPF applications. In order to manage this control we have implemented following methods (see Table 3.5): Type Name Description Method Start Start the video preview Method Stop Stop the video preview Method EnableSaveVideo Enable or disable the video recorder. Field AudioSettings Set audio configurations. Field VideoSettings Set video configurations. Table 3.5: Methods to manage video and audio player 3.6. Interface for Joystick Management The way of operating a UAS depends on its size and the configuration of the aircraft. In the case of conventional fixed wing aircraft, once an UAV has Take-Off, flight authority is mainly shifted to an autopilot on board. On the other hand, in the recovery phase, it is necessary to delegate the flight authority back to a remote pilot. The reason is that automatic approach and landing by only GPS based guidance may have large position errors. For safe landing within limited open space such as rooftops of buildings, school fields, and so on, more accurate guidance should be necessary. In this case, the flight control is switched back from autopilot(AP) to the pilot. In order to manage the UAS in manual mode it is required to implement a control to load a joystick in GCS and to read its status. The .NET framework does not allow the developer to access directly to the joystick devices connected to the computer. So to access the joystick it is necessary to use an external library. DirectX.DirectInput [11] is a Microsoft Application Programming Interface (API) for collecting input from a computer user, via input devices
34 Ground Control Segment for UAS Civil Applications Figure 4.3: Flight Plan Monitor screen At the bottom of the application the user can see the FPMa status bar. It shows if any command sent to the FPMa have been completed. Each label has 4 states: •Gray - Non command has been executed. •Blue - The command has been sent but still the application has not received the ACK. •Green - The command has been executed successfully. •Red - The command has not been executed. An error has been produced in FPMa. The tools to manage the flight plan are on the right side of the FPMo application (see Figure 4.4). This area is divided in three subareas. From top to bottom, in the first area we have the tool in order to send the Skip and GoTo commands to the VAS. With the Skip command, the UAS skip the current Leg and goes to the next Leg. Whit the GoTo command the PoC move the plane to another point in the flight plan. The next area shows the flight plan composition and the information of each leg. The first control shows the flight plan as a tree, and when a flight plan item is selected, the information is showed in the second control. In this control the Leg information can be changed in order to update the flight plan. Finally the area of the lower right corner allows to the user update the flight plan. In this area there are five buttons. This buttons allow add a leg in order to apply updates, send the last changes to FPMa and preview the updates in a map, or clear the changes applied after it can be send. FPManagement
Flight Plan Monitor Service 35 Figure 4.4: Tools for flight plan and updates management
36 Ground Control Segment for UAS Civil Applications
Flight Monitor Service 37 CHAPTER 5. FLIGHT MONITOR SERVICE A pilot in command (PiC) is needed for UAS missions. Several comments in UAS guidance material and considerations such as [5] see the PiC as part of each UAS architecture. Therefore, an application is needed to solve all PiC needs. A real UAS flight has many different specific phases, and specific information needs to be shown for each of these phases. This application has to control the UAS mission states, telemetry, and flight plans, and receive some payload information. Each workstation in the GCS has a different purpose. The Mission Monitor (MMo) is the workstation used to manage the mission and the payload. FPMa capabilities are managed with the Flight Plan Monitor (FPMo); by means of this workstation we can monitor and edit the flight plan. Finally, we need a workstation for the PiC in order to monitor the UAS flight in real time. This chapter focuses on the design and development of the workstation where the PiC is placed. This workstation is called the Flight Monitor (FM) 5.1. Flight Monitor Requirements The main objective of this workstation is to provide an easy way to visualize the UAS information and provide to the Pilot in Command a Human Machine Interface (HMI) for controlling the UAS manually. During the design and implementation of the FM, certain requirements and specifications have been followed: •The FM has to provide a flight information (altitude, speed, heading...). •To provide a mechanism to control UAS manually •The UAS and flight plan has been showed over a Map. •The traffic information has been visualized. •The video from on-board camera has been visualized. •The workstation has to inform about the UAS alarms. •The FM has to allow changing the VAS states. 5.2. Flight Monitor Architecture In Flight Monitor(FM) workstation, we have used all the controls implemented in the ICARUS Control Library (see Figure 5.1). The FM service gets all information provided for the Virtual Autopilot Service in order to show the UAS behavior. The service allows update the VAS states for changing the UAS control.
38 Ground Control Segment for UAS Civil Applications Figure 5.1: Architecture of Flight Monitor Service Also the FM is communicated with the Flight Plan Manager(FPMa) and the Flight Plan Monitor(FPMo) for showing the flight plan over a map. The communication with the FPMa allows the flight plan synchronization. When the FPMo workstation change the flight plan, the FPMa informs if this change is valid. Then, the FM update the flight plan visualization. Automatic Dependent Surveillance-Broadcast (ADS-B ) Service, on the air segment, has the responsibility to send the traffic information over network. This information is received by the FM service and showed in CDTI control. 5.3. Flight Monitor Design The Flight Monitor service as Flight Plan Monitor Service is centralized in a Exchange Area component (see Figure 5.2). The FM is composed by several block, which are described below: •MAREA Service: MAREA service functions as a bridge between the network and the application. •Exchange Area: As in the FPMo (see Section 4.3.), the Exchange area is designed to share variables from different parts of the application. •Screen: The Screen is the main visual block. It works as a User Control container. The FM service can be composed more than one Screen. Each Screen have a layout for adding the differents controls. •Control Manager: The Control Manager is the component responsible of managing the UserControls. The FM service is composed as Controls Manager as a data type
Flight Monitor Service 39 Figure 5.2: Design of Flight Monitor Service shown in this service. For example there a Control Manager for telemetry, traffic information, video data, etc. 5.4. Flight Monitor Implementation In this section we are going to describe the Flight Plan Monitor implementation. This section is divided in two subsections. One section is dedicated to describe the implemented classes and on the other subsection describes the graphical user interface. 5.4.1. Code Implementation The Figure 5.3 shows the Flight Monitor main classes. In order to give an overview of code implementation we have been decided show and describe the most important classes of the FM. •MainWindows: The MainWindows class is the main GUI class. The MainWindows is the container for adding all GUI components. This class contains the Graph control, the Map control and the alarms in order to notify the Flight Plan Manager Service status. •SecondaryWindows: The SecondaryWindows class is a GUI class to set the VAS state control (see Section 3.3.) and another screen to configure the FM service. In the SecondaryWindows class the controls are embedded in a Tab control. •TelemetryManagement: The TelemetryManagement class is in charge of managing the controls for visualizing the UAS telemetry. This class manage the UAVMapControlLayer (see Section 2.3.2.) the PFD (see Section 3.1.) control and the CDTI (see Section 3.2.) control. It opens a new thread in order to updates the PFD every 50 milliseconds and update the UAS position and CDTI control 2 times per second.
40 Ground Control Segment for UAS Civil Applications Figure 5.3: Class diagram of Flight Monitor Service •VideoManagement: This class manages the Video Control (see Section 3.5.) and Synthetic view control (see Section 3.7.). It loads the appropriated control depending of the settings file. If the workstation does not have a video capture board connected it is possible to load a Synthetic view control to simulate on board video. •MapManagement: The MapManagement class is in charge for visualizing the flight plan over a map. Also it is responsible to update the flight plan when it is changed for the Flight Plan Monitor Service. •AlarmManagement: The AlarmManagement handless the components status. The alarms icons are changed depending of the components status. If the component works fine the color is green but if the control does not loaded properly the icon color is red. If the AlarmManagement has not received any notification, the icon color is gray. •SettingsManagement: The SettingsManagement loads the settings file. 5.4.2. Interface Implementation The Flight Monitor service is implemented using one or two windows in order to be used with one monitor or two monitors. it can be executed in three modes, a Lite mode, One Screen mode and Two Screens mode. The Lite mode only loads the VAS State screens for changing the VAS states. It is the lighter version for deploying and debugging other services. In the One screen mode mode all controls are placed in main windows. The map control, video control, alarms and PFD are fixed and their can not be moved. In the left side of the application is located a tab host in order to place some tabs with engine controls, settings and VAS state control. Finally, the Two Screen mode is the default mode. The controls for showing the UAS information are placed in the main screen, and the controls to interact with the UAS are
Flight Monitor Service 41 allocated in secondary window. The secondary window is designed to be used as touch screen. The main window (see Figure 5.4) is designed to show the UAS information. It is composed by some controls of the ICARUS Controls Library. At right of the application, is located the map control. This map shows the UAS position and the flight plan. Below the control is placed a terminal to show execution information. In the center of the applications we can see the PFD control and the video control. The video control can be configured to show the on board video camera or it can be use the Synthetic View Control. The engine information and the CDTI are at left side of the main window. Figure 5.4: Main screen of Flight Monitor Service The secondary window (see Figure 5.5) is designed as an easy interface to manage the UAS. This window is composed by two screens. The VAS State screen and the Settings screen. The VAS State screen allows managing the UAS in Directed VAS state. In this state the PiC sends a course (altitude, speed and heading) to the UAS. The Settings screen it can be used in order to configure the starting mode of the application, the video source, and the joystick device. Figure 5.5: Secondary screen of Flight Monitor Service
42 Ground Control Segment for UAS Civil Applications
Conclusions and Future Work 43 CHAPTER 6. CONCLUSIONS AND FUTURE WORK This chapter discusses the development of the project and the personal work. It has to take into account the initial objectives and requirements in order to compare them with the final result. After that we describe the future work that must be done in the workstations. Finally there is an environmental impact description for the project. 6.1. Conclusions Once the application has finished, it is necessary to review the initial objectives. For doing the conclusion we are going to compare the final result of the applications with the initial objectives. •The current Flight Plan Monitor and Flight Monitor do not have a serious errors. It is still early to ensure a correct operation in a real scenario but it is enough robust for a simulated environment. •We have developed a library with the main controls of the applications. The workstations are developed using the controls implemented in ICARUS control library. Some controls are use in both applications, therefore the components have been reused. •Using a library designed to display maps we have success in developing a control for visualizing georeferenced data over a map. This control creates a local cache for these maps and the maps are showed without Internet connection. •The application has been tested under ISIS environment and the workstations and are properly integrated with other services. After working in the ground control station for about two years, it makes me feel proud showing a complete, stable and functional version of two workstations. Especially I am proud to Flight Plan Monitor workstation. When I started in the ICARUS group, my first work was developing a little program for showing maps without Internet connection. After two years and after I have been deleted and re-start the application many times, finally we have a release of the Flight Plan Monitor and Flight Monitor workstations. These workstation are going to be presented to Eurocontrol next November 17th as part of a big project. Also I am so grateful of having the opportunity to learn about WPF. When I started in ICARUS research group, they give me the opportunity for learning how to develop user interface with WPF toolkit. Then, the WPF was a new tool for me and for the group. Two years later, I have learn a lot of things about C#. Now WPF is the default technology to develop new applications in ICARUS research group.