Skip to content

Instantly share code, notes, and snippets.

View catid's full-sized avatar

Chris Taylor catid

View GitHub Profile
@catid
catid / print_start
Created March 24, 2022 19:18
print_start
[gcode_macro PRINT_START]
gcode:
M117 Print Starting...
; Make sure we are not applying stale bed mesh or Z offset
SET_GCODE_OFFSET Z=0
BED_MESH_CLEAR
; Start heating bed
@catid
catid / printer.cfg
Created March 18, 2022 21:26
printer.cfg
[gcode_macro PRINT_START]
gcode:
M117 Print Starting...
; Make sure we are not applying stale bed mesh or Z offset
SET_GCODE_OFFSET Z=0
BED_MESH_CLEAR
; Start heating bed
@catid
catid / printer.cfg
Created March 16, 2022 08:13
printer.cfg
[include mainsail.cfg]
[include timelapse.cfg]
# This file contains common pin mappings for the BigTreeTech Octopus V1.
# To use this config, the firmware should be compiled for the STM32F446 with a "32KiB bootloader"
# Enable "extra low-level configuration options" and select the "12MHz crystal" as clock reference
# after running "make", copy the generated "klipper/out/klipper.bin" file to a
# file named "firmware.bin" on an SD card and then restart the OctoPus with that SD card.
x264_param_t param;
x264_param_default_preset(&param, "veryfast", "zerolatency");
param.rc.i_rc_method = X264_RC_ABR;
param.rc.i_bitrate = kbps_bitrate;
param.i_width = width;
param.i_height = height;
param.i_fps_num = fps;
param.i_fps_den = 1;
param.i_csp = X264_CSP_I420;
GPD Win Max 2021 CPU-Z Benchmark Results
Seems worth setting TDP lower on Win Max 2021.
Single-threaded: Up to 50% faster.
Multi-threaded: Up to 22% faster.
BIOS: TDP Down (15 W)
Windows: Best Power Efficiency
Single-thread: 405.8
@catid
catid / gist:f84ab44cff9c2be97ebb0d811418a8b6
Last active May 18, 2021 19:40
Weird compile error on ARM:
```
Unhandled exception: Error: Output "output" requires type float32 but was defined as type float32x12793.
```
```
const int expected_width = 640;
const int expected_height = 512;
static Func blur_x("blur_x"), blur_y("blur_y"), blur2_x("blur2_x");
static Func input_float("input_float");
Snake with cubes!
Discrete curvy snakes!
Energy level shoot shots.
Chopped off at energy level.
Head of snake is a free shot (no energy).
2021-03-30 19:01:04.068 23980-10184/com.example.cameratest I/CameraTest: [19:01:04 -07:00] [I] StartCameras
2021-03-30 19:01:04.070 23980-10184/com.example.cameratest I/CameraTest: [19:01:04 -07:00] [I] Camera count: 2
2021-03-30 19:01:04.070 23980-10184/com.example.cameratest I/CameraTest: [19:01:04 -07:00] [I] * Camera: 0
2021-03-30 19:01:04.071 23980-10184/com.example.cameratest I/CameraTest: [19:01:04 -07:00] [I] ** Camera metadata contains 133 tags:
2021-03-30 19:01:04.071 23980-10184/com.example.cameratest I/CameraTest: [19:01:04 -07:00] [I] *** "Color Correction Available Aberration Modes" x3 = [ Off, Fast, High Quality ] -- from ACAMERA_COLOR_CORRECTION : ACAMERA_COLOR_CORRECTION_AVAILABLE_ABERRATION_MODES#4 t=Byte
2021-03-30 19:01:04.071 23980-10184/com.example.cameratest I/CameraTest: [19:01:04 -07:00] [I] *** "Ae Available Antibanding Modes" x4 = [ Off, 50 Hz, 60 Hz, Auto ] -- from ACAMERA_CONTROL : ACAMERA_CONTROL_AE_AVAILABLE_ANTIBANDING_MODES#65554 t=Byte
2021-03-30 19:01:04.071 23980-10184/co

Keybase proof

I hereby claim:

  • I am catid on github.
  • I am catid (https://keybase.io/catid) on keybase.
  • I have a public key whose fingerprint is ED87 9F30 5595 C87E D250 2854 ED7D 4351 6971 E7C0

To claim this, I am signing this object:

@catid
catid / gist:ee02d5f914e91de7df9f986f757e2e11
Last active February 10, 2023 06:23
Papers on real-time 3D reconstruction in order of general excitement
Holoportation: Virtual 3D Teleportation in Real-time
Microsoft Research
https://www.microsoft.com/en-us/research/publication/holoportation-virtual-3d-teleportation-in-real-time/
KinectFusion: Real-Time Dense Surface Mapping and Tracking
Microsoft Research
https://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/ismar2011.pdf
FusionMLS: Highly dynamic 3D reconstruction with consumergrade RGB-D cameras
Siim Meerits