We are trying, so far unsuccessfully, to get the VEX Ultrasonic sensor to work with the WPI robotics library supplied VIs. Within the Basic FRC framework, we open the sensor using Ultrasonic.Open. In our teleop loop, we call Ultrasonic.Ping followed by Ultrasonic.GetRange. This locks up our loop.
We successfully got this sensor to operate using WindRiver/C++ by putting the sensor in automatic mode (SetAutomaticMode(1)and then periodically reading the result (using GetRangeInches()
. There appears to be no equivalent to automatic mode in the LabVIEW VIs.
Team 100 would appreciate some guidance on the proper use of the LabVIEW ultrasonic VIs.
Thanks.


and then periodically reading the result (using GetRangeInches()
Reply With Quote
