Skip to content

Instantly share code, notes, and snippets.

View triffid's full-sized avatar

Michael Moon triffid

View GitHub Profile
@triffid
triffid / persistent.sfs
Created February 16, 2014 08:58
KSP persistence - EL debugging
This file has been truncated, but you can view the full file.
GAME
{
version = 0.23.0
Title = Lentil (CAREER)
Description = No description available.
Mode = 1
Status = 1
scene = 5
flag = Squad/Flags/kerbinmunflag
PARAMETERS
@triffid
triffid / 0C- Crane.craft
Last active August 29, 2015 13:56
Extra Planetary Bootstrap
ship = 0C- Crane
version = 0.23.0
description = addcCCccccvvadaaeqeqdasdasadq w
type = VAB
PART
{
part = probeCoreCube_4293725204
partName = Part
pos = 0.2159832,3.508374,-0.03990517
rot = 0,0,0,1
@triffid
triffid / test_latency.patch
Created February 7, 2014 01:03
aprinter test_latency fix
diff --git a/host_stuff/test_latency.py b/host_stuff/test_latency.py
index d1c3645..55e8054 100755
--- a/host_stuff/test_latency.py
+++ b/host_stuff/test_latency.py
@@ -4,6 +4,7 @@ from __future__ import print_function
import sys
import argparse
import time
+import re
import littlevent.close
#include <cstdio>
void foo(const int * const ptr)
{
printf("%d\n", *ptr);
};
int bar(void)
{
int i = 123;
@triffid
triffid / pin.patch
Created January 31, 2014 01:07
smoothie: bitbanded gpio
diff --git a/src/libs/Pin.cpp b/src/libs/Pin.cpp
index bc234d2..3190935 100644
--- a/src/libs/Pin.cpp
+++ b/src/libs/Pin.cpp
@@ -4,6 +4,7 @@
Pin::Pin(){
this->inverting= false;
+ bitband = NULL;
}
@triffid
triffid / config
Created January 29, 2014 06:57
Smoothie: proposed config style for Actuator
# New-style Actuator Smoothie config
robot.
robot.acceleration 2500 # apply this accel limit in cartesian space along the motion vector
robot.max_speed 24000 # apply this speed limit in cartesian space along the motion vector
axis.x.soft_max 120
axis.x.soft_min -120
axis.x.max_speed 30000 # if a move wants this axis to move faster than this, cap move speed
axis.x.acceleration 3000 # if a move wants this axis to accel faster than this, cap move acceleration
@triffid
triffid / crash log.txt
Last active January 4, 2016 07:19
smoothie crash- feature/Actuator branch
triffid@aleisa ~/Projects/Smoothie $ make BAUD=9600 console
make[1]: Entering directory `/home/triffid/Projects/Smoothie/src'
stty raw ignbrk -echo 9600 < /dev/arduino
( cat <&3 & cat >&3 ; kill %% ) 3<>/dev/arduino
No disk, or could not put SD card in to SPI idle state
**Hard Fault**
Status Register: 0x40000000
Forced
**Bus Fault**
@triffid
triffid / smoothie queue dump
Created January 16, 2014 01:59
smoothie queue dump
Queue: (head:0 tail:0)
block 000 > 0x10003de8: steps:X0400 Y0000 Z0000(max: 400) nominal:r 320000/s4000.0 mm: 5.000000 rdelta:1440.000000 acc: 200 dec: 200 rates: 0> 0 entry/max: 0.0000/ 0.0000 taken:0 ready:0 recalc:1
Queue: (head:1 tail:0)
block 000 > 0x10003de8: steps:X0400 Y0000 Z0000(max: 400) nominal:r 320000/s4000.0 mm: 5.000000 rdelta:1440.000000 acc: 400 dec: 400 rates: 0> 262907 entry/max: 0.0000/ 0.0000 taken:0 ready:1 recalc:1
block 001 > 0x10003e38: steps:X0400 Y0000 Z0000(max: 400) nominal:r 320000/s4000.0 mm: 5.000000 rdelta:1440.000000 acc: 0 dec: 0 rates: 262907> 0 entry/max: 3286.3354/ 3999.9998 taken:0 ready:0 recalc:1
Queue: (head:2 tail:0)
block 000 > 0x10003de8: steps:X0400 Y0000 Z0000(max: 400) nominal:r 320000/s4000.0 mm: 5.000000 rdelta:1440.000000 acc: 400 dec: 400 rates: 0> 320000 entry/max: 0.0000/ 0.0000 taken:0 ready:1 recalc:1
block 001 > 0x10003e38: steps:X0400 Y0000 Z0000(max: 40
#include "HeapRing.h"
#include <cstdlib>
inline static int next(const int item, const int length) __attribute__ ((pure));
inline static int next(const int item, const int length)
{
int i = item + 1;
if (i >= length)
i = 0;
ship = OC Moons Explorer
version = 0.23.0
description = XXvCW CC
type = VAB
PART
{
part = landerCabinSmall_4288153114
partName = Part
pos = -2.411897E-07,42.81771,1.300908E-06
rot = 0,0,0,1