edu.wpi.first.wpilibj.interfaces.Potentiometer的实例源码

项目:Iapetus2014    文件PotentiometerPidSrc.java   
/**
 * Create a new PotentiometerPidSrc instance
 * @param pot a Potentiometer object to measure voltages from
 * @param minVolt the minimum measured voltage from the potentiometer at the "small" movement endpoint of the system
 * @param maxVolt the maximum measured voltage from the potentiometer at the "large" movement endpoint of the system
 * @param minAngle the minimum angle the system can physically rotate to
 * @param maxAngle  the maximum angle the system can physically rotate to
 */
public PotentiometerPidSrc(final Potentiometer pot,final float minVolt,final float maxVolt,final float minAngle,final float maxAngle) {
    this.pot = pot;
    this.minVolt = minVolt;
    this.maxVolt = maxVolt;
    this.minAngle = minAngle;
    this.maxAngle = maxAngle;
}
项目:2017-code    文件PIDPotentiometer.java   
/**
 * Create a PIDPotentiometer,for use with a 1699 PIDLoop
 * 
 * @param p a potentiometer
 */
public PIDPotentiometer(Potentiometer p) {
    this.sens = p;
}
项目:swerve-code    文件PIDPotentiometer.java   
/**
 * Create a PIDPotentiometer,for use with a 1699 PIDLoop
 * 
 * @param p a potentiometer
 */
public PIDPotentiometer(Potentiometer p) {
    this.sens = p;
}
项目:Iapetus2014    文件PotentiometerPidSrc.java   
/**
 * Retrieve the original sensor used to construct this PIDSrc
 * @return the Potentiometer
 */
public Potentiometer getSensor() {
    return pot;
}

相关文章

买水果
比较全面的redis工具类
gson 反序列化到多态子类
java 版本的 mb_strwidth
JAVA 反转字符串的最快方法,大概比StringBuffer.reverse()性...
com.google.gson.internal.bind.ArrayTypeAdapter的实例源码...