Package com.reduxrobotics.frames
Class BooleanFrame
Implements a boolean frame.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.reduxrobotics.frames.Frame
Frame.FrameCallback<FC> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Returns the value of the data frame.booleanhasData()Returns if this frame has data.voidupdateData(boolean data, double timestamp) Update the frame with new data.Methods inherited from class com.reduxrobotics.frames.Frame
addCallback, getFrameData, getTimestamp, maxTimestamp, removeCallback, update, waitForFrames
-
Constructor Details
-
BooleanFrame
public BooleanFrame(boolean defaultData) Instantiates a new frame.- Parameters:
defaultData- default data to store.
-
-
Method Details
-
getValue
Description copied from class:FrameReturns the value of the data frame. -
hasData
public boolean hasData()Description copied from class:FrameReturns if this frame has data. -
updateData
public void updateData(boolean data, double timestamp) Update the frame with new data.- Parameters:
data- data to update withtimestamp- timestamp to update with
-