
PRO
EzAng
USA
Asked
— Edited
Sharp IR On Car Robot, Table Top Robot Avoids Falling Off
anyone know how to write this code in java?
:loop adc_wait(adc0,lower,160) stop() reverse(200,500) sleep(50) left(255,500) stop() forward() sleep(50) goto(loop)
now it starts, avoids falling off table, turns left, keeps going - cheers! All figured out below, I solved it below with help of thetechguru
thanks
Related Hardware EZ-B v4
Related Control
Indoor Positioning System
Sharp IR sensor - ARC
figured it out - now it starts, avoids falling off table, turns left, keeps going - cheers!
:loop adc_wait(adc0,lower,160) stop() reverse(200,500) sleep(50) left(255,500) stop() forward() sleep(50) goto(loop)
How would you write this code in java? EzAng
Synthiam ARC doesn't work with Java - at least not without a ton of work. You'd need to create some bridge between the two compiled executables.
Also, I don't think those sleep(50) lines are doing anything.
I ment Java script
This is probably a good way to back away from cliffs...
JavaScript Code
thanks DJ for the code
Actually this makes more sense if using any NMS skills for navigating..
My problem was - I have a Sharp IR distance sensor, I need a Sharp Infrared Proximity Distance Sensor, ordered it
What is a the diference between "Sharp Infrared Proximity Distance Sensor" and "Sharp IR distance sensor"?