踢球者#
介绍#
VEX AIM 编码机器人配备前置踢球器,可释放磁性吸附的物体。它可以用来踢运动球,力度可调,或将桶轻轻地放在机器人前方。

以下是可用方法的列表:
行动#
kick#
kick activates the robot’s kicker to kick a sports ball with one of three levels of force.
用法:
robot.kicker.kick(force)
范围 |
描述 |
|---|---|
|
The force to use when activating the Kicker. Options include:
|
# Kick an object with full force
robot.kicker.kick(HARD)
# Kick an object with medium force
robot.kicker.kick(MEDIUM)
# Kick an object with soft force
robot.kicker.kick(SOFT)
place#
place activates the robot’s kicker to place a barrel gently in front of the robot.
用法:
robot.kicker.place()
参数 |
描述 |
|---|---|
该方法没有参数。 |
# Place a currently held object, then back up
robot.kicker.place()
robot.move_for(50, 180)