zoneTrigger

inline fun zoneTrigger(tag: String, crossinline position: () -> Pose2d = { SwerveSubsystem.getPose() }): Trigger
inline fun zoneTrigger(zone: Zone, crossinline position: () -> Pose2d = { SwerveSubsystem.getPose() }): Trigger

Returns a trigger that is true while the position is inside the zone, and false otherwise.

Return

A trigger that checks against a specific zone