edu.wpi.first.wpilibj.SensorBase的实例源码

项目:FRC2015    文件WheelSystem.java   
@Override
public void destroy() {
    drivetrain.free();
    if(sidewaysMotor instanceof SensorBase){
        SensorBase motor = (SensorBase) sidewaysMotor;
        motor.free();
    }
}
项目:aerbot-champs    文件MultiMotor.java   
public void free() {
    for (int i = 0; i < motors.length; i++) {
        if (motors[i] instanceof SensorBase) {
            SensorBase motor = (SensorBase) motors[i];
            motor.free();
        }
    }
}
项目:aerbot-champs    文件ShooterSystem.java   
public void destroy() {
    if(speedController instanceof SensorBase){
        SensorBase motor = (SensorBase) speedController;
        motor.free();
    }
    solenoid.free();
}
项目:aerbot-champs    文件IntakeSystem.java   
public void destroy() {
    if(motorController instanceof SensorBase){
        SensorBase motor = (SensorBase) motorController;
        motor.free();
    }
    intakeLift.free();
    intakeLift2.free();
}
项目:Lib2585    文件MultiMotor.java   
@Override
public void free() {
    for (int i = 0; i < motors.length; i++) {
        if (motors[i] instanceof SensorBase) {
            SensorBase motor = (SensorBase) motors[i];
            motor.free();
        }
    }
}
项目:FlashLib    文件FRCPWM.java   
@Override
public double getFrequency() {
    return (SensorBase.kSystemClockTicksPerMicrosecond * 1e3) / dioJNI.getLoopTiming();
}
项目:blanket    文件ToggleInputEvent.java   
public ToggleInputEvent(final SensorBase sensor,final boolean toggle) {
    super(sensor);
    this.toggle = toggle;
}
项目:blanket    文件InputEvent.java   
public InputEvent(final SensorBase source) {
    this.source = source;
}
项目:blanket    文件NumberInputEvent.java   
public NumberInputEvent(final SensorBase sensor,final double number) {
    super(sensor);
    this.number = number;
}
项目:blanket    文件InputEvent.java   
/**
 * Returns the sensor giving an input in this event.
 *
 * @return The sensor giving an input in this event.
 */
public final SensorBase getSource() {
    return source;
}
项目:Team3310FRC2014    文件SPIDevice.java   
/**
 * Initialize SPI bus<br>
 * Only call this method once in the program
 *
 * @param clkChannel    The channel of the digital output for the clock signal.
 * @param mosiChannel   The channel of the digital output for the written data to the slave
 * (master-out slave-in).
 * @param misoChannel   The channel of the digital input for the input data from the slave
 * (master-in slave-out).
 */
public static void initBus(final int clkChannel,final int mosiChannel,final int misoChannel) {
    initBus(SensorBase.getDefaultDigitalModule(),clkChannel,mosiChannel,misoChannel);
}
项目:2013-robot    文件SPIDevice.java   
/**
 * Initialize SPI bus<br>
 * Only call this method once in the program
 *
 * @param clkChannel    The channel of the digital output for the clock signal.
 * @param mosiChannel   The channel of the digital output for the written data to the slave
 * (master-out slave-in).
 * @param misoChannel   The channel of the digital input for the input data from the slave
 * (master-in slave-out).
 */
public static void initBus(final int clkChannel,misoChannel);
}

相关文章

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