Skip to content

Instantly share code, notes, and snippets.

View davidbuzz's full-sized avatar

Buzz davidbuzz

  • Brisbane, Australia
View GitHub Profile
#!/bin/bash -x
export INSTALLTO=/home/buzz2
# will end up as: home/buzz2/zephyrproject
echo repo: https://github.com/zephyrproject-rtos/zephyr
echo docs: https://docs.zephyrproject.org/latest/
echo supported boards: https://docs.zephyrproject.org/latest/boards/index.html
MyApp]$ swift build -v
/home/user/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /tmp/MyApp/.build/checkouts/swift-argument-parser/Plugins/GenerateManual/GenerateManualPlugin.swift /tmp/MyApp/.build/checkouts/swift-argument-parser/Plugins/GenerateManual/GenerateManualPluginError.swift /tmp/MyApp/.build/checkouts/swift-argument-parser/Plugins/GenerateManual/PackagePlugin+Helpers.swift -target x86_64-unknown-linux-gnu -disable-objc-interop -I /home/user/usr/lib/swift/pm/PluginAPI -g -swift-version 5 -package-description-version 5.6.0 -new-driver-path /home/user/usr/bin/swift-driver -serialize-diagnostics-path /tmp/MyApp/.build/plugins/cache/GenerateManual.dia -empty-abi-descriptor -resource-dir /home/user/usr/lib/swift -enable-anonymous-context-mangled-names -module-name GenerateManual -emit-module-doc-path /tmp/TemporaryDirectory.ORHZH8/GenerateManual-1.swiftdoc -emit-module-source-info-path /tmp/TemporaryDirectory.ORHZH8/GenerateManual-1.swiftsourc
<?xml version="1.0"?>
<mavlink>
<include>common.xml</include>
<!-- Vendors -->
<include>uAvionix.xml</include>
<include>icarous.xml</include>
<dialect>2</dialect>
<!-- Note that APM specific messages should use the command id range from 150 to 250, to leave plenty of room for growth of common.xml If you prototype a message here, then you should consider if it is general enough to move into common.xml later -->
<enums>
<enum name="ACCELCAL_VEHICLE_POS">
import time
from datetime import date, timedelta
import datetime
import calendar
# test code by davidbuzz, sept 2019
#NOTES:
#GPS time was zero at 0h 6-Jan-1980 and since it is not perturbed by leap seconds GPS is now ahead of UTC by 18 seconds.
#TAI is currently ahead of UTC by 37 seconds, and like gps, does not have leap seconds. TAI is always ahead of GPS by 19 seconds.
@davidbuzz
davidbuzz / gist:fbdce76db05f9d8910fc0df14eba1852
Last active April 9, 2019 01:02
buzz simple crc_check cross-check
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h> /* srand, rand */
#include <time.h> /* time */
// AP_Math/crc.cpp
/*
{
"accessors": [
{
"name": "Node-Mesh_positions",
"componentType": 5126,
"count": 15589,
"min": [
-166.00997924804688,
-156.50997924804688,
-61.90999984741211
From 8f72fb6025973d11205d3d87b26705c2065a8a78 Mon Sep 17 00:00:00 2001
From: Buzz <davidbuzz@gmail.com>
Date: Thu, 8 Jun 2017 12:48:02 +1000
Subject: [PATCH] make tridges code build/run on osx.
---
web_server/functions.c | 2 +-
web_server/linux/util_linux.c | 9 +++++++--
web_server/linux/util_linux.h | 2 +-
3 files changed, 9 insertions(+), 4 deletions(-)