From 968e28e61f273ef77695e7d233458f0e5c59886b Mon Sep 17 00:00:00 2001 From: Kevin Townsend Date: Thu, 28 Nov 2013 19:10:18 +0100 Subject: [PATCH] Changed .azimuth/.pitch/.roll to .roll/.pitch./heading --- Adafruit_Sensor.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Adafruit_Sensor.h b/Adafruit_Sensor.h index 999f5c4..967c9e9 100644 --- a/Adafruit_Sensor.h +++ b/Adafruit_Sensor.h @@ -72,9 +72,9 @@ typedef struct { }; /* Orientation sensors */ struct { - float azimuth; /**< Angle between the magnetic north direction and the Y axis, around the Z axis (0<=azimuth<360). 0=North, 90=East, 180=South, 270=West */ - float pitch; /**< Rotation around X axis (-180<=pitch<=180), with positive values when the z-axis moves toward the y-axis. */ - float roll; /**< Rotation around Y axis (-90<=roll<=90), with positive values when the x-axis moves towards the z-axis. */ + 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° */ }; }; int8_t status;