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
{ | |
"config": { | |
"XON": true, | |
"AUTOHOME": false, | |
"DEBUG": true, | |
"Motor1": { | |
"axis": "X", | |
"deg_per_step": "1.8", | |
"step_per_min": "500", | |
"polarity": 1, |
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
#!/usr/bin/python | |
from OpenSSL import crypto, SSL | |
from socket import gethostname | |
from pprint import pprint | |
from time import gmtime, mktime | |
from os.path import exists, join | |
CERT_FILE = "myapp.crt" | |
KEY_FILE = "myapp.key" |
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
#!/usr/bin/python | |
import os | |
import commands | |
import random | |
basedir = "analysis" | |
if __name__ == "__main__": |
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
if (line.contains("sr\":")) { | |
//Parse Status Report | |
this.X_AXIS.setWork_position(Float.parseFloat((json.getNode("sr").getNode("xwp").getText()))); | |
this.Y_AXIS.setWork_position(Float.parseFloat((json.getNode("sr").getNode("ywp").getText()))); | |
this.Z_AXIS.setWork_position(Float.parseFloat((json.getNode("sr").getNode("zwp").getText()))); | |
this.A_AXIS.setWork_position(Float.parseFloat((json.getNode("sr").getNode("awp").getText()))); | |
} |
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
package com.synthetos; | |
import android.telephony.SmsManager; | |
import android.telephony.TelephonyManager; | |
import android.util.Log; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.os.Bundle; | |
import android.provider.Settings.Secure; | |
import android.view.View; |
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
package com.synthetos; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.os.Build; | |
import android.os.Build.VERSION; | |
import android.os.Bundle; | |
import android.telephony.SmsManager; | |
import android.telephony.TelephonyManager; | |
import android.view.View; |
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
while (!tg.getClearToSend()) { | |
//Not ready yet | |
Thread.sleep(1); | |
//We have to check again while in the sleeping thread that sometime | |
//during waiting for the clearbuffer the serialport has not been disconnected. | |
//And cancel has not been called | |
if (!tg.isConnected()) { | |
console.appendText("[!]Serial Port Disconnected.... Stopping file sending task..."); | |
return false; | |
} else if (tg.isCANCELLED()) { |
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
//Wrecking Ball Demo | |
//var feed = 21538 | |
//var axis = "Y" | |
var calcPendulum = function(zLen){ | |
//Pendulum Movement Equation | |
//T = 2pi*SQRT(L/g) | |
var twoPi = 6.2831926 | |
var gravity = 9.8 |
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
var VELOCITY_ACCURACY = 1 | |
var calcPen = function(zLen){ | |
//Pendulum Movement Equation | |
//T = 2pi*SQRT(L/g) | |
var twoPi = 6.2831926 | |
var gravity = 9.8 | |
var result = twoPi * Math.sqrt(zLen / gravity); | |
return(result.toFixed(4)) | |
} |
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
#!/usr/bin/python | |
from random import randint, uniform | |
from decimal import Decimal | |
#random file | |
xmax = 1524 | |
ymax = 1524 | |
shotmax = 30 |
OlderNewer