Skip to content

Instantly share code, notes, and snippets.

@yoronneko
yoronneko / obs.conf
Created May 10, 2020 09:26
ssr2obs configuration file for CLASLIB
#
#
# Setting for ssr2obs's conversion models
pos1-posmode =ssr2osr # (10:ssr2osr)
pos1-frequency =l1+l2 # (1:l1,2:l1+l2,3:l1+l2+l5)
pos1-tidecorr =on # (0:off,1:on)
pos1-posopt2 =off # receiver antenna model(0:off,1:on)
pos1-posopt3 =on # phase windup correction(0:off,1:on)
pos1-posopt6 =off # compensate time variation of ionosphere delay(0:off,1:ssr)
pos1-posopt8 =on # shapiro time delay correction (0:off,1:on)
@yoronneko
yoronneko / Makefile
Last active December 15, 2022 08:42
makefile for ssr2osr
# makefile for ssr2osr
CC = gcc
CFLAGS = \
-DENAGAL \
-DENAQZS \
-DENA_SSR2OSR \
-DLAPACK \
-DNFREQ=3 \
-DTRACE \
@yoronneko
yoronneko / Makefile
Last active June 13, 2020 10:34
makefile for ssr2obs
# makefile for ssr2obs
CC = gcc
CFLAGS = \
-DCSSR2OSR_VRS \
-DENAGAL \
-DENAGLO \
-DENAQZS \
-DLAPACK \
-DNEXOBS=2 \
# Setting for ssr2osr's conversion models
pos1-posmode =ssr2osr # (10:ssr2osr,11:ssr2osr-fixed)
#pos1-frequency =l1+l2+l5 # (2:l1+l2, 3:l1+l2+l5)
pos1-frequency =l1+l2 # (2:l1+l2, 3:l1+l2+l5)
pos1-elmask =15 # (deg)
pos1-snrmask_r =on # (0:off,1:on)
pos1-snrmask_L1 =10,10,10,10,30,30,30,30,30
pos1-snrmask_L2 =10,10,10,10,30,30,30,30,30
pos1-snrmask_L5 =10,10,10,10,30,30,30,30,30
pos1-tidecorr =on # (0:off,1:on)
@yoronneko
yoronneko / sigfox-una-shieldv2s-temp-humid-pressure.c
Created February 22, 2020 01:58
Measurement of temperature, humidity, air pressure, and accelerations with Sigfox Una Shield V2S
#include <Wire.h>
#include <SPI.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>
#include <Adafruit_MMA8451.h>
#include <SIGFOX.h>
/*
#define BME_SCK 13
#define BME_MISO 12
@yoronneko
yoronneko / lte-m-sample.c
Created February 22, 2020 01:55
Wio LTE M1/NB1 sample program
#include <WioCellLibforArduino.h>
#include <math.h>
#define L_EQUIP 100
#define L_MSG 100
#define T_SEND 1800
#define APN "soracom.io"
#define USERNAME "sora"
#define PASSWORD "sora"
#define WEBHOOK_URL "http://beam.soracom.io:8888/lte-m/"
@yoronneko
yoronneko / Vagrantfile
Created February 2, 2020 08:13
ISDB-T one-segment broadcasting reception configuration for GNU Radio with Vagrant
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/debian-9.3"
config.vm.hostname = "gnuradio"
config.vm.provider :virtualbox do |vbox|
vbox.name = "gnuradio"
vbox.gui = true
vbox.cpus = 2
@yoronneko
yoronneko / osmosdr.conf
Created February 2, 2020 08:04
A configuration file for GNSS SDR.
[GNSS-SDR]
;######### GLOBAL OPTIONS ##################
GNSS-SDR.internal_fs_sps=4000000
;######### CONTROL_THREAD CONFIG ############
;ControlThread.wait_for_flowgraph=false
;######### SIGNAL_SOURCE CONFIG ############
;https://gnss-sdr.org/docs/sp-blocks/signal-source/#implementation-osmosdr_signal_source
SignalSource.implementation=RtlTcp_Signal_Source
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (C) 2019 by Satoshi Takahashi, all right reserved.
# https://s-taka.org/
# BSD 2-clause license
import re
import serial
import sys
import threading
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (C) 2019 by Satoshi Takahashi, all right reserved.
# https://s-taka.org/
# BSD 2-clause license
import re
import serial
import time