Camera Snapshot icon Camera Snapshot Save camera snapshots to 'My Robot Pictures' (Pictures folder), manual or timed (0-100s), and trigger programmatically via controlCommand. Try it →

ARC Pro

Upgrade to ARC Pro

Subscribe to ARC Pro, and your robot will become a canvas for your imagination, limited only by your creativity.

#1  

Add the ultrasonic sensor control or use in a script..


repeatuntil(0)
$dist=GetPing(D0,D1) #choose other ports if you want
print($dist)
sleep(250)
endrepeatuntil