电子罗盘

常用的 API

/**
 * @brief:获取指南针的方位角
 * 
 * @param sensorChannel:传感器接口编号
 */ 
float SENSOR_COMPASS::Get_Azimuth(uint8_t sensorChannel)


Tbot I 系统编程示范

float angle = Sensor_Compass.Get_Azimuth(0x01);

results matching ""

    No results matching ""