Skip to content

Instantly share code, notes, and snippets.

@robots
robots / RUT9XX_R_GPL_00.06.06.1.patch
Last active July 17, 2020 12:32
RUT9xx SDK patch, to build on recent systems
diff -Naur RUT9XX_R_GPL_orig/tools/bison/patches/101-iohmissing.patch RUT9XX_R_GPL/tools/bison/patches/101-iohmissing.patch
--- RUT9XX_R_GPL_orig/tools/bison/patches/101-iohmissing.patch 1970-01-01 01:00:00.000000000 +0100
+++ RUT9XX_R_GPL/tools/bison/patches/101-iohmissing.patch 2020-07-17 12:22:42.222319970 +0200
@@ -0,0 +1,13 @@
+Index: bison-3.0.4/lib/fseterr.c
+===================================================================
+--- bison-3.0.4.orig/lib/fseterr.c
++++ bison-3.0.4/lib/fseterr.c
+@@ -29,7 +29,7 @@ fseterr (FILE *fp)
+ /* Most systems provide FILE as a struct and the necessary bitmask in
@robots
robots / rs41_demodulator.py
Created January 11, 2020 19:18
Testing RS41 radiosonde demodulation
# excercise for FSK demodulator - Michal Demin
# wav file reader and rs41 details from https://github.com/rs1729/RS
# raised root cosine filter generation from soundmodem project: https://gitlab.com/tsailer/soundmodem
# fsk demod inspired by soundmodem, but completly rewritten
# demodulator is not the fastest one (fir filter is implemented very badly), but it is working
# this was written as excercise to test fskdemodulator on PC before implementing MCU version for stm32(stay tuned)
import numpy as np
import struct
import struct
import os
global_offset = 0x130
files = []
def read_string(fin, offset):
out= ""
now = fin.tell()