18192021222324
/** * Creates relay and sets it to a port number on the digital side car as specified * @param channel */ public GRTRelay(int channel) { relay = new Relay(channel); }
15161718192021
public static final double RELAY_OFF = 0.0; private Relay relay; public GRTRelay(int channel) { relay = new Relay(channel); }
private boolean isOn = false; // Put methods for controlling this subsystem // here. Call these from Commands. public BallLight() { ballLight = new Relay(RobotMap.BALL_LIGHT, Relay.Direction.kForward); }