Skip to content

Instantly share code, notes, and snippets.

Words 6 through 10 from Subframe 4, Page 18 of five satellites shortly after 2016-07-19T19:00:00:00Z
See IS-GPS-200H pp. 83, 116-118, 124-125
GPS L1CA 19 SF4 P18 W6-10 = 3FFFFFAF 0000003F 0018DC9E 046241F1 04800010
6 LSB parity bits included (already checked), so right-shift each word
by 6 before extracting hex field values
Field Hex Decimal Scale
A1 FFFFFE -2 *2^-30
henry@spx1:~/kitty/butfor/yocto/builds/test$ bitbake perl
WARNING: Host distribution "Debian-unstable" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Parsing recipes: 100% |################################################################################################################################################################################################################################################################################################################| Time: 00:00:44
Parsing of 889 .bb files complete (0 cached, 889 parsed). 1330 targets, 70 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.31.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Debian-unstable"
henry@beast:~/yocto-test/build$ bitbake core-image-minimal
WARNING: Host distribution "Debian-unstable" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |######################################################################################################################################| ETA: 00:00:00
Loaded 1330 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.28.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Debian-unstable"
@henryhallam
henryhallam / planetsats
Last active August 29, 2015 14:25
Planet Labs satellites launched up to 2015-07-15
Dove 1 0601
Dove 2 0405
Dove 3 0711
Dove 4 0712 never released from UniSat-5
Flock 1-1 073D
Flock 1-2 0740
Flock 1-3 074B
Flock 1-4 073C
Flock 1-5 072C
@henryhallam
henryhallam / serial.c
Last active August 29, 2015 14:23
Example C POSIX serial I/O code
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/termios.h>
#include <sys/file.h>
#include <string.h>
#include <errno.h>
#include "../common/log.h"
@henryhallam
henryhallam / gss6100.sh
Last active March 11, 2017 08:55
Script to set up the GSS6100 single-channel GPS simulator for automatic operation
#!/bin/bash
# Edit this script if a different PRN, signal level or velocity is desired.
# Run it. You should see minicom open, then "Spirent Communications,GSS6100,1384,01.09".
# Power-cycle the GSS6100. You should see some boot messages and finally two lines like
# Info: check_autostart - MODE 2 script
# 'SVID 22 LEVL 16 VCTY 222 ARMS RUNS'
# Press CTRL-A X <enter> to leave minicom.
cat > /tmp/gssconfig <<EOF
@henryhallam
henryhallam / gist:bca1d368ac65c1967170
Created April 10, 2015 21:28
Temporary fix to build libswiftnav-python
# From the directory into which you originally cloned the libswiftnav-python repo:
henry@hank:~/swift/libswiftnav-python$ git remote add imh git@github.com:imh/libswiftnav-python.git
henry@hank:~/swift/libswiftnav-python$ git fetch imh new-bindings
From github.com:imh/libswiftnav-python
* branch new-bindings -> FETCH_HEAD
henry@hank:~/swift/libswiftnav-python$ git checkout new-bindings
Branch new-bindings set up to track remote branch new-bindings from imh.
@henryhallam
henryhallam / gist:d6281cf48b6eeda3e498
Created April 10, 2015 21:27
Temporary fix to build libswiftnav-python
# From the directory into which you originally cloned the libswiftnav-python repo:
henry@hank:~/swift/libswiftnav-python$ git remote add imh git@github.com:imh/libswiftnav-python.git
henry@hank:~/swift/libswiftnav-python$ git fetch imh new-bindings
From github.com:imh/libswiftnav-python
* branch new-bindings -> FETCH_HEAD
henry@hank:~/swift/libswiftnav-python$ git checkout new-bindings
Branch new-bindings set up to track remote branch new-bindings from imh.
@henryhallam
henryhallam / gist:5c637b3c0e43545dae29
Created April 6, 2015 23:32
piksi-firmware dev environment setup script failure
TASK: [common_ubuntu | Install python Enthought dependencies] *****************
failed: [127.0.0.1] => {"changed": true, "cmd": ["pip", "install", "traits", "traitsui", "pyserial", "pylibftdi", "pyparsing==1.5.7", "pygments", "intelhex", "six", "construct", "sbp==0.27", "--allow-unverified", "PIL", "--allow-external", "intelhex", "--allow-unverified", "intelhex"], "delta": "0:00:08.792963", "end": "2015-03-17 18:24:04.899455", "rc": 1, "start": "2015-03-17 18:23:56.106492", "warnings": []}
stdout: Requirement already satisfied (use --upgrade to upgrade): traits in /usr/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): traitsui in /usr/lib/python2.7/dist-packages
Downloading/unpacking pyserial
Running setup.py (path:/tmp/pip-build-zEZIXY/pyserial/setup.py) egg_info for package pyserial
Downloading/unpacking pylibftdi
Downloading pylibftdi-0.14.2-py2.py3-none-any.whl
Downloading/unpacking pyparsing==1.5.7
-- register_interface.vhd
-- Bridge between FPGALink and 32-bit register file
-- Author: Henry Hallam / Planet Labs 2012
-- Released by author into public domain, you may use this for any purpose
-- Uses FPGALink channels 0...3
-- ch 0 = write address
-- ch 1 = write data
-- ch 2 = read address
-- ch 3 = read data