-
-
Notifications
You must be signed in to change notification settings - Fork 67
DCS‐BIOS in a nutshell
Jerker Dahlblom edited this page Sep 19, 2023
·
15 revisions
DCS-BIOS exports (sends) cockpit data from Digital Combat Simulator (DCS) over a UDP socket.
- uint data, stating the position for a switch, dial, knob
- string data, can be frequencies
127.000
or other information from a cockpit displayWaypoint : 1
DCS-BIOS listens for commands from the user on a TCP socket. Depending on what command the syntax differs.
-
FLAPS_SWITCH INC\n
This is a command to increase the position/value ofFLAPS_SWITCH
-
COMPASS_BRIGHTNESS 30000\n
Set the position ofCOMPASS_BRIGHTNESS
to 30000. -
COMPASS_BRIGHTNESS -3000\n
DecreaseCOMPASS_BRIGHTNESS
by 3000. - and so on, an aircraft has many different controls.
uint data
, the data is encoded so that as many controls as possible are included in the same byte.
Therefore each control has an :
- address
- shiftby
- mask
so that it can be read from the byte stream in the receiving end.