Class Switch
java.lang.Object
org.firstinspires.ftc.teamcode.fy23.robot.subsystems.digitaldevice.Switch
- All Implemented Interfaces:
DigitalDevice
An implementation of DigitalDevice for simple switches or other simple uses of
DigitalChannel
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.firstinspires.ftc.teamcode.fy23.robot.subsystems.DigitalDevice
DigitalDevice.Parameters
-
Constructor Summary
ConstructorDescriptionSwitch
(com.qualcomm.robotcore.hardware.HardwareMap hardwareMap, DigitalDevice.Parameters parameters) -
Method Summary
Modifier and TypeMethodDescriptionboolean
isActive()
When a device is "active" depends on the implementation.
-
Constructor Details
-
Switch
public Switch(com.qualcomm.robotcore.hardware.HardwareMap hardwareMap, DigitalDevice.Parameters parameters)
-
-
Method Details
-
isActive
public boolean isActive()Description copied from interface:DigitalDevice
When a device is "active" depends on the implementation.- Specified by:
isActive
in interfaceDigitalDevice
-