This file contains hidden or 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
| % State-Space Simple Harmonic Oscillator | |
| % | |
| % This script simulates a damped simple harmonic oscillator (i.e. mass on a | |
| % spring) using a state-space description, and also implements a linear | |
| % observer. | |
| % | |
| % Tobin Fricke | |
| % 2012-04-13 | |
| % Parameters |
This file contains hidden or 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
| Show the effect of ADC/DAC quantization noise. |
This file contains hidden or 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
| # FILTERS FOR ONLINE SYSTEM | |
| # | |
| # Computer generated file: DO NOT EDIT | |
| # | |
| # MODULES FeCoeff32x | |
| # | |
| # SAMPLING RATE 65536 | |
| # | |
| ################################################################################ | |
| ### FeCoeff32x ### |
This file contains hidden or 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 <math.h> | |
| /* | |
| Custom atan2 function calling the FPU directly, for use when the | |
| math library isn't available. | |
| Tobin Fricke <[email protected]> 2012-03-13 | |
This file contains hidden or 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
| How to calculate an exponential running average. |
This file contains hidden or 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
| Analysis of the twin-T notch filter |
This file contains hidden or 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 = applysos(soscoef, x) | |
| % Apply a matrix of SOS cofficients to some time series. | |
| % | |
| % Tobin Fricke | |
| % 2012-02-07 | |
| if size(soscoef,2) ~= 6 | |
| error('soscoef is not the right size'); | |
| end |
This file contains hidden or 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
| # Description: AAFILTERNEW | |
| # File: AAFilterNew | |
| # Revision: 2011-10-25 | |
| r r6 5.11k nin na1 | |
| r r7 5.11k na1 nb1 | |
| c c12 2.2n nb1 gnd | |
| c c16 6.8n na1 nout1 | |
| op n4a lt1124 nb1 nout1 nout1 |
This file contains hidden or 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
| % Here's an attempt to sketch the filter toplogy: | |
| % | |
| % in R1A C1 R2A C2 | |
| % >----+--/\/\/\----||---+--+--+--/\/\/\----||---+---+----> out | |
| % | | | | | | | |
| % +------/\/\/\-----+ | +------/\/\/\-----+ | | |
| % R1B | R2B | | |
| % +--|-\ | | |
| % | \__________________| | |
| % R_BIAS | / |
This file contains hidden or 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
| Download from my GPS from these two trips. Part of the first leg of the airplane trip | |
| is missing. | |
| For a quick visualization, extract the coordinates: | |
| > grep '^T' trackOct2011.txt | awk '{print $5 " " $4}' > foo.txt | |
| Then you can open up gnuplot and simply do: | |
| > plot "foo.txt" |