Class PointTowardsZoneTrigger

java.lang.Object
edu.wpi.first.wpilibj2.command.button.Trigger
com.pathplanner.lib.events.PointTowardsZoneTrigger
All Implemented Interfaces:
BooleanSupplier

public class PointTowardsZoneTrigger extends Trigger
A trigger that will be controlled by the robot entering/leaving a point towards zone
  • Constructor Details

    • PointTowardsZoneTrigger

      public PointTowardsZoneTrigger(String name)
      Create a new PointTowardsZoneTrigger. This will run on the EventScheduler's event loop, which will be polled any time a path following command is running.
      Parameters:
      name - The name of the point towards zone
    • PointTowardsZoneTrigger

      public PointTowardsZoneTrigger(EventLoop eventLoop, String name)
      Create a new PointTowardsZoneTrigger that gets polled by the given event loop instead of the EventScheduler
      Parameters:
      eventLoop - The event loop to poll this trigger
      name - The name of the point towards zone
  • Method Details

    • setWithinZone

      protected static void setWithinZone(String name, boolean withinZone)
      Set the value of a zone condition
      Parameters:
      name - The name of the condition
      withinZone - Is the robot within the point towards zone with the given name