Skip to content

Instantly share code, notes, and snippets.

@kubark42
kubark42 / Thrust_stand_control_1780.ipynb
Last active Aug 7, 2020
Thrust_stand_control_1780.ipynb
View Thrust_stand_control_1780.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View data_processing.js
'use strict';
// rcb api instantiation.
var GUI_log = '';
var DATA_control = function(){
}
var RPM_filter_arr = [];
View msp.js
'use strict';
// MSP_codes needs to be re-integrated inside MSP object
var MSP_codes = {
MSP_DEBUG: 0,
MSP_FIRMWARE: 1,
MSP_BOARD: 2,
MSP_POLL: 3,
MSP_GETOHM: 4,
MSP_POLL_1780: 5,
View gist:4e6cdb13aa7563aaed769a77b176fe7b
import threading
import pause
import random
import time
def doit1(stop_event, name, timeStep):
now = time.time()
print("[" + name + "]: " + str(now))
nextWakeTime = now + timeStep
@kubark42
kubark42 / compile_QLocation.sh
Last active Sep 12, 2017
Script for compiling QLocation from git sources.
View compile_QLocation.sh
# Clone main repo
git clone git://code.qt.io/qt/qt5.git
# Enter main repo
cd qt5
# Checkout 5.9, which is currently in Alpha [2017-02-15]
git checkout 5.9
# Fetch all submodules-- except webkit, webkit-examples, and webengine-- and check out v.5.9
View gist:02da081e12f45a30eeee
```
~/Documents/catkin_ws$ rosrun image_view image_view image:=camera/image_raw
(process:13010): GLib-GObject-WARNING **: invalid uninstantiatable type '(null)' in cast to 'GtkWidget'
(process:13010): GLib-GObject-WARNING **: instance of invalid non-instantiatable type '(null)'
(process:13010): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
```
View nex6-capture.rb
#!/usr/bin/ruby
#
# nex6-capture.rb - sample program for Sony NEX-6 (Smart Remocon App)
#
require "socket"
require 'json'
require "pp"
require "open-uri"
$host = "192.168.122.1"