hybridgroup/node-bebop

View on GitHub
lib/FlightPlanEvent.js

Summary

Maintainability
A
3 hrs
Test Coverage


"use strict";

var commandToBuffer = require("./commandToBuffer");

var FlightPlanEvent = module.exports = function(self) {
  this.self = self;
};

FlightPlanEvent.prototype.startingErrorEvent = function() {

  var buffer = commandToBuffer(0, "FlightPlanEvent", "StartingErrorEvent");

  this.self._writePacket(this.self._networkFrameGenerator(buffer));
  return this.self;
};

FlightPlanEvent.prototype.speedBridleEvent = function() {

  var buffer = commandToBuffer(0, "FlightPlanEvent", "SpeedBridleEvent");

  this.self._writePacket(this.self._networkFrameGenerator(buffer));
  return this.self;
};