Skip to content

Instantly share code, notes, and snippets.

View moorepants's full-sized avatar

Jason K. Moore moorepants

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@moorepants
moorepants / jac.py
Created July 7, 2015 16:29
Jacobian of systems
from pydy.models import n_link_pendulum_on_cart
sys = n_link_pendulum_on_cart(2)
sys.coordinates
sys.eom_method.q
sys.eom_method.u
sys.states
import sympy as sm
x = sm.Matrix(sys.states)
x
sys.eom_method.forcing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@moorepants
moorepants / gist:d56431e9278c17028736
Last active December 2, 2015 18:38
notebook for sphere contact
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@moorepants
moorepants / issue_10062.ipynb
Last active October 29, 2015 21:00
SymPy Issue 10062
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@moorepants
moorepants / eme150a_fall_2015_stats.ipynb
Last active December 16, 2015 05:39
EME 150A Fall 2015 Stats
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@moorepants
moorepants / temp_control.ino
Created February 11, 2016 21:27
Code for the temperature controller in EME185.
int tempPin = A1;
int fanPin = 11;
double tempMeasurement;
double tempError;
int fanPWM;
double pconst = 20;
double desTemp = 27;
void setup() {
@moorepants
moorepants / FanTempSkeleton.ino
Last active February 16, 2016 17:37
The skeleton code for the fan speed controller tutorial in EME 185.
// Code written before setup() and loop() are global varables.
// define pins for: tempPin, fanPin, tempMeas, tempError, fanPWM, K, tempDes.
// Which variables should be ints and which floats/doubles?
// Code written in setup() for pin configuration
// setup tempPin, fanPin, and Serial.begin
void setup() {
// tempPin
pinMode(,);
// fanPin
@moorepants
moorepants / chaos_pendulum.ipynb
Created March 6, 2016 03:09
Files from the PyDy tutorial given to the UCD HRVIP lab on March 4, 2016.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@moorepants
moorepants / ma223_winter_2016_pydy_tutorial.ipynb
Created March 9, 2016 23:09
Jupyter notebook from the UCD MAE 223 2016 PyDy tutorial.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.