本文整理汇总了Java中edu.wpi.first.wpilibj.Relay.setDirection方法的典型用法代码示例。如果您正苦于以下问题:Java Relay.setDirection方法的具体用法?Java Relay.setDirection怎么用?Java Relay.setDirection使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类edu.wpi.first.wpilibj.Relay
的用法示例。
在下文中一共展示了Relay.setDirection方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: Shooter
import edu.wpi.first.wpilibj.Relay; //导入方法依赖的package包/类
public Shooter(JoystickControl controller) {
this.controller = controller;
WINCH = new Relay(WINCH_RELAY_CHANNEL);
WINCH.setDirection(Relay.Direction.kForward);
shooterSwitch = new DigitalInput(WINCH_DIGITAL_SIDECAR_SLOT,
WINCH_DIGITAL_CHANNEL);
cycleCounts = 0;
}
示例2: Flashlight
import edu.wpi.first.wpilibj.Relay; //导入方法依赖的package包/类
/**
* A private constructor to prevent multiple instances from being created.
*/
private Flashlight() {
lightRelay = new Relay(RobotMap.flashlightRelay.getInt());
lightRelay.setDirection(Relay.Direction.kForward);
}
示例3: Compressor
import edu.wpi.first.wpilibj.Relay; //导入方法依赖的package包/类
private Compressor()
{
compressorRelay = new Relay(1);
compressorRelay.setDirection(Relay.Direction.kForward);
}
示例4: OffBoardCompressor
import edu.wpi.first.wpilibj.Relay; //导入方法依赖的package包/类
private OffBoardCompressor()
{
compressorRelay = new Relay(RobotMap.OFF_BOARD_COMPRESSOR_RELAY);
compressorRelay.setDirection(Relay.Direction.kForward);
}
示例5: Gripper
import edu.wpi.first.wpilibj.Relay; //导入方法依赖的package包/类
public Gripper(){
gripperRelay = new Relay(1);
gripperRelay.setDirection(Relay.Direction.kBoth);
}