AccelerometerData.power

Former Member
Former Member
What is power in the context of accelerator data? What are the units?
  • The values are millig-units. From the API doc:
    The values for the x, y, and z axes are in Milli G units. For reference, 1000 Milli G = 1 G.


    and here is a site that explains what a G is.
  • Former Member
    Former Member
    Yes, that documentation was clear. However the class also has attributes power, pitch, and roll which are all just described as a vector of floats - was curious if there was any additional information about how to interpret the power vector.
  • Former Member
    Former Member
    This documentation has been updated in the 3.0.0 beta SDK. You can see the changes directly within the docs folder in the SDK. I've copied these entries below for your reference:

    Pitch:
    The Array of pitch values as Floats in degrees. Can be null.

    Pitch values are calculated with the equation atan2(y, sqrt(x^2 + z^2)).

    See Also:
    • Tilt Sensing Using a Three-Axis Accelerometer


    Power:
    The Array of vector power values as Numbers in millig-units. Can be null.


    Roll:
    The Array of roll values as Floats in degrees. Can be null.

    Roll values are calculated with the equation atan2(-x, z).

    See Also:
    • Tilt Sensing Using a Three-Axis Accelerometer