🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

mode-s-decoder

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mode-s-decoder

A Node.js module for decoding Mode S / ADS-B messages from aviation aircrafts

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
57
307.14%
Maintainers
1
Weekly downloads
 
Created
Source

mode-s-decoder

A Node.js module for decoding Mode S / ADS-B messages from aviation aircrafts.

Installation

npm install mode-s-decoder --save

API

Constants

  • UNIT_FEET
  • UNIT_METERS

state = init()

Initialize the state object (used as an argument to other functions).

computeMagnitudeVector(data, mag, size)

  • data - A buffer object containing raw IQ samples
  • mag - An Uint16Array to which the magnitude of each sample will be written
  • size - The size of the data buffer

detect(state, mag, size, callback)

  • state - A state object returned from init()
  • mag - The mag object computed using computeMagnitudeVector()
  • size - The size of the mag array
  • callback - Called every time a new message is detected. Will be called with two arguemnts: state and message

License

MIT

Keywords

modes

FAQs

Package last updated on 01 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts