Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import bpy
import csv
import math
import sys
import argparse
# parse optional arguments
argv = sys.argv
argv = argv[argv.index("--") + 1:] # get all args after "--"
sys.argv = [sys.argv[0]] + argv
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python
# Copyright (c) 2016 Nordic Semiconductor ASA
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
@peabody124
peabody124 / position_outdoor.py
Created March 15, 2014 18:10
Generate video of the performance during loiter, this includes the loiter position, current estimate of position and raw gps position
# Generate video of the performance during loiter, this
# includes the loiter position, current estimate of
# position and raw gps position
output_filename = 'position_overo_00163.mp4'
import matplotlib.animation as animation
import scipy.signal as signal
# parse the data
@peabody124
peabody124 / alt_control.py
Created March 15, 2014 18:07
Generate video to visualize the data from altitude hold. Includes "AltitudeHoldDesired", which is a testing object that has not been merged yet.
# Generate video to visualize the data from altitude hold.
# Includes "AltitudeHoldDesired", which is a testing object
# that has not been merged yet.
output_filename = 'alt_hold_overo_00162.mp4'
import matplotlib.animation as animation
import scipy.signal as signal
baro = uavo_list.as_numpy_array(UAVO_BaroAltitude)
@peabody124
peabody124 / gist:8312288
Created January 8, 2014 05:32
octave parsing
jimmyc:~/Programming/TauLabs (next)$ less ~/Downloads/TauLabs-2014-01-05_14-11-30.tll
"/Users/Cotton/Downloads/TauLabs-2014-01-05_14-11-30.tll" may be a binary file. See it anyway?
jimmyc:~/Programming/TauLabs (next)$ git checkout ccbf8f54
Note: checking out 'ccbf8f54'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may