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
#!/bin/bash | |
torrentid=$1 | |
torrentname=$2 | |
torrentpath=$3 | |
dir="$(basename $3)" | |
ln -s $3 ~/LFTP/$3 |
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
/* | |
N2kMessages.h | |
2015-2016 Copyright (c) Kave Oy, www.kave.fi All right reserved. | |
Author: Timo Lappalainen | |
This library is free software; you can redistribute it and/or | |
modify it under the terms of the GNU Lesser General Public | |
License as published by the Free Software Foundation; either |
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 SendN2KTransmissionParam() { | |
static unsigned long TransmissionUpdated=millis(); | |
tN2kMsg N2kMsg; | |
if (TransmissionUpdated+TransmissionUpdatePeriod<millis()) { | |
TransmissionUpdated=millis(); | |
SetN2kTransmissionParameters(N2kMsg,1,N2kTG_Forward,TransmissionOilPressure(), | |
TransmissionOilTemperature(),0x0); | |
NMEA2000.SendMsg(N2kMsg); | |
} | |
} |
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
int sensorPin = A0; | |
int model = 2245; | |
double voltageLow = 1.05; | |
double voltageHigh = 4.88; | |
bool debugMode = true; | |
inline double PSIToPascal(double v) { return v*6894; } | |
void setup() { | |
pinMode(sensorPin, 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
2.59V R_th = 10770.79Ohm - T =23.32C | |
2.59V R_th = 10770.79Ohm - T =23.32C | |
2.59V R_th = 10770.79Ohm - T =23.32C | |
2.59V R_th = 10770.79Ohm - T =23.32C | |
2.60V R_th = 10813.01Ohm - T =23.23C | |
2.60V R_th = 10813.01Ohm - T =23.23C | |
2.60V R_th = 10813.01Ohm - T =23.23C | |
2.60V R_th = 10813.01Ohm - T =23.23C | |
2.60V R_th = 10813.01Ohm - T =23.23C | |
2.60V R_th = 10813.01Ohm - T =23.23C |
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
// which analog pin to connect | |
#define THERMISTORPIN A0 | |
// resistance at 25 degrees C | |
#define THERMISTORNOMINAL 10000 | |
// temp. for nominal resistance (almost always 25 C) | |
#define TEMPERATURENOMINAL 25 | |
// how many samples to take and average, more takes longer | |
// but is more 'smooth' | |
#define NUMSAMPLES 5 | |
// The beta coefficient of the thermistor (usually 3000-4000) |
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 <math.h> | |
#define READING_PIN 0 | |
double R1 = 10000; //resistance put in parallel | |
double V_IN = 5.0; | |
double A = 1.129148e-3; | |
double B = 2.34125e-4; | |
double C = 8.76741e-8; | |
double K = 9.5; // mW/dec C – dissipation factor |
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
D/PIANOBAR!( 3294): @@@ APP CREATED | |
D/PIANOBAR!( 3294): &&& CREATING RECEIVER | |
D/PIANOBAR!( 3294): quality: highQuality | |
D/PIANOBAR!( 3294): download: 2 | |
D/PIANOBAR!( 3294): Pandora One: true | |
D/PIANOBAR!( 3294): stationId: 1023632591027369072 | |
D/PIANOBAR!( 3294): **** BROADCAST: Application->Service - START | |
D/PIANOBAR!( 3294): @@@ APP RESUMED | |
D/PIANOBAR!( 3294): **** BROADCAST: Application->Service - RESUME | |
D/PIANOBAR!( 3310): isConnected: true |
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
sixstringsg@jarvis:~/Raspberry-ROV/Controller_Code$ jar vcf rover_controller.jar Manifest.txt *.class socket/*.class | |
added manifest | |
adding: Manifest.txt(in = 49) (out= 48)(deflated 2%) | |
adding: rover_controller$1.class(in = 430) (out= 302)(deflated 29%) | |
adding: rover_controller$2.class(in = 405) (out= 289)(deflated 28%) | |
adding: rover_controller.class(in = 4883) (out= 2568)(deflated 47%) | |
adding: socket/Client.class(in = 7981) (out= 3721)(deflated 53%) | |
adding: socket/java_client_test.class(in = 1886) (out= 1139)(deflated 39%) | |
adding: socket/java_server_test.class(in = 1678) (out= 1027)(deflated 38%) | |
adding: socket/Server.class(in = 9649) (out= 4433)(deflated 54%) |
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
sixstringsg@jarvis:~/Raspberry-ROV/Controller_Code$ jar cf rover_controller.jar Manifest.txt *.class socket/*.class | |
sixstringsg@jarvis:~/Raspberry-ROV/Controller_Code$ java -jar rover_controller.jar | |
no main manifest attribute, in rover_controller.jar |