AlignToPointDriveTask

constructor(@NonNull point: Supplier<Vector2d>, @Nullable passthrough: Supplier<Vector2d>, @NonNull drive: Moveable)

Construct a new pass-through AlignToPointTask.

Parameters

point

the point to align to in field space, will use the drive's pose estimate for current position

passthrough

the robot linear velocity pass-through

drive

drive instance to use, can optionally be a BunyipsSubsystem for auto-attachment


constructor(@NonNull point: Supplier<Vector2d>, @NonNull passthroughTranslation: Gamepad, @NonNull drive: Moveable)

Construct a new controller-based pass-through AlignToPointTask.

Parameters

point

the point to align to in field space, will use the drive's pose estimate for current position

passthroughTranslation

the controller where the left stick will be used to pass translation pose

drive

drive instance to use, can optionally be a BunyipsSubsystem for auto-attachment


constructor(@NonNull point: Supplier<Vector2d>, @NonNull drive: Moveable)

Construct a turn-only AlignToPointTask.

This constructor will not permit active translation while the task is running, but is not recommended since this is a TeleOp task with no end condition. Alternative solutions exist for aligning to a point in Autonomous (e.g. by method of TurnTask, as this task is designed for dynamic conditions to continuous alignment).

Parameters

point

the point to align to in field space, will use the drive's pose estimate for current position

drive

drive instance to use, can optionally be a BunyipsSubsystem for auto-attachment