Skip to content

Instantly share code, notes, and snippets.

<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;
/* 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];
<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>
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,
(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) {
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'])
9.6702
9.8457
9.6017
9.1934
9.7989
9.5618
9.6360
10.1013
10.0843
9.9661
306.3489
313.7200
308.6886
320.0897
312.3171
314.3034
291.0218
315.6839
322.0313
300.6635
260.1698
252.5288
252.7186
258.8632
268.6543
261.7526
255.9899
254.7416
243.1971
246.9501
-0.37,-0.21,-0.90
-0.49,-0.13,-0.86
-0.51,-0.50,-0.70
-0.41,-0.65,-0.64
-0.10,-0.71,-0.69
0.15,-0.67,-0.73
-0.23,-0.68,-0.70
-0.25,-0.65,-0.72
-0.11,-0.76,-0.64
-0.00,-0.77,-0.63