Skip to content

Instantly share code, notes, and snippets.

View aakatz3's full-sized avatar
🙃

Andrew Katz aakatz3

🙃
View GitHub Profile
@aakatz3
aakatz3 / pwlgen.py
Created April 10, 2022 22:03
PWL Generator for LTSpice
# Adapted from https://www.egr.msu.edu/classes/ece410/salem/files/s16/labs/pwlgen.py for LTSpice
#!/usr/bin/python2
import sys
import getopt
import os
def pwl(num, label, width, rise, delay, vdd, transitions):
print "V" + str(num) + " " + label + " gnd PWL \n+ REPEAT FOREVER\n+ ("
t1 = 0
@aakatz3
aakatz3 / Motors
Last active May 26, 2020 03:47
Motor encoder constants for FTC
package org.firstinspires.ftc.teamcode;
/**
* Created by Andrew A. Katz on 12/9/2016.
* Updated 10/2/2019 to finally change to doubles, and to make everything units
* of CPR. PPR can be derived by multiplying by 4.
* Helper class that contains encoder data for various motors allowed by FTC.
* Contains motors from AndyMark, Pitsco, ModernRobotics, and Rev Robotics.
*/