InPos函数
返回机器人的定位状态。
格式
InPos
返回值
- 完成定位时:True
- 机器人动作中:False
参阅
CurPos、FindPos、WaitPos
InPos函数使用示例
Function main
P0 = XY(0, -100, 0, 0)
P1 = XY(0, 100, 0, 0)
Xqt MonitorPosition
Do
Jump P0
Wait .5
Jump P1
Wait .5
Loop
Fend
Function MonitorPosition
Boolean oldInPos, pos
Do
Pos = InPos
If pos <> oldInPos Then
Print "InPos = ", pos
EndIf
oldInPos = pos
Loop
Fend