mpu_dmp_get_data(\\\\&Pitch,\\\\&Roll,\\\\&Yaw);
时间: 2023-09-15 19:15:34 浏览: 246
利用dmp读取mpu6050四元数和pitch,roll,yaw(不需计算)
4星 · 用户满意度95%
根据引用中的描述,mpu_dmp_get_data(&Pitch,&Roll,&Yaw)是一个函数,该函数在循环中不断读取数据,直到成功解出欧拉角数据,然后将结果打印出来。根据引用中的描述,之前出现问题是因为没有正确初始化导致程序没有正确执行。所以在调用mpu_dmp_get_data(&Pitch,&Roll,&Yaw)之前,应该先进行正确的初始化。引用中给出的正确初始化方式是使用while循环来确保初始化成功,代码示例为while(mpu_dmp_init() != 0) {}。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [调用mpu_dmp_get_data(&pitch,&roll,&yaw)后程序无法执行。](https://blog.csdn.net/diyer_zhou/article/details/109143540)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [mpu_dmp_get_data(&Pitch,&Roll,&Yaw);读取的姿态角数据一直为0](https://blog.csdn.net/qq_45933090/article/details/130261719)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文