• Aucun résultat trouvé

Real-time aircraft simulation using HLA standard

N/A
N/A
Protected

Academic year: 2021

Partager "Real-time aircraft simulation using HLA standard"

Copied!
29
0
0

Texte intégral

(1)

To cite this document:

Chaudron, Jean-Baptiste and Saussié, David and Siron,

Pierre and Adelantado, Martin Real-time aircraft simulation using HLA standard.

(2011) In: IEEE AESS Simulation in Aerospace 2011, 8 Jun 2011, Toulouse,

France.

O

pen

A

rchive

T

oulouse

A

rchive

O

uverte (

OATAO

)

OATAO is an open access repository that collects the work of Toulouse researchers and makes it freely available over the web where possible.

This is an author-deposited version published in: http://oatao.univ-toulouse.fr/

Eprints ID: 5144

Any correspondence concerning this service should be sent to the repository administrator: staff-oatao@inp-toulouse.fr

(2)

Introduction Simulation architecture Formals and Experimentals results Conclusion and Perpectives

Real Time Aircraft Simulation using HLA

standard: an overview

Simulation in Aerospace 2011, Toulouse

J.-B. Chaudron1,2, D. Saussié1, P. Siron1,2, M. Adelantado2

1Institut Supérieur de l’Aéronautique et de l’Espace, DMIA, Toulouse

(3)

Outline

1 Introduction Problem statement HLA background Our approach 2 Simulation architecture Overview

Federate description : an example Execution modes

CERTI characteristics

3 Formals and Experimentals results Necessity of formal proof

(4)

Introduction

Simulation architecture Formals and Experimentals results Conclusion and Perpectives

Problem statement

HLA background Our approach

Problem statement

Modern flight simulators require a high level of computing ; Distributed computing paradigm proposes a high performance solution ;

This led to development of standards (e.g. CORBA, HLA) to consistently face the problems raised by distribution ;

Middleware : connectivity software operating as an intermediary between distributed applications.

(5)

HLA for real-time ? (1/2)

HLA is a well-established technique used in the man-machine system area for training and research ; However, works to include real-time specifications and properties to HLA standard are less advanced than other ones (RT-CORBA, DDS,...) ;

1 HLA does not provides interfaces to specify end-to-end prediction requirement for federate ;

2 HLA does not allow management of underlying

