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
grep -H 15 /sys/bus/acpi/devices/*/status | |
/sys/bus/acpi/devices/BCM2E95:00/status:15 | |
/sys/bus/acpi/devices/INT3491:00/status:15 | |
/sys/bus/acpi/devices/INT3491:01/status:15 | |
/sys/bus/acpi/devices/INT3491:02/status:15 | |
/sys/bus/acpi/devices/INT3491:03/status:15 | |
/sys/bus/acpi/devices/INTC1002:00/status:15 | |
/sys/bus/acpi/devices/INTC9999:00/status:15 | |
/sys/bus/acpi/devices/device:00/status:15 |
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 (true) { | |
for (int i = NAVIO_RCOUTPUT_1; i < NAVIO_RCOUTPUT_1 + 4; i++) { | |
pwm.setPWMmS(i, SERVO_MIN); | |
} | |
sleep(1); | |
for (int i = NAVIO_RCOUTPUT_1; i < NAVIO_RCOUTPUT_1 + 4; i++) { | |
pwm.setPWMmS(i, SERVO_MAX); | |
} |
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
frequency = 50 | |
NAVIO_RCOUTPUT_1 = 3 | |
SERVO_MID_ms = 1.500 | |
SERVO_MIN_ms = 1.050 # mS | |
SERVO_MAX_ms = 1.950 # mS | |
#convert mS to 0-4096 scale: | |
SERVO_MID = math.trunc((SERVO_MID_ms * 4096.0) / (1000.0 / frequency) - 1) | |
SERVO_MIN = math.trunc((SERVO_MIN_ms * 4096.0) / (1000.0 / frequency) - 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
import sys | |
misses = [] | |
loops = [] | |
with open(sys.argv[1]) as f: | |
for line in f: | |
miss, loop = line.split()[1:] | |
misses.append(float(miss.split('/')[0])) | |
loops.append(float(loop)) |
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
PERF: 98/1000 9071587 | |
PERF: 126/1000 45185 | |
PERF: 127/1000 29281 | |
PERF: 121/1000 46462 | |
PERF: 103/1000 74475 | |
PERF: 117/1000 41510 | |
PERF: 108/1001 42908 | |
PERF: 112/1000 46835 | |
PERF: 112/1000 31296 | |
PERF: 109/1000 46350 |
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
PERF: 82/1000 14522 | |
PERF: 89/1000 39225 | |
PERF: 74/1000 25212 | |
PERF: 33/1000 26084 | |
PERF: 28/1000 30647 | |
PERF: 34/1000 19324 | |
PERF: 24/1000 19012 | |
PERF: 30/1000 23826 | |
PERF: 33/1000 18561 | |
PERF: 36/1000 21810 |
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
PERF: 79/1000 15008 | |
PERF: 76/1000 22540 | |
PERF: 81/1000 41960 | |
PERF: 71/1001 14192 | |
PERF: 89/1000 15554 | |
PERF: 84/1000 25123 | |
PERF: 75/1000 32038 | |
PERF: 78/1000 23069 | |
PERF: 91/1000 21276 | |
PERF: 78/1000 15087 |
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
$(document).ready(function(){ | |
$('.menuitem-pic').hover(function() { | |
picname = $(this).attr('src'); | |
picname = picname.substring(0, picname.length - 4); | |
$(this).attr('src', picname + "_active.png"); | |
}, | |
function() { | |
$(this).attr('src', picname + ".png"); | |
}); | |
}); |
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
TU5 TABLE M1,0,20,25; | |
FACILITY_1 STORAGE 1; | |
FACILITY_2 STORAGE 1; | |
GENERATE (Exponential(1,0,2)) | |
TRANSFER .5,,FACILITY_2_IN | |
SEIZE FACILITY_1 | |
ADVANCE (Exponential(1,0,10)) |
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
<div> | |
<ui:insert name="X"> | |
<p:inputText id="xIT" value="#{Point.x}" required="true" converterMessage="Coordinate X is not double in range [-3..3]" validator="XValidator"> | |
<span>X: </span> | |
<f:ajax event="blur" render="xMessage"/> | |
<f:ajax event="blur" render="xMessages"/> | |
</p:inputText> | |
<h:message id="xMessage" for="xIT"/> | |
<h:messages id="xMessages" for="xIT"/> | |
</ui:insert> |
NewerOlder