I’m trying to use an ultrasonic sensor with the online code on the microcontroller. I control the robot from my PC with a wireless connector and a C# wrapper I wrote.
Since I’m using the online code I do not ‘have’ a start or get command for the ultasonic. I switch digital output of the sensor from 1 to 0 and see how long it takes for the interrupt port to change from 0 to 1 and to 0 again. The problem is that for the same orientation, position of the sensor I get same time spans between interrupt switching from 1 to 0.
I tested the sensor with the test sample and it works.
Chances are the latency between the robot and your computer are the issue. Honestly we didn’t intend for the on-line window or it’s code to be used in this fashion so we cannot promise any particular result from this type of use.
Thank you for the response. The reason for trying to get a PC involved is to have a lot more processing power and capabilities. I want to see if I can use the VEX in ‘real world applications’ such as cutting the grass :).