Skip to content

Instantly share code, notes, and snippets.

View bitmorse's full-sized avatar
👋

Sam Sulaimanov bitmorse

👋
View GitHub Profile
const { adapters } = require('slcan');
const { dataTypes } = require('uavcan');
let body = {
dataTypeID: 'uavcan.protocol.param.GetSet',
value: {
index: 0,
value: {
integerValue: 123
@bitmorse
bitmorse / OIBUS_UAVCAN_DEBUGGER.py
Created May 17, 2019 00:05
OIBUS_UAVCAN_DEBUGGER
from multiprocessing import Process, Queue
import uavcan
from contextlib import closing
import tkinter
def node_status_callback(event):
print('#',event.transfer.source_node_id,': ', event.message.uptime_sec)
# Messages, service requests, service responses, and entire events
@bitmorse
bitmorse / lastexport.py
Created March 20, 2013 00:51
lastfm scrobble exporter (from https://gitorious.org/fmthings/lasttolibre/blobs/master/lastexport.py // changed the script to try more often on failure )
#!/usr/bin/env python
#-*- coding: utf-8 -*-
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@bitmorse
bitmorse / convert_dat.py
Last active May 1, 2024 14:12
How to record data from an STWIN.box (STEVAL-STWINBX1) on a Raspberry Pi via USB and convert the resulting .dat files to Pandas df or numpy arrays.
'''
# README FIRST #
###Goal###
On a Raspberry Pi, read .dat files created by STWIN.box from disk and get numpy or pandas objects to work with.
### Requirements ###
- Raspberry Pi
- ST-Link Debugger
- STWIN.box + USB-C Cable