hybridgroup/node-bebop

View on GitHub
lib/Camera.js

Summary

Maintainability
A
1 hr
Test Coverage


"use strict";

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

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

Camera.prototype.orientation = function(tilt, pan) {

  var buffer = commandToBuffer(1, "Camera", "Orientation", tilt, pan);

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