@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();
}
}
}
public void destroy() {
if(speedController instanceof SensorBase){
SensorBase motor = (SensorBase) speedController;
motor.free();
}
solenoid.free();
}
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
项目: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);
}