任务简介
本文为 virtual world challenge pack 中的传感器(SENSORS) 中的
“Arm Position Challenge”, 如图 1 所示. 要求从起点 A 出发, 前进至箱子处,
然后使用前爪抓住箱子, 并回到出发点.

图 1 arm position challenge 界面图
此挑战使用的 robot 为 “Clawbot IQ-arm up”, 基本配置如图 2 所示.

图 2 robot 基本配置
程序
#pragma config(StandardModel, "Clawbot IQ With Sensors")
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//<