Class MockDigitalDevice
java.lang.Object
org.firstinspires.ftc.teamcode.fy23.fakestuff.MockDigitalDevice
- All Implemented Interfaces:
Button
,DigitalDevice
Can also be used as a mock
Button
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.firstinspires.ftc.teamcode.fy23.gamepad2.primitives.Button
Button.BoolLambda
Nested classes/interfaces inherited from interface org.firstinspires.ftc.teamcode.fy23.robot.subsystems.DigitalDevice
DigitalDevice.Parameters
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MockDigitalDevice
public MockDigitalDevice(boolean initialState)
-
-
Method Details
-
isActive
public boolean isActive()Description copied from interface:DigitalDevice
When a device is "active" depends on the implementation.- Specified by:
isActive
in interfaceButton
- Specified by:
isActive
in interfaceDigitalDevice
-
setActive
public void setActive(boolean newState)
-