This file contains 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 <SabertoothSimplified.h> | |
SabertoothSimplified ST; | |
void setup() | |
{ | |
SabertoothTXPinSerial.begin(9600); | |
This file contains 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
uint8_t counter; | |
void setup() { | |
Serial.begin(115200); | |
SerialUSB.begin(115200); // speed is irrelevant for native port | |
counter = 0; | |
} |
This file contains 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
void loop() { | |
//next state logic | |
state=next_state; | |
if (state==START) start_routine(); | |
else if(state==SEARCH) search_routine(); | |
else if(state==BEACON) beacon_search_routine(); | |
else if(state==ESCAPE) escape_routine(); | |
else if(state==DONE_WAIT) done_wait(); |
This file contains 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 <DueTimer.h> | |
#define trigPin1 13 // Pin 12 trigger output | |
#define trigPin2 11 // Pin 12 trigger output | |
#define trigPin3 9 // Pin 12 trigger output | |
#define echoPin1 12 // Pin 2 Echo input | |
#define echoPin2 10 // Pin 2 Echo input | |
#define echoPin3 8 // Pin 2 Echo input |
This file contains 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 <Adafruit_GPS.h> | |
#include "location.h" | |
#include <string> | |
#include <Sabertooth.h> | |
#include <LSM303.h> | |
#include <Wire.h> | |
#include <PID_v1.h> | |
#include <DueTimer.h> | |
#include <Servo.h> //must include here to to link in payloaddumper.cpp | |
#include "ProximitySensor.h" |
This file contains 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 <stdio.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <netdb.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <string.h> |
This file contains 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
// | |
// Released to the public domain | |
// | |
// Remarks: | |
// This is a lean but fast version. | |
// Initially, the buffer is filled with a "default_value". To get real median values | |
// you have to fill the object with N values, where N is the size of the sliding window. | |
// For example: for(int i=0; i < 32; i++) myMedian.addValue(readSensor()); | |
// | |
// Constructor: |
This file contains 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
test |
This file contains 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
$ curl http://npmjs.org/install.sh | sh | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 5804 100 5804 0 0 1580 0 0:00:03 0:00:03 --:--:-- 1604 | |
: command not found | |
sh: line 2: !DOCTYPE: No such file or directory | |
sh: line 3: html: No such file or directory | |
sh: line 4: !--: No such file or directory | |
sh: line 5: FileName:: command not found | |
sh: line 6: Language:: command not found |
This file contains 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
$ node db.js | |
events:63 | |
this.emit("newListener", type, listener); | |
^ | |
TypeError: Object #<an Object> has no method 'emit' | |
at events:63:8 | |
at EventEmitter.Connection (/Users/eggie5/Development/tapioca/dd/lib/postgres-js/lib/postgres-pure.js:304:3) | |
at onLoad (/Users/eggie5/Development/tapioca/dd/db.js:9:12) |
OlderNewer