Adafruit Library
Public Attributes | List of all members
sensors_vec_t Struct Reference

#include <Adafruit_CPlay_Sensor.h>

Public Attributes

union {
   float   v [3]
 array to store xyz G data
 
   struct {
      float   x
 x-axis G data
 
      float   y
 y-axis G data
 
      float   z
 z-axis G data
 
   } 
 axis data
 
   struct {
      float   roll
 Rotation around the longitudinal axis (the plane body, 'X axis'). Roll is positive and increasing when moving downward. -90°<=roll<=90° */.
 
      float   pitch
 Rotation around the lateral axis (the wing span, 'Y axis'). Pitch is positive and increasing when moving upwards. -180°<=pitch<=180°) */.
 
      float   heading
 Angle between the longitudinal axis (the plane body) and magnetic north, measured clockwise when viewing from the top of the device. 0-359° */.
 
   } 
 Orientation sensors */.
 
}; 
 union of orientation data
 
int8_t status
 sensor status
 
uint8_t reserved [3]
 reserved
 

Detailed Description

struct sensors_vec_s is used to return a vector in a common format.


The documentation for this struct was generated from the following file: