UNPKG

node-bebop

Version:

Node.js JavaScript library for the Parrot Bebop

26 lines (15 loc) 605 B
"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; };