Skip to content

Search Region if the bridge and tunnel in vertical to the y-axis #5

Open
@ebouJ

Description

@ebouJ

With our current implementation of Search. If the bridge/tunnel is placed on the x-axis.

  1. The Scan method should turn counter-clockwise instead of clockwise. I test it and it was scanning the region outside our search region. It is the expected behaviour if the robot is placed on the y-axis but not on the x-axis.
  • One possible fix is to have a flag in our scan method to check whether the bridge is placed on the y-axis or x-axis and rotate appropriately.
  1. The Method goToNextPoint is not working on the x-axis but no issue in the y-axis.
    private void goToNextPoint() { sleepThread(300); sleepThread(100);

Behaviour on the x-axis: Instead of making a square it was just moving doing the first line of the square and turn to do the same line again and again.
Expected Behaviour: Make a square and Search.

@RemiENG you can fix the second problem if you have time. I will work on the first problem.

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions