Skip to content

Ultrasonic Sensor always expect a distance  #3

Open
@tawjaw

Description

@tawjaw

The ultrasonic sensor always has a distance. In the robot environment, if an object is not detected it sets the distance to be the maximum distance.

However, if the echo is not detected back the echo pin wouldn't change and then something like

  duration = pulseIn(echoPin, HIGH);

would time out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions