Package trclib.subsystem
Class TrcIntake.TriggerParams
java.lang.Object
trclib.subsystem.TrcIntake.TriggerParams
- Enclosing class:
- TrcIntake
This class contains all the parameters of the Intake Trigger.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Boolean
private final Double
private TrcEvent
private final TrcTrigger
private final TrcEvent.Callback
private TrcTrigger.TriggerMode
-
Constructor Summary
ConstructorsConstructorDescriptionTriggerParams
(TrcTrigger trigger) Constructor: Create an instance of the object.TriggerParams
(TrcTrigger trigger, TrcEvent.Callback triggerCallback) Constructor: Create an instance of the object.TriggerParams
(TrcTrigger trigger, TrcEvent.Callback triggerCallback, Double threshold, Boolean triggerInverted) Constructor: Create an instance of the object. -
Method Summary
-
Field Details
-
trigger
-
triggerCallback
-
analogTriggerThreshold
-
analogTriggerInverted
-
triggerMode
-
notifyEvent
-
-
Constructor Details
-
TriggerParams
public TriggerParams(TrcTrigger trigger, TrcEvent.Callback triggerCallback, Double threshold, Boolean triggerInverted) Constructor: Create an instance of the object.- Parameters:
trigger
- specifies the TrcTrigger object.triggerCallback
- specifies the callback method to call when a trigger occurred, null if not provided.threshold
- specifies the sensor's analog threshold value, null if trigger is digital.triggerInverted
- specifies true if got object triggered below threshold, false if triggered above, null if trigger is digital.
-
TriggerParams
Constructor: Create an instance of the object.- Parameters:
trigger
- specifies the TrcTrigger object.triggerCallback
- specifies the callback method to call when a trigger occurred, null if not provided.
-
TriggerParams
Constructor: Create an instance of the object.- Parameters:
trigger
- specifies the TrcTrigger object.
-
-
Method Details