This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
PROGNAME=$(basename $0) | |
error_exit () | |
{ | |
# ---------------------------------------------------------------- | |
# Function for exit due to fatal program error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
info: Welcome to Nodejitsu badevguru | |
info: jitsu v0.12.10-2, node v0.10.4 | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Analyzing application dependencies in src/app.js | |
warn: Local package version appears to be old | |
warn: The package.json version will be incremented automatically | |
warn: About to write /Users/brian/Projects/openrov-software/package.json | |
data: | |
data: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var KEYS = { | |
32: { // space (all-stop) | |
command: 'stop' | |
}, | |
38: { // up (forward) | |
command: 'command', | |
position: 'throttle', | |
value: 1 | |
}, | |
40: { // down (aft) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//http://www.html5rocks.com/en/tutorials/doodles/gamepad/gamepad-tester/tester.html | |
//useful for testing the buttons and finding the numbers | |
// | |
//Requires the https://github.com/kallaspriit/HTML5-JavaScript-Gamepad-Controller-Library | |
//library. | |
var GamePad = function() { | |
var gamepad = new Gamepad(); | |
var gp = {}; | |
var padStatus = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
simply.text({ | |
title: 'Rov Demo!', | |
body: 'loading' | |
}); | |
//Replace code with the IP address of the ROV as seen by your phone | |
var io = simply.loadScript('http://192.168.156.202:8080/socket.io/socket.io.js', false); | |
var socket = io.connect('http://192.168.156.202:8080'); | |
socket.on('status', simply.wrapHandler(function (data) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <AltSoftSerial.h> //Include the software serial library | |
#include <Wire.h> | |
const byte i2c_address=0x77; | |
AltSoftSerial altSerial; //Name the software serial library altSerial (this cannot be omitted) | |
int s0 = 7; //Arduino pin 7 to control pin S0 | |
int s1 = 6; //Arduino pin 6 to control pin S1 | |
char sensordata[30]; //A 30 byte character array to hold incoming data from the sensors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c | |
index 7c8322d..f389ccb 100644 | |
--- a/drivers/media/usb/uvc/uvc_driver.c | |
+++ b/drivers/media/usb/uvc/uvc_driver.c | |
@@ -36,6 +36,7 @@ unsigned int uvc_no_drop_param; | |
static unsigned int uvc_quirks_param = -1; | |
unsigned int uvc_trace_param; | |
unsigned int uvc_timeout_param = UVC_CTRL_STREAMING_TIMEOUT; | |
+unsigned int uvc_jpeg_comp_param; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var jsm = require('javascript-state-machine'); | |
var b = require('bonescript'); | |
var proc = require('child_process'); | |
var spawn = proc.spawn; | |
var Q = require('q'); | |
var serialPort = require('serialport'); | |
var testnumberInProgress = 0; | |
// Pin Mappings, names match the schematic |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Self-Test Code for OpenROV Controller Board 2.5 | |
Initial Version 6 September 2013 W. Holm | |
*/ | |
#include <Wire.h> | |
/* The following declarations are used for the I2C A/D converter on the test jig |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -e | |
apt-get update -qq | |
apt-get -y install python-software-properties | |
add-apt-repository ppa:webupd8team/java | |
apt-get update -qq | |
curl -sL https://deb.nodesource.com/setup | sudo bash - | |
export LANGUAGE=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8 | |
locale-gen en_US.UTF-8 |
OlderNewer