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.
Installation
npm install mode-s-msglen --save
Usage
const msglen = const msgbits = if msgbits === msglenLONG_MSG_BITS console else console
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