踢球者#

介绍#

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

AIM 机器人的四分之三视图,显示其 Kicker 完全伸展。

以下是可用方法的列表:

  • kick – Activates the kicker with SOFT, MEDIUM, or HARD force.

  • place – Gently places a barrel in front of the robot.

行动#

kick#

kick activates the robot’s kicker to kick a sports ball with one of three levels of force.

用法:

robot.kicker.kick(force)

范围

描述

force

The force to use when activating the Kicker. Options include:

  • HARD
  • MEDIUM
  • SOFT

# 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)