Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ultrasonic Sensor default value #5

Open
joonyeechuah opened this issue Jun 13, 2015 · 1 comment
Open

Ultrasonic Sensor default value #5

joonyeechuah opened this issue Jun 13, 2015 · 1 comment

Comments

@joonyeechuah
Copy link

What's the expected behavior of the Ultrasonic Sensor when no signal is returned? (i.e., angle of attack is 45 degrees or more) The original lego sensor spec says the device returns -1 when it doesn't get a signal in continuous mode. (There's also a burst mode that I don't think is supported by BrickPi.)

@mwvaughn
Copy link
Contributor

The BrickPi library abstracts this behavior and returns maximum distance (255). Basically, I think you can count on 0-255 coming from the sensor at any given time.

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

No branches or pull requests

2 participants