1. MPU数据获取 MPU6050 mpu; mpu.testConnection();//测试MPU是否连接成功 mpu.initialize(); mpu.getMotion6(&ax, &ay, &az, &gx, &gy, &gz); //获取加速度和陀螺仪数据 mpu.getAcceleration(&ax, &ay, &az); //获取加速度数据 mpu.getRotatio
专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]
Copyright (C)ICode9.com, All Rights Reserved.
ICode9版权所有