Incorporating JSBSim into Your Software 3.1 FlightGear 3.2 OpenEaagles OpenEaagles is an…
- User
Incorporating JSBSim into Your Software 3.1 FlightGear 3.2 OpenEaagles OpenEaagles is an open source C++ framework designed to support the rapid construction of virtual (human-in-the-loop) and constructive simulation applications. It has been used extensively to build DIS compliant distributed simulation systems. It is based upon EAAGLES (Extensible Architecture for the Analysis and Generation of Linked Simulations), a popular simulation framework developed and maintained by the U.S. Air Force to support a multitude of simulation activities. As a framework, OpenEaagles provides a design pattern for how to construct a simulation. The goal is to provide an application developer a solid foundation so that robust, scalable, virtual, constructive, stand-alone, and distributed simulation applications can easily be built. It leverages modern object-oriented software design principles while incorporating fundamental real-time system design techniques to meet human interaction requirements. By providing abstract representations of system components (that the object-oriented design philosophy promotes), multiple levels of fidelity can be easily intermixed and selected for optimal runtime performance. Abstract representations of systems allow a developer to tune the application to run efficiently so that human-in-the-loop interaction latency deadlines can be met. On the flip side, constructive-only simulation applications, that do not need to meet time-critical deadlines, can use models with even higher levels of fidelity. The bulk of the development for the EAAGLES software has been performed at the Simulation and Analysis Facility (SIMAF) located at Wright Patterson AFB, Ohio. SIMAF participates in a number of distributed events each year. The vast majority of the distributed simulation software used in the facility has been “home grown” utilizing the EAAGLES framework. Applications built utilizing the framework include cockpits (F-16), ground control stations (Predator MQ-9), threat Integrated Air Defense Systems (IADS) and a futuristic battle manager. OpenEaagles has been released as public domain code. This was done to encourage its use throughout the community. OpenEaagles closely tracks and incorporates new enhancements to EAAGLES, but does not include some functionality. 3.2.1 Interfacing to JSBSim OpenEaagles is a framework that serves as a simulation design pattern as shown in Figure 1. Most of the elements that are needed to build a full-up simulation application exist within the framework, with one notable exception, the function main(). This function resides with the executable application, not the framework. Typically main() is closely associated with the Station class which connects the simulation models to graphics and device I/O. The Station class also contains a Simulation class which
- Assistant
- User
JSBSim Reference Manual v1.0 | Section Two: Programmer's Manual 89 89 takes care of basic simulation activities such as managing a list of Players/Entities of interest. A Player can have many components and systems attached to it. Of particular interest related to JSBSim is a Players dynamics class. Each Player can have an associated dynamic model. OpenEaagles provides a dynamic model that serves as an interface class, but unfortunately, specific flight models could not be included in the public domain release. Because JSBSim is a mature model it made sense for the OpenEaagles project to utilize it. Since JSBSim is also coded in C++, extending the included dynamics class to utilize JSBSim was fairly straightforward. Since JSBSim can be configured to represent several aero propulsion systems, we have refined the OpenEaagles dynamics class to include features never before considered. For example, most of the aerodynamic models we have encountered, treat multiple engines as one. We did include the capability to model multiple engines in the dynamics class but it had never been tested. Attributes associated with engines other than jet turbines also needed to be considered. Specifically, the Propeller and TurboProp engines which requires additional controls (fuel mixture, prop pitch, etc). 3.2.2 Calling JSBSim OpenEaagles is a frame-based system in which code is partitioned to support the development of real-time systems. As a frame-based system, delta time is passed as an argument to models so proper calculations involving time can be performed. Having models rely on delta time for calculation means the frequency of the entire system can change without having to change each and every model (so long as Nyquist rates are met). Additional time related information is recorded in terms of cycles (16 frames or sometimes called a major frame) and phases. Phases sequence the flow of data throughout a model. Four phases are currently defined: • Dynamics -- update player or system dynamics including aerodynamic, propulsion, and Figure 1. The OpenEaagles Simulation Framework
- Assistant
- User
sensor positions (e.g., antennas, IR seekers). • Transmit -- R/F emissions, which may contain datalink messages, are sent during this phase. The parameters for the R/F range equation, which include transmitter power, antenna pattern, gains and losses, are computed. • Receive -- Incoming emissions are processed and filtered, and the detection reports or datalink messages are queued for processing. • Process -- Used to process datalink messages, sensor detection reports and tracks, and to update state machines, on-board computers, shoot lists, guidance computers, autopilots or any other player or system decision logic. JSBSim is currently being called in the dynamics phase at a rate of 50Hz. 3.2.3 Building Applications Building an application with OpenEaagles consists of extending select classes of interest and writing a mainline. Typically, the mainline will call an OpenEaagles provided parser that will read an input file, and create the object hierarchy which is the simulation application. The input file describes in a simple language, the objects to create and the attributes to set. Wherever a Player is defined, the creation of a JSBSimModel object (which was subclassed off of the DynamicsModel class) can be specified as the dynamics model of choice. The OpenEaagles inputs associated with the JSBSimModel class include the root directory for the JSBSim data files and a string that specifies the model of interest. With this information the interface class will call JSBSim, thus allowing it to process its own input files. Thanks to C++ and the object-oriented nature of OpenEaagles and JSBSim, multiple instantiations of JSBSim (i.e. multiple Players) can easily be created and utilized within the same simulation application. We see JSBSim being utilized as a high fidelity aero model driven by a human operator. The example fighter cockpit application, as shown in Figure 2, is a full-up simulation application where the pilot is controlling or flying one of the players in the player list. All stick and throttle inputs as well as graphic outputs are associated with the Player through the use of an “ownship” pointer that exists in the Station class. This connection is typically made by extending the Station class and customizing it for the application being built.
- Assistant
- User
а теперь. как мне встроить эту штуку себе в игру? я буду давать ей параметры самолета (начальное положение, состояние органов управления), а она должна выполнять для меня симуляцию самолета
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.