Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

mode-s-msglen

watson97MIT1.0.4

A utility library for getting the message length of Mode S messages based on the downlink format

modes, mode-s, adsb, ads-b, sdr, rtlsdr, rtl-sdr, radio, aircraft, airplane, airplanes, plane, 1090, 1090mhz

readme

mode-s-msglen

A utility library for getting the message length of Mode S messages based on the downlink format.

Mode S is an aviation transponder interrogation mode used by Secondary Surveillance Radar (SSR) and Automatic Dependent Surveillance-Broadcast (ADS-B) systems.

For an example of this module in use, see AirplaneJS.

Build status js-standard-style

Installation

npm install mode-s-msglen --save

Usage

const msglen = require('mode-s-msglen')

const msgbits = msglen(17)

if (msgbits === msglen.LONG_MSG_BITS) {
  console.log('This is a long message')
} else {
  console.log('This is a short message')
}

API

Constants

  • LONG_MSG_BITS
  • SHORT_MSG_BITS

len = msglen(type)

Given the Downlink Format (DF) of the Mode S message, return the message length in bits.

License

MIT