Skip to content

Instantly share code, notes, and snippets.

View esden's full-sized avatar

Piotr Esden-Tempski esden

View GitHub Profile
@esden
esden / yapa3_aspirin.xml
Created June 4, 2012 02:14
Working airframe file using tiny_2.11 and aspirin imu
<!DOCTYPE airframe SYSTEM "../airframe.dtd">
<!--
YAPA + XSens + XBee
-->
<airframe name="Yapa v1">
<servos>
<servo name="THROTTLE" no="9" min="1000" neutral="1000" max="2000"/>
@esden
esden / gist:1698024
Created January 29, 2012 09:31
bootprog.py output
python2.7 bootprog.py -d /dev/cu.usbserial-FJ000036B ~/projects/libopencm3/libopencm3-git/examples/stm32/f1/stm32-h103/fancyblink/fancyblink.bin
STM32 SystemMemory Production Programmer -- version 1.1
Copyright (C) 2011 Black Sphere Technologies
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
Target bootloader version: 2.4
Removing device protection...
Traceback (most recent call last):
File "bootprog.py", line 169, in <module>
@esden
esden / gist:1654373
Created January 21, 2012 22:56 — forked from gsmcmullin/gist:1645565
blackmagic: lsusb -v
Bus 002 Device 100: ID 0483:5740 SGS Thomson Microelectronics
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 239 Miscellaneous Device
bDeviceSubClass 2 ?
bDeviceProtocol 1 Interface Association
bMaxPacketSize0 64
idVendor 0x0483 SGS Thomson Microelectronics
Default setup:
| | | +-o Black Magic Probe@fd130000 <class IOUSBDevice, id 0x10000ec55, registered, matched, active, busy 0 (1328 ms), retain 12>
| | | +-o AppleUSBCDC <class AppleUSBCDC, id 0x10000ec58, registered, matched, active, busy 0 (1 ms), retain 5>
| | | +-o Black Magic GDB Server@0 <class IOUSBInterface, id 0x10000ec59, registered, matched, active, busy 0 (249 ms), retain 8>
| | | | +-o AppleUSBCDCACMControl <class AppleUSBCDCACMControl, id 0x10000ec5f, registered, matched, active, busy 0 (1 ms), retain 5>
| | | +-o IOUSBInterface@1 <class IOUSBInterface, id 0x10000ec5a, registered, matched, active, busy 0 (252 ms), retain 8>
| | | | +-o AppleUSBCDCACMData <class AppleUSBCDCACMData, id 0x10000ec63, !registered, !matched, active, busy 0 (2 ms), retain 5>
| | | | +-o IOModemSerialStreamSync <class IOModemSerialStreamSync, id 0x10000ec64, registered, matched, active, busy 0 (2 ms), retain 5>
| | | | +-o IOSerialB
Full Speed device @ 6 (0xFA130000): ............................................. Miscellaneous/Common Class device: "Black Magic Probe"
Port Information: 0x0018
Not Captive
External Device
Connected
Enabled
Number Of Endpoints (includes EP0):
Total Endpoints for Configuration 1 (current): 7
Device Descriptor
Descriptor Version Number: 0x0200
@esden
esden / gist:1612653
Created January 14, 2012 19:44
conf.xml for quadshot
<conf>
<aircraft
name="QUADSHOT_LISAM"
ac_id="163"
airframe="airframes/esden/qs4_lisam.xml"
radio="radios/cockpitSX.xml"
telemetry="telemetry/telemetry_jtm.xml"
flight_plan="flight_plans/dummy.xml"
settings=" settings/settings_booz2_jtm.xml"
gui_color="white"
<!-- this is an asctec frame equiped with Lisa/M and generic china pwm motor controllers -->
<airframe name="lisa_asctec">
<servos min="0" neutral="0" max="0xff">
<servo name="FRONT" no="0" min="1000" neutral="1000" max="2000"/>
<servo name="BACK" no="1" min="1000" neutral="1000" max="2000"/>
<servo name="LEFT" no="2" min="1000" neutral="1000" max="2000"/>
<servo name="RIGHT" no="3" min="1000" neutral="1000" max="2000"/>
</servos>
#!/bin/bash
# Written by Uwe Hermann <uwe@hermann-uwe.de>, released as public domain.
# Modified by Piotr Esden-Tempski <piotr@esden.net>, released as public domain.
#
# Requirements (example is for Debian, replace package names as needed):
#
# apt-get install flex bison libgmp3-dev libmpfr-dev libncurses5-dev \
# libmpc-dev autoconf texinfo build-essential
#
#!/bin/sh
#
# This scripts adds local version information from the version
# control systems git, mercurial (hg) and subversion (svn).
#
# Copied from Linux 2.6.32 scripts/setlocalversion and modified
# slightly to work better for OpenOCD.
#
usage() {
Acquisition with 2/8 probes at 0.200 Mhz starting at Wed Mar 17 20:24:59 2010
clk:00000000 00000000 00000000 11111111 11111111 11111000 00000000 00000000
data:00000000 00000000 00000000 11111111 11000000 00000000 00000000 00000000
clk:00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
data:00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
clk:00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
data:00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
clk:00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
data:00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
clk:00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000