Skip to content

Instantly share code, notes, and snippets.

View elliotwoods's full-sized avatar

Elliot Woods elliotwoods

View GitHub Profile
@elliotwoods
elliotwoods / ofApp.cpp
Created February 16, 2018 12:02
Comparison of subpixel routines
#include "pch.h"
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
this->gui.init();
}
//--------------------------------------------------------------
void ofApp::init() {
/dts-v1/;
/ {
interrupt-parent = <0x1>;
#address-cells = <0x1>;
#size-cells = <0x1>;
model = "Xunlong Orange Pi Zero";
compatible = "xunlong,orangepi-zero", "allwinner,sun8i-h2-plus";
chosen {
#include "pch_LightBarrier.h"
#include "CameraToWorld.h"
#include "ofxRulr/Exception.h"
#include "ofxRulr/Nodes/Item/Camera.h"
#include "ofxRulr/Nodes/Item/AbstractBoard.h"
#include "ofxCvGui/Widgets/Button.h"
#include "ofxCvGui/Widgets/Toggle.h"
reals = np.float64([
points
])
virtuals = np.float64([
points
])
def reflect(real, plane):
return virtual

Routine 0. Connect to Kimchips::HALO Outdoor wifi (chipsandgravy)

  1. Get a Position Name (e.g. H14-4) from mimi in the Mirror Codes room
  2. Go to the server app http://192.168.0.3:8080 and go to /heliostatPositions
  3. Connect to the heliostat module (from the /heliostatPositions page). This page often takes time to load
    • [ERROR 1 - no connection] if you can't connect put 'CODE no connectioninto Mirror Codes room, move onto next mirror
  4. Go to joystick and wait for it to load
  5. Try and operate axis 1 and axis 2
    • [ERROR 2 - missing axis] if you get an error code, also report which axis doesn't work
  6. If all works, then navigate the mirror to be mirror-face up (watch out for cables)
@elliotwoods
elliotwoods / gist:68caea5535584d71ec976ab07414d72b
Created September 13, 2017 07:08
errors compiling glmpython against current master glm
Parseme: Parsed python.parseme.hpp...
Parseme: Parsed python.parseme.cpp...
running install
running build
running build_ext
building 'glm' extension
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I../ -IC:\Users\kimchips\Anaconda3\envs\KC31\include -IC:\Users\kimchips\Anaconda3\envs\KC31\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\winrt" /EHsc /Tppython.cpp /Fobuild\temp.win-amd64-3.6\Release\python.obj
python.cpp
c:\users\kimchips\dev\glm\glm\gtc\bitfield.inl(88): warning C4309: 'static_cast': truncation of constant value
c:\users\kimchips\dev\glm\glm\gtc\bitfield.inl(89): warning C4
from KC31Node import app
from KC31Node import serialDevice
import sys
import time
from IPython import embed
import json
from flask import jsonify
from threading import Lock, Timer
@elliotwoods
elliotwoods / CMakeError.log
Created August 13, 2017 06:02
Trying to build mysql-connector-c-6.1.11 with ios toolchain
Determining if the include file sys/types.h exists failed with the following output:
Change Dir: /Users/elliot/dev/mysql-connector-c-6.1.11-src/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_16c87/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_16c87.dir/build.make CMakeFiles/cmTC_16c87.dir/build
Building C object CMakeFiles/cmTC_16c87.dir/CheckIncludeFile.c.o
/usr/bin/gcc -arch armv7 -arch armv7s -arch arm64 -o CMakeFiles/cmTC_16c87.dir/CheckIncludeFile.c.o -c /Users/elliot/dev/mysql-connector-c-6.1.11-src/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
In file included from /Users/elliot/dev/mysql-connector-c-6.1.11-src/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:
In file included from /usr/include/sys/types.h:75:
/usr/include/sys/cdefs.h:761:2: error: Unsupported architecture
@elliotwoods
elliotwoods / DynamicBufferNode.cs
Created April 9, 2017 01:34
DynamicBuffer (VAudio)
#region usings
using System;
using System.ComponentModel.Composition;
using VVVV.PluginInterfaces.V1;
using VVVV.PluginInterfaces.V2;
using VVVV.Utils.VColor;
using VVVV.Utils.VMath;
using VVVV.Core.Logging;
1
00:01:03,240 --> 00:01:06,312
Soon it will be spring again.
2
00:01:06,360 --> 00:01:08,669
Grass sprouting.
3
00:01:10,080 --> 00:01:12,435