AtHome 方法
描述
如果当前机器人位于起始点位置,则返回 True。
语法
Function AtHome () As Boolean
返回值
如果当前机器人位于起始点位置,则返回 True,否则返回 False。
参阅
Home 方法
AtHome 示例
VB 例:
If m_spel.AtHome() Then
lblCurPos.Text = "Robot is at home position"
Else
lblCurPos.Text = "Robot is not at home position"
End If
C# 例:
if(m_spel.AtHome())
lblCurPos.Text = "Robot is at home position";
else
lblCurPos.Text = "Robot is not at home position";