Operating(s) System(s) in terms of priority and resource ; 3 HLA only supports two transportation types (reliable and

(6)

Introduction

Simulation architecture Formals and Experimentals results Conclusion and Perpectives

Problem statement

HLA background

Our approach

HLA for real-time ? (2/2)

Different works have been proposed to enhance services provided by the RTI (Fujimoto, Mc Lean, Boukerche) :

1 Multi-threaded synchronous process for RTI ;

2 Real-time Optimized RTI services (time management, data distribution, ...) ;

3 Quality of service communication with specific protocols (RSVP, ...) ;

4 Use of a real-time operating system to allow preemptive priority scheduling.

However, no work proposes a complete analysis from simulation requirements to implementation ;

Most of all, the RTI used and its associated algorithms are never clearly presented.

(7)

PRISE project

PRISE (Plate-forme de Recherche et d’Ingénierie des Systèmes Embarqués) ;

Study of new embedded system concepts and techniques through a special hardware and software environment ; Connecting real actors : actuators, sensors or real embedded computers in the simulation loop (Hardware-in-the-loop) and also human user (Human-in-the-loop).

(8)

Introduction

Simulation architecture Formals and Experimentals results Conclusion and Perpectives

Problem statement HLA background

Our approach

Action Levels

The temporal properties of distributed real-time simulation are obtained from a complex combination of different levels :

1 Hardware level : the physical infrastructure (type of

computers, type of networks and distribution topology) ;

2 Software level : the software infrastructure (operating

systems and communication protocols) ;

3 Middleware level : the HLA middleware used and its

specific distributed algorithms ;

4 Application level : characteristics of the HLA simulation ; 5 Formal level : formal methods applied to assess the good

(9)

PRISE : Hardware Level

The PRISE platform hardware architecture is composed of : 4 real-time nodes with Opteron 6 core processors ; 2 graphical HP stations with high performance GP-GPU ; 1 Ethernet Gigabit switch on a dedicated network ; 2 input organs (Yoke/Throttle/Pedal systems) ; A distributed clock technology allowing same clock reference to each real-time node.

(10)

Introduction

Simulation architecture Formals and Experimentals results Conclusion and Perpectives

Problem statement HLA background

Our approach

PRISE : Software and Middleware Level

Software (OS) : Each real-time node run with Linux Red Hawk Operating system (compliant with POSIX Real time standard).

Software (Network) : We use classical UDP and TCP protocols ;

Middleware : We will rely on and extend our Open Source RTI calledCERTIbecause we have a complete control on its implementation.

(11)

Middleware CERTI

Open-Source middleware RTI compliant with HLA standard (DoD 1.3 and IEEE 1516) ;

Original architecture of communicating processes ;

Avalaible under several operating systems including Linux and Windows ;

(12)

Introduction

Simulation architecture

Formals and Experimentals results Conclusion and Perpectives

Overview

Federate description : an example Execution modes

CERTI characteristics

HLA aircraft federation

Composed of 9 federates ;

Each representing a specific part of the aircraft or environment ;

The federation is composed of two types of applications according to real-time requirements.

(13)

Flight Dynamics Federate

Complete modeling of flight equations

12 ordinary differential equations divided in 4 groups :

Position (3) Orientation (3)

Translational velocity (3) Angular rate (3)

Four numerical methods implemented for the integration (Euler, Trapèze, Adams-Bashforth 2 -3)

(14)

Introduction

Simulation architecture

Formals and Experimentals results Conclusion and Perpectives

Overview

Federate description : an example

Execution modes CERTI characteristics

Flight Dynamics Federate

Subscribes to :

Actuators federate (control surface deflections) Engines federate (thrust)

Environment federate (pressure, temperature, air density, speed of sound, Wind/Turbulence)

Publishes for :

Sensors federate (position/orientation/translational velocity, angular rates & accelerations)

3D Visualization federate (position/orientation) Engines federate (Mach number)

(15)

Specific FOM

Messages exchanged between federates are based upon the global federation object model (FOM) ;

FOM provides the global definitions of all objects (and their attributes) available for all federates.

2.3. CERTI communications characteristics

Messages exchanged between federates are based upon the global federation object model (HLA FOM7) compliant

with HLA Object Model Template (OMT) [7]. This object model provides the global definitions of all objects (and their attributes) that are available for all federates. As an example, Table 6 shows the object/attribute table for the objects published by Flight Dynamics federate.

Calculation Worst Case Transit Time values for all messages through CERTI must take into account three phases (cf Figure 4). Phase 1 is the copy on local host Unix domain socket and the local computation of the Sender Federate associated RTIA process. Phase 2 describes the time to read and write on different communication TCP (also UDP) sockets over the network or on the local host, and the time needed for RTIG local computation. Phase 3 is the copy on local host Unix domain socket and the local compute of Receiver Federate associated RTIA process.

Table 6: Object/Attribute table published by Flight Dynamics federate

Attribute Table

Object Attribute Data-type Card. Units Update Type T/A U/R AIRCRAFT

POSITION

LONGITUDE double 1 m periodic TA UR LATITUDE double 1 m periodic TA UR ALTITUDE double 1 m periodic TA UR AIRCRAFT

ORIENTATION

PHI double 1 rad periodic TA UR THETA double 1 rad periodic TA UR PSI double 1 rad periodic TA UR AIRCRAFT

VELOCITY

SPEED double 1 m/s periodic TA UR VERTICAL SPEED double 1 m/s periodic TA UR ALPHA double 1 rad periodic TA UR BETA double 1 rad periodic TA UR MACH double 1 ∅ periodic TA UR AIRCRAFT

ANGULAR VELOCITY

ROLL double 1 rad/s periodic TA UR PITCH double 1 rad/s periodic TA UR YAW double 1 rad/s periodic TA UR AIRCRAFT

ACCELERATION

ACC X double 1 m/s2 periodic TA UR

ACC Y double 1 m/s2 periodic TA UR

ACC Z double 1 m/s2 periodic TA UR

(16)

Introduction

Simulation architecture

Formals and Experimentals results Conclusion and Perpectives

Overview

Federate description : an example

Execution modes

CERTI characteristics

Execution modes

We distinguish two different run-time modes for our flight simulator :

the Data flow model :

- Only scheduled by the communication flow between each federate ;

- This approach could only be used on synchronous computers (RCIM synchronized nodes).

the Time management model :

- Scheduled by time management principles and algorithms ; - Ensure a consistent temporal behaviour on a common time

reference : the simulated time.

- This approach remains the best way to maintain

consistency between federates located on asynchronous computers.

(17)

CERTI real-time analysis

Originally, CERTI has no mechanism for taking into account quality of service or an end-to-end predictability ; It does not handle events differently according to a priority and it uses no predictability mechanism whatsoever at the network or the operating system ;

However, a key benefit is to master the implementation of RTI used and thus able to incorporate changes in the source code.

(18)

Introduction

Simulation architecture

Formals and Experimentals results Conclusion and Perpectives

Overview

Federate description : an example Execution modes

CERTI characteristics

CERTI updates (1/2)

We first implemented functions in CERTI that allow to use affinity mechanism ;

CPU affinity is a scheduler property that assigns a process (federate, RTIA or RTIG) to a given set of CPUs on the system ;

The Linux scheduler will honor the given CPU affinity and the process will not run on any other CPU.

(19)

CERTI updates (2/2)

We add another interface to allow the management of priority and scheduler for CERTI processes (i.e federates, RTIAs and RTIG) ;

Real-time Linux operating systems allow 100 priority levels to run critical tasks ;

(20)

Introduction

Simulation architecture

Formals and Experimentals results Conclusion and Perpectives

Overview

Federate description : an example Execution modes

CERTI characteristics

CERTI WCTT

Messages sizes Conf. 1 Conf. 2 Conf. 3

N RT N RT N RT

1000 bytes 0.353 0.262 0.281 0.244 0.286 0.247 5000 bytes 0.406 0.316 0.411 0.336 0.422 0.367 10000 bytes 0.422 0.373 0.478 0.426 0.522 0.487 50000 bytes 1.066 0.952 1.372 1.224 1.607 1.536

(21)

Scheduling Formal model (1/2)

Real-time simulations are usually validated by experiments rather than formal models and schedulability tests ;

Formal models compliant with schedulability techniques are essential to validate hard real-time part of our simulator ;

Federates simulate periodic processes which communicate by using HLA principles ;

We could adapt a formal model combining tasks and messages models for Data Flow model ;

(22)

Introduction Simulation architecture

Formals and Experimentals results

Conclusion and Perpectives

Necessity of formal proof

Experimentals results

Scheduling Formal model (2/2)

A periodic task τi(i.e. a federate Fedi) is a quadruplet

<ri,Ci,Di,Pi >with :

ri the time of initial activation of the task ;

Ci the worst case execution time (WCET) ;

Di the deadline ;

Pi the period.

A periodic messages mi,j (i.e. an HLA exchange between

two federates Fedi and Fedj) is a quadruplet

<rmi,j,Cmi,j,Dmi,j,Pmi,j >with :

rmi,j the time of initial send of the message by a federate ;

Cmi,j the worst case transit time (WCTT) ;

Dmi,j the deadline for message transmission ;

Pmi,j the period of production for message.

We use this formalism to describe our Data Flow application model by using Tindell and Clark holistic.

(23)

Tindell and Clark illustration

Ji represents the delay due to data dependencies ;

Ri represents the longest time ever taken by a task to

complete its required computation ; Basic example with two federates

           

(24)

Introduction Simulation architecture

Formals and Experimentals results

Conclusion and Perpectives

Necessity of formal proof

Experimentals results

Data Flow validation

We obtain a graph of 14 tasks and 15 messages :

Every Ciof tasks are relevant to Federate WCET

mesurements on PRISE Platform ;

Every Cmi,j of messages are relevant to CERTI WCTT measurements on PRISE Platform ;

We check that Response-times Ri of each task and messages are always smaller than corresponding deadlines Di.

(25)

Data Flow

The data flow execution model has a good behavior for real-time purpose.

For time management model, classical null message algorithm implemented in CERTI seems to have a good behavior to ensure real-time properties to our simulator (refer to figure 13 and table 9). Indeed, all computed cycles respect the 10 ms deadline; the global behavior is also very regular. The combination of NER() and TAR() (HLA services calls) for each federate steps seems to generate some overhead (compared with Data flow model). In this case, the number of NULL messages generated by original algorithm is acceptable for real-time specification (hard real time deadline) and does not limit performance of the whole aircraft simulation.

Figure 12: Temporal Behavior of Data Flow model 0 200 400 600 800 1000 0 1 2 3 4 5 6 Cycles Duration (ms) Cycle 1 Cycle 2

Table 8: Global measurements for Data Flow cycles

(26)

Introduction Simulation architecture

Formals and Experimentals results

Conclusion and Perpectives

Necessity of formal proof

Experimentals results

Time management

The time management services generate some overhead but are acceptable for real-time.

We recently add a new algorithm, called NULL MESSAGE PRIME algorithm [41]. The main idea of this algorithm is to take advantage of the CERTI CRC (Central Run Time Component), the RTIG. In the classical NULL message algorithm, RTIG process is only acting as a pure gateway which distributes the NULL message to each concerned federate over the whole federation. In NULL MESSAGE PRIME algorithm, RTIG is aware of the status of each federate, (i.e. whether he has called NER() or TAR() HLA services) and it collect all requested date of federates which call NER() service. In fact, the NULL MESSAGE PRIME algorithm optimize null messages number exchange during the simulation. RTIG additional computation generate some overhead for the first cycle but reduce global latency for the second cycle (cf figure 14 and table 10). As a conclusion, time management mechanisms enforce a good synchronization for our kind of real-time federates (mixing NER() andTAR()).

Table 9: Global measurements for Time Management cycles Figure 13: Temporal Behavior of Time

Management model with classical Null Message Algorithm 0 200 400 600 800 1000 6 6.5 7 7.5 8 8.5 9 9.5 10 Cycles Duration (ms) Cycle 1 Cycle 2

(27)

Formals and Experimentals results

Conclusion and Perpectives Experimentals results

Simulation results

Test of the altitude hold automatic pilot function Similar responses for both approaches (as expected !)

Figure 15: Time-response to altitude demand

0 5 10 15 20 9950 10000 10050 10100 10150 10200 Time (s) Altitude (m) Data Flow Time Management

Figure 16: Elevator deflection corresponding to altitude demand 0 5 10 15 20 ï4 ï2 0 2 4 6 8 10 Time (s)

Elevator deflection (deg)

Data Flow Time Management

26/31

Figure 15: Time-response to altitude demand

0 5 10 15 20 9950 10000 10050 10100 Time (s) Altitude (m)

Figure 16: Elevator deflection corresponding to altitude demand 0 5 10 15 20 ï4 ï2 0 2 4 6 8 10 Time (s)

Elevator deflection (deg)

Data Flow Time Management

(28)

Introduction Simulation architecture Formals and Experimentals results

Conclusion and Perpectives

Conclusion

First step of PRISE project completed :

Implementation of a realistic aircraft model and its environment ;

Extension of HLA standard to real-time world ;

We also hope that defined FOM will become a reference FOM for this research domain.

(29)

Perpectives

Flight formation and interaction with already existing flight simulators ;

Real actuators and sensors integration in the loop ; Extend scheduling formal studies to time management model.

Figure

Table 6: Object/Attribute table published by Flight Dynamics federateAttribute Table
Figure 12: Temporal Behavior of Data Flow  model0200400 600 800 10000123456CyclesDuration (ms)Cycle 1Cycle 2
Table 9: Global measurements for Time Management cyclesFigure 13: Temporal Behavior of Time
Figure 15: Time-response to  altitude demand

Références

Documents relatifs

Three different operational systems considered in this study are: the Adriatic REGional Model (AREG); the Adri- atic Regional Ocean Modelling System (AdriaROMS) and the

Actuellement, nous savons que des perturbateurs endocriniens peuvent être retrouvés dans les produits cosmétiques.. Or, les PE peuvent avoir des effets à vie voire même engendrer

Pour une fois il semblait fier de moi, mais en même temps tellement étonné que je me vexai un peu, après tout je pouvais réussir aussi bien que lui dans mon travail.. Je commençais

Scalia et Fischmeister s’interrogent sur l’appui que cette ouverture partielle pour- rait trouver à Strasbourg dans la mesure où, à l’occasion d’arrêts comme

Adding o ffsets and enforcing strictly periodic task releases provides two significant advantages to FIFO: (i) The perfor- mance issues are mitigated and a higher number of task

In order to allow the real-time execu- tion of numerical simulation models, computation times have to satisfy a well-defined model of real-time constraints2. Considering the

In this paper, we are interested in computing ( m, k ) guarantees for WHRT tasks which may miss their deadlines due to transient overload resulting from sporadic jobs, e.g.,

L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des