ExtensionsKt

public final class ExtensionsKt

Functions

Link copied to clipboard
public final static List<Pair<PhotonModule, PhotonPipelineResult>> getDecentResultPairs(List<PhotonModule> $self)

Extension function for a list of PhotonModule objects to get the best PhotonPipelineResult.

Link copied to clipboard
public final static EstimatedRobotPose getEstimatedPose(Pair<PhotonModule, PhotonPipelineResult> $self, Pose2d prevEstimatedRobotPose)

Extension function for a Pair of PhotonModule and PhotonPipelineResult to get estimated poses.

Link copied to clipboard
public final static Boolean hasTargets(List<Pair<PhotonModule, PhotonPipelineResult>> $self)

Extension function for a list of Pair objects to check if any have targets.

Link copied to clipboard
public final static NetworkPingu setPingu(TalonFXConfiguration $self, NetworkPingu pingu)

Extension function to set the Pingu values of a TalonFXConfiguration using a NetworkPingu object.

public final static Pingu setPingu(TalonFXConfiguration $self, Pingu pingu)

Extension function to set the Pingu values of a TalonFXConfiguration using a Pingu object.

Link copied to clipboard
public final static Unit updateStdDev(Pair<PhotonModule, PhotonPipelineResult> $self, Optional<EstimatedRobotPose> estimatedRobotPose)

Extension function for a Pair of PhotonModule and PhotonPipelineResult to update the standard deviations of the estimated robot pose.

Link copied to clipboard
public final static Unit updateStdDev3d(Pair<PhotonModule, PhotonPipelineResult> $self, Optional<EstimatedRobotPose> estimatedRobotPose)

Extension function for a Pair of PhotonModule and PhotonPipelineResult to update the 3d standard deviations of the estimated robot pose.