Simulated getObstacle() flipped
Issue #179
resolved
getObstacle() returns the distance to an obstacle, but the Fluke's IR sensors (which measures the # of reflections) decreases with distance.
Comments (7)
-
-
reporter Fluke2: far: 0, 0, 0 close: 1920, 1920, 1920 near: 6400, 6400, 6400
-
And what are those actual distances for far, close, and near? (You can use "scribbler" units---the length of one scribbler, or I can convert from cm/in)
-
reporter 6400: 0-3 scribbler bodies 1920: 3-5 scribbler bodies 0: >5 scribbler bodies.
-
Addresses
#179, try sample in issue tracker to see if that looks approximately correct→ <<cset efbcccd8ffa9>>
-
Try this code to check both length of IR and values:
from Myro import * init("sim") robot = getRobot() robot.setOption("show-sensors", True) joystick() print(getObstacle())
-
- changed status to resolved
I believe that this is fixed. Please reopen if issues.
- Log in to comment
Do you happen to have a sample range of values? Even better:
When obstacle is this far way, it gives this value: ...
close distance: medium distance: far (maximum):