Skip to content

Instantly share code, notes, and snippets.

View esden's full-sized avatar

Piotr Esden-Tempski esden

View GitHub Profile
Assuming the configuration
1 2
\ /
/ \
4 3
1 CW
2 CCW
3 CW
4 CCW
@esden
esden / gist:4658539
Created January 28, 2013 20:02
dot gdbinit file for my bmp setup on mac os x
set target-async on
set confirm off
set mem inaccessible-by-default off
#set debug remote 1
#tar ext /dev/cu.usbmodem7FC084D1
tar ext /dev/cu.usbmodemDDE091B1
mon version
mon swdp_scan
#mon jtag_scan
att 1
@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 / osx_readme.adoc
Last active October 1, 2015 19:38
Kicad DOC on Mac OS X

MacOS

If you are using homebrew you can use the following process to install the necessary dependencies and build the kicad documentation:

  • Install mactex distribution

  • Add /Library/TeX/texbin to your PATH environment variable

    export PATH=$PATH:/Library/TeX/texbin
  • Install homebrew dependencies

@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"