Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
This repository is an npm module and a JavaScript MAVLink implementation to parse MAVLink messages, generated using Parrot MAVLink repository,
with the multiple dialects, including all
and common
for now, using Mavlink v1.0 and v2.0 protocol.
const { mavlink10: mavlink, MAVLink10Processor: MAVLink } = require('mavlinkjs/mavlink_all_v1');
or
import { mavlink10 as mavlink, MAVLink10Processor as MAVLink } from 'mavlinkjs/mavlink_all_v1';
const { mavlink20: mavlink, MAVLink20Processor: MAVLink } = require('mavlinkjs/mavlink_all_v2');
or
import { mavlink20 as mavlink, MAVLink20Processor as MAVLink } from 'mavlinkjs/mavlink_all_v2';
Suppose you're using serial port to read data from your flight control, you could use Mavlink parser as following:
const SerialPort = require('serialport');
const { mavlink10: mavlink, MAVLink10Processor: MAVLink } = require('mavlinkjs/mavlink_all_v1');
const mavlinkParser = new MAVLink(null, 0, 0);
mavlinkParser.on('message', function(msg) {
// the parsed message is here
console.log(msg);
});
mavlinkParser.on('HEARTBEAT', function(msg) {
// you could listen on specific message type
console.log(msg.name)
// outputs 'HEARTBEAT'
});
const serialport = new SerialPort('/dev/tty.usbserial-1430', {
57600,
autoOpen: true
})
serialport.on('error', function(err) {
logger.warn(`Error in serial port: ${err.message}`)
})
// When the connection issues a "got data" event, try and parse it
serialport.on('data', function(data) {
// pass to mavlinkParser to parse the raw data
mavlinkParser.parseBuffer(data)
});
FAQs
Implementation of the MAVLink protocol
The npm package mavlinkjs receives a total of 1 weekly downloads. As such, mavlinkjs popularity was classified as not popular.
We found that mavlinkjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.