CorePigeon2GetGravityVectorX Method

The X component of the gravity vector.

This is the X component of the reported gravity-vector. The gravity vector is not the acceleration experienced by the Pigeon2, rather it is where the Pigeon2 believes "Down" is. This can be used for mechanisms that are linearly related to gravity, such as an arm pivoting about a point, as the contribution of gravity to the arm is directly proportional to the contribution of gravity about one of these primary axis.

  • Minimum Value – -1.000030518509476
  • Maximum Value – 1.0
  • Default Value – 0
  • Units
Default Rates:
  • CAN 2.0 – 10.0 Hz
  • CAN FD – 100.0 Hz

Definition

Namespace: CTRE.Phoenix6.Hardware.Core
Assembly: Phoenix6 (in Phoenix6.dll) Version: 1.0.0
C#
public StatusSignal<double> GetGravityVectorX()

Return Value

StatusSignalDouble
GravityVectorX Status Signal Object

See Also