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
# 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 |
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
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. | |
*/ |