This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <ctype.h> | |
#define TRUE 1 | |
#define FALSE 0 | |
static const char SYMBOL_OPEN[] = "<symbol name=\"HEADER-%dPOS\">\n"; | |
static const char SYMBOL_CLOSE[] = "</symbol>\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{prospectus} | |
\usepackage[T1]{fontenc} % looks better than default font encoding | |
\usepackage{lmodern} % need a newer font to work with T1 font encoding | |
\usepackage{graphicx} % for including images | |
% standard document info | |
\title{My Prospectus Title} | |
\author{My Name} | |
\date{\today} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
EXTENSIONS=".aux .log .nav .out .snm .synctex.gz .toc .bbl .blg -blx.bib .bcf .run.xml .acn .acr .alg .glg .glo .gls .ist .lof .lot .auxlock .synctex.gz(busy) .vrb .fls .fdb_latexmk .latexmk" | |
MAXDEPTH="-maxdepth 1" | |
if [ "$1" = "-r" ] || [ "$1" = "-R" ]; then | |
MAXDEPTH="" | |
fi | |
find . $MAXDEPTH -type f -name "*.tex" | while read FILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function y = rk4(f, y, t, dt, varargin) | |
%RK4 Runge-Kutta 4th order integration | |
% RK4(F,Y,T,DT,...) integrates the differential equation y' = f(t,y) from | |
% time T to time T+DT, where Y is the value of the solution vector at | |
% time T. F is a function handle. For a scalar T and a vector Y, F(T,Y) | |
% must return a column vector corresponding to f(t,y). Additional | |
% arguments will be passed to the function F(T,Y,...). | |
k1 = f(t, y, varargin{:}); | |
k2 = f(t + dt/2, y + k1*dt/2, varargin{:}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function group = extract_group(logfile, label) | |
%EXTRACT_GROUP Extracts data for the specified group from a PX4 log file | |
% EXTRACT_GROUP(LOGFILE,LABEL) extracts data for the group LABEL from the | |
% PX4 log file LOGFILE, and returns a struct whose fields are the members | |
% of that group. The returned struct also has a field TIME_StartTime | |
% containing the timestamps for the data. | |
index = find(logfile == '.', 1, 'last'); | |
if isempty(index) | |
basename = logfile; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function [data, meta] = bag2struct(bag, varargin) | |
%BAG2STRUCT Formats data from topics in a rosbag file into a struct | |
% DATA = BAG2STRUCT(BAG) returns a struct containing data for each of the | |
% topics in BAG, where BAG is an object of class 'ros.Bag'. | |
% | |
% [DATA,META] = BAG2STRUCT(BAG) additionally returns a struct containing | |
% the metadata for each topic in the bag. | |
% | |
% Example | |
% bag = ros.Bag.load('rosbag.bag'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef CIRCULAR_BUFFER_H | |
#define CIRCULAR_BUFFER_H | |
#include <stdlib.h> | |
template <class T> | |
class CircularBuffer | |
{ | |
private: | |
T* data; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import rospy | |
from sensor_msgs.msg import Imu | |
import numpy as np | |
import matplotlib.pyplot as plt | |
class Timing(): | |
def __init__(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
import pybag | |
import matplotlib.pyplot as plt | |
def initialize_plot(num_fields): | |
config = {} | |
config['fig'] = plt.figure() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -z $1 ]; then | |
echo "USAGE: $0 branch" | |
exit 1 | |
fi | |
BRANCH=$1 | |
EXIT_CODE=0 |
OlderNewer