Skip to content

Instantly share code, notes, and snippets.

9.6702
9.8457
9.6017
9.1934
9.7989
9.5618
9.6360
10.1013
10.0843
9.9661
def check_requirement(requirement):
if isinstance(requirement, basestring):
return requirement is 'None' or requirement in board_configuration
if isinstance(requirement, dict):
if requirement.keys()[0] == 'and':
return all(check_requirement(requirement) for requirement in requirement['and'])
else:
return any(check_requirement(requirement) for requirement in requirement['or'])
(function () {
if (typeof jDataView === 'undefined' && typeof require !== 'undefined') {
jDataView = require('jDataView');
}
// Extend code from underscorejs
var extend = function (obj) {
for (var i = 1; i < arguments.length; ++i) {
var eepromConfigBytes = jDataView.createBuffer(0x00,
0x01, 0x00, 0x57, 0xFE,
0x04, 0x01, 0x90, 0x01,
0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x10, 0x40,
0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00,
<div class="wrapper">
<p>18:38:03 -- Connection to the serial BUS was opened with ID: 1</p>
<p>18:38:06 -- Requesting configuration UNION from Flight Controller</p>
<p>18:38:07 -- Flight Controller responds with -- <span style="color: green">ACK</span></p>
<p>18:38:07 -- Configuration UNION received -- <span style="color: green">OK</span></p>
<p>18:38:56 -- Requesting Sensor Data from Flight Controller</p>
<p>18:38:56 -- Flight Controller responds with -- <span style="color: green">ACK</span></p>
</div>
/* ADXL345, 9 DOF stick library
Beware ! ADXL345 sends the data in reverse (LOW, HIGH)
This library requires some more documentation
(code was tested and works perfectly fine)
*/
#define ADXL345_ADDRESS 0x53
float accel[3];
<style>
background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
</style>
<div style="
background-color: white;
border: 1px solid silver;
height: 64px;
width: 680px;
float: right;
/*
var eepromConfigDefinition = {
eepromConfigDefinition: {
version: 'uint8',
calibrateESC: 'uint8',
ACCEL_BIAS: ['array', 'int16', 3],
PID_YAW_c: ['array', 'float32', 4],
PID_PITCH_c: ['array', 'float32', 4],
SELECT
*,
@rowNum := @rowNum + 1 as row_number
FROM `datalog`
JOIN ( SELECT @rowNum := 0 )
WHERE
MOD(row_number, 4) = 0 AND
sensorid = '$sensor' AND
time >= '$timeOffset'
diff --git a/subpanel/dataPlot/dataPlot.py b/subpanel/dataPlot/dataPlot.py
index 8d879e7..1805a23 100644
--- a/subpanel/dataPlot/dataPlot.py
+++ b/subpanel/dataPlot/dataPlot.py
@@ -3,6 +3,9 @@ Created on Nov 21, 2012
@author: Ted Carancho
'''
+from multiprocessing import Manager
+import multiprocessing