Skip to content

The following page describe the key components of Cockpitdecks and its vocabulary.

Cockpitdecks Objects

Walking though Cockpitdecks main entities will get you familiar with Cockpitdecks vocabulary. Main objects have familiar names and do represent what their name designate.

Deck

The core object of Cockpitdecks is the Deck. It can be a real, physical deck device like Stream Deck or LoupedeckLive, but it can also be the representation of a deck in a web page. In the later case, it is called a Web Deck. Web deck can either be a representation of an existing physical deck like Stream Deck or LoupedeckLive, and an imaginary one.

A Deck usually has buttons that can be pressed, encoders that can be turned. They often also have either simple led that can be turned on or off, or small iconic LCD screens where some iconic image can be displayed.

The goal of Cockpitdecks is to animate these devices to use them with a flight simulation software.

Page

A Page is a collection of buttons that are displayed on a deck and ready to be used.

Layout

A Layout is nothing else than a group of related pages, displayed alternatively on a deck.

Button

A button is the general term for a key, knob, rotary encoder, slider cursor, or even touch surface on a deck. On a given deck, each element that can be pressed, turned, swiped, or slid is a button.

Activation

The activation of a button determine what it will do when pressed, turned or slid.

Representation

The representation of a Button determine what the button will display on the deck device. This depends on the capabilities of the button on the deck: LED, image, colored led, vibration, sound…

Cockpit

The Cockpit is where everything occurs !

The Cockpit is a container entity, the maestro that orchestrate the symphony.

Cockpitdecks proceeds by numerous autonomous pieces of program that do some very precise task independently of each other, like listening to what happens on a deck or in the simulation software, and the Cockpit is responsible to orchestrate all these pieces of program so that they work in harmony to timely display information on decks or issue commands to simulation software.

Configuration

Cockpitdecks configuration is a folder (always named deckconfig), organized into sub-folders, where the Cockpit will find all instructions to execute, both on the simulator side and on the deck side.

Cockpitdecks « Internal » Objects

Internally, Cockpitdecks uses a few objects whose function are easy to understand.

Data

A data is a named entity ready to contain some data, a value.

There are several types of data depending on where the data gets its value from.

Cockpitdecks internal data is an internal value only used by Cockpitdecks, to maintain an internal state for example.

Simulator data is a value coming from the simulation software. Each time it changes in the simulation software, its value is updated in Cockpitdecks.

Data Listener

Each data has listeners associated with it. Each time the value of a Data changes, the listeners are notified of the updated value and can perform some tasks on their own to take into account the new value.

Instruction

An Instruction is a named entity that designate something to do, an action to perform.

There are several types of instructions.

Some are internal and specific to Cockpitdecks like loading a new page of button on a deck.

Some other instructions are oriented towards the simulator software and designate an action to perform inside the simulation software.

Event

An Event is an object created each time somethings of interest to Cockpitdecks occurs. There mainly are two types of Events.

Events that come from the decks: Each time a button is pressed, an encoder is turned, a slider is slid, or a touch screen touched, a Deck Event gets generated by the deck and is sent to Cockpitdecks. Cockpitdecks analyses the event and issue the necessary Instruction(s) (see above) to handle the event.

Events that come from the simulation software: Each time a value changes in the simulation software, or some specific simulation event occurs, a Simulator Event is generated and sent to Cockpitdecks for handling.

deck-simulator.png

Please note that for the above objects, Data, Instruction, and Event, there always is a Cockpitdecks «internal» version of the object, and a simulator version of the object.

See Also

Glossary.

The Cockpit.