Keywords: OSDK, CompassStatus
TOPIC:TOPIC_COMPASS of subscription only can be used to get Mag struct, But the broadcast can be used to get CompassStatus
/*!
* @brief struct for data broadcast, return magnetometer reading
*
* @note returned value is calibrated mag data,
* 1000 < |mag| < 2000 for normal operation
*/
typedef struct Mag
{
int16_t x;
int16_t y;
int16_t z;
} Mag; // pack(1)
Note: This article is from Chinese and is translated by machine. If there is any suggestions, please point it out and we will correct it in time
Comments
0 comments
Please sign in to leave a comment.