Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Changed Location of have_seen in BlueAuto
Browse files Browse the repository at this point in the history
The have_seen boolean was being declared inside the runOpMode() loop,
this means that every time the value the camera should have
stopped detecting, the value was reset to false causing issue #3
  • Loading branch information
strangejmaster committed Feb 21, 2024
1 parent df5cc16 commit eafa586
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,10 @@ private void turn_Right(double time__in_seconds_, double power){
sleep((long) (time__in_seconds_ * 1000));
}

boolean have_seen = false;

@Override
public void runOpMode() {
boolean have_seen = false;
// Setup motors
// Motors are first identified with the 'mt' (Motor)
// They're then identified with F (Front) or B (Back)
Expand Down

0 comments on commit eafa586

Please sign in to comment.