Here's a small sample of code (actually this is taken from the Sample Programs from the latest ROBOTC for IFI release):
Just go to "File", "Open Sample Programs"... and go to the "Sonar" folder, then open the "sonar_distance" program.
Vu NguyenSoftware Training Development Team
Need more support? Email ROBOTC Support at email@example.com
to put in a support ticketRobotc.net
| Robomatter Store
| Robotics Academy