Accelerometer#

The Accelerometer measures the acceleration of the robot along one or more axes. The sensor outputs an analog voltage that changes based on acceleration in G-forces (G).

A jumper on the Accelerometer determines its sensitivity range:

  • 2G – Measures acceleration from -2G to +2G

  • 6G – Measures acceleration from -6G to +6G

The VEX V5 Analog accelerometer.

Below is a list of available blocks:

Accelerometer acceleration#

The Accelerometer acceleration block returns the acceleration value from which axis is connected on the Analog Accelerometer.

VEXcode blocks stack of code containing a Accel1 acceleration in g block.#
([AccelA v] 加速度g值)

Parameter

Description

device

The Accelerometer to use, configured in the Devices window.