陀螺仪#

介绍#

The VEX 123 Robot includes a built-in Gyro Sensor. In these blocks, the Gyro Sensor is used to detect sudden impacts and report acceleration along the x, y, and z axes.

以下是所有可用模块的列表:

  • detected crash – Reports whether the 123 Robot has detected a sudden impact.

  • acceleration – Reports how quickly the 123 Robot is speeding up or slowing down on the selected axis.

检测到崩溃?#

The detected crash Boolean block reports whether the 123 Robot has detected a sudden impact, such as hitting an object or being bumped hard enough to quickly change its motion.

  • True — A crash has been detected.

  • False — A crash has not been detected.

<检测到碰撞?>

参数

描述

此代码块没有参数。

例子

当开始
[Back up after a crash.]
驱动 [向前 v]
等到 <检测到碰撞?>
驱动 [反 v] (200) [毫米 v]

加速度#

Acceleration is how quickly the robot is speeding up or slowing down. The acceleration reporter block reports the acceleration of the 123 Robot on the selected axis, from -4.0 G to 4.0 G.

A G is a unit used to measure acceleration. 1 G is about the acceleration you feel from gravity while sitting still.

The value can be positive or negative depending on the direction of acceleration on the selected axis. The selected axis tells which direction of motion the block reports.

([X v] 轴加速度值\(g\))

参数

描述

The axis to measure acceleration on:

  • x
  • y
  • z