Asked
— Edited

I am using the plug in for the XV-11 Lidar. The output of the plug in an array in which each value is a string that represents the distance at the angle and the signal strength. To use this for control of the robot, I need numbers at these angles. The format is shown in the attached example. How do I parse and convert this in EZ Scripting into an integer?
In C there is the string.split command
https://msdn.microsoft.com/en-us/library/b873y76a(v=vs.110).aspx
and then the string to integer convert.
Is there a way to do this in the EZ scripting?
The angle is the item of the array.
$LIDARDistance[0] would be for the value for angle 0 $LIDARDistance[1] would be for the value for angle at 1 degree . . .
The distances you are seeing would be something at about 19 1/2 inches from the LIDAR.
The distance value / 25.4 should give you the inches at that angel.
yea, it sounds like it is an issue with the com port. I bet if you install the Teensy Serial Driver you would be okay. You might need to uninstall the existing Teensy driver before installing it again.
It could also be the cable I suppose. I use a 1.5 foot cable. It is pretty heavy grade for a usb cable. I have run it before with a much longer (10 foot) cable without any problem though. This was from a powered usb hub.
Uninstalled com2 drive, download your for the Lidar sub serial driver, opened ARC changed to c8 saved and it locked up.
Rebooted pic still locking up, ugh! Am I the only one running win7?
Any suggestions thanks
Try switching out the cable.
Ok no luck. Getting real frustrated now calling it a night I got a headache and I'm tired look into it tomorrow thanks David
One more quick thing David I'm not mad at you I'm just frustrated because it's been running for a long time with the version 2-18 date I believe it was. confused
Not a problem. I am going to send you a version that will tell us exactly what it is doing when it locks up. I will make it tomorrow and send it your way. I'll call you to walk you through getting it in place to run.