关键词:OSDK,指南针状态,CompassStatus
订阅方式仅可以通过:TOPIC_COMPASS 拿到Mag struct,只有广播方式可以获取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)
评论
0 条评论
请登录写评论。