Ultrasonic Reading of -1?
While doing trying to run my robot for Sentry Simulation II, after clearing the first obstacle, the ultrasonic sensor will read -1 and stop the robot(as it runs in while loop whenever the reading is above 25). The ultrasonic sensor, I think, shouldn't even be able to read -1, only 0-255. So I think this might be a bug? And just in case, I attached my code.
Edit: Used google, and found another post
on this forum on the same problem that said a reading of -1, indicated nothing to detect, but the RobotC wiki here:http://www.robotc.net/wiki/NXT_Sensors_Overview
states that a reading of 255 indicates out of range/no detectable objects. Do the sensors function differently in physical form compared to RVW? Or am I just understanding it wrong :p?