Package com.marswars.auto
Class ChoreoEventMarker
java.lang.Object
com.marswars.auto.ChoreoEventMarker
Wrapper class for tracking Choreo event markers with their passed state.
-
Constructor Summary
ConstructorsConstructorDescriptionChoreoEventMarker(choreo.trajectory.EventMarker event) Creates a new event marker tracker. -
Method Summary
Modifier and TypeMethodDescriptionchoreo.trajectory.EventMarkergetEvent()Gets the underlying Choreo EventMarker.getName()Gets the name of this event.doubleGets the timestamp when this event should trigger.booleanChecks if this event has already been passed.voidMarks this event as passed.voidreset()Resets the passed state of this event.toString()
-
Constructor Details
-
ChoreoEventMarker
public ChoreoEventMarker(choreo.trajectory.EventMarker event) Creates a new event marker tracker.- Parameters:
event- The Choreo EventMarker to track
-
-
Method Details
-
getEvent
public choreo.trajectory.EventMarker getEvent()Gets the underlying Choreo EventMarker.- Returns:
- the EventMarker
-
getTimestamp
public double getTimestamp()Gets the timestamp when this event should trigger.- Returns:
- the timestamp in seconds
-
getName
Gets the name of this event.- Returns:
- the event name
-
hasBeenPassed
public boolean hasBeenPassed()Checks if this event has already been passed.- Returns:
- true if the event has been passed, false otherwise
-
markPassed
public void markPassed()Marks this event as passed. -
reset
public void reset()Resets the passed state of this event. -
toString
-