PrebuiltPosition

inner class PrebuiltPosition

A position that can hold extra attributes including rotation and forward translation, allowing flags to be attached to the position.

The build method is automatically called if forgotten via the AutonomousBunyipsOpMode setOpModes() method, ensure other implementations are aware of this potential runtime error (attempting to parse a prebuilt position).

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Translate backward from the center of the field tile to your robot center as defined by your translate step. This is to align your robot to touching the field wall.

Link copied to clipboard

Construct this position.

Link copied to clipboard

Add a flag to this starting configuration, which can be used to additionally identify the position in a custom way.

Link copied to clipboard

Rotate the starting position in-place to represent what angle your robot is facing relative to facing forward on the chosen alliance side.