Skip to content

Change aimTarget to use Supplier<Pose2d>#40

Merged
thenetworkgrinch merged 4 commits intoYet-Another-Software-Suite:mainfrom
Hello2Krish19:main
Mar 11, 2026
Merged

Change aimTarget to use Supplier<Pose2d>#40
thenetworkgrinch merged 4 commits intoYet-Another-Software-Suite:mainfrom
Hello2Krish19:main

Conversation

@Hello2Krish19
Copy link
Contributor

Rewrote aimTarget to be of type Optional<Supplier>

Added overload method for a Pose2D

Added javadocs for method

Only affected methods were .aim and .get under the aim case

Rewrote aimTarget to be of type Optional<Supplier<Pose2d>>

Added overload method for a Pose2D

Added javadocs for method

Only affected methods were .aim and .get under the aim case
changed .get().orElseThrow() into .orElseThrow().get
Copy link
Contributor

@thenetworkgrinch thenetworkgrinch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Syntax error? Build error? I am not sure what to call this

} else if (aimEnabled.isPresent() && aimEnabled.get().getAsBoolean())
{
if (aimTarget.isPresent())
if (.isPresent())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uhm dude.

@thenetworkgrinch thenetworkgrinch merged commit 65efdb9 into Yet-Another-Software-Suite:main Mar 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants