Miss any of our Open RFC calls?Watch the recordings here! »

dcs-bios-api-mazeppa

0.1.0 • Public • Published

DCS BIOS API

DCS BIOS API is a library that converts the binary export format from DCS BIOS into JavaScript objects.

const DcsBiosApi = require('dcs-bios-api');
 
var api = new DcsBiosApi({ logLevel: 'INFO' });
 
api.on('SC_MASTER_CAUTION_LED', (value) => {
  console.log('Master caution LED is', value ? 'on' : 'off');
});
 
api.on('ML_MASTER_ARM:1', () => {
  console.log('Master arm light is on');
});
 
api.on('ML_MASTER_ARM:0', () => {
  console.log('Master arm light is off');
});
 
api.sendMessage('WEAPONS_MASTER_ARM 1').then(() => {
  console.log('Master arm switch turned on');
});

Controls Browser

To see a list of controls that DCS BIOS can interact with, checkout the controls browser here: https://danieltian.github.io/dcs-bios-api. Some controls are not available in DCS BIOS. For example, closing the cockpit door is not, and neither are the throttle levers on the Ka-50.

API

More in-depth guide is WIP, but you can take a look at the jsdoc here: https://doclets.io/danieltian/dcs-bios-api/master

Install

npm i dcs-bios-api-mazeppa

DownloadsWeekly Downloads

2

Version

0.1.0

License

MIT

Unpacked Size

33.1 MB

Total Files

78

Last publish

Collaborators

  • avatar