Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
|
#include <Adafruit_Sensor.h>
Public Attributes | |
union { | |
float v [3] | |
struct { | |
float x | |
float y | |
float z | |
} | |
struct { | |
float roll | |
float pitch | |
float heading | |
} | |
}; | |
int8_t | status |
uint8_t | reserved [3] |
struct sensors_vec_s is used to return a vector in a common format.
float sensors_vec_t::heading |
Angle between the longitudinal axis (the plane body) and magnetic north, measured clockwise when viewing from the top of the device. 0-359°
float sensors_vec_t::pitch |
Rotation around the lateral axis (the wing span, 'Y axis'). Pitch is positive and increasing when moving upwards. -180°<=pitch<=180°)
float sensors_vec_t::roll |
Rotation around the longitudinal axis (the plane body, 'X axis'). Roll is positive and increasing when moving downward. -90°<=roll<=90°