项目: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;
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。