Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mpu6050Int() has error #9

Open
L-SY opened this issue Sep 26, 2022 · 2 comments
Open

Mpu6050Int() has error #9

L-SY opened this issue Sep 26, 2022 · 2 comments

Comments

@L-SY
Copy link

L-SY commented Sep 26, 2022

mpu.setClockSource(MPU6050_CLOCK_PLL_ZGYRO);
mpu.setFullScaleGyroRange(MPU6050_GYRO_FS_2000);
mpu.setFullScaleAccelRange(MPU6050_ACCEL_FS_2);
上面三行的参数都有报错,显示
未定义标识符 "MPU6050_ACCEL_FS_2"
我下载了electroniccats/MPU6050@^0.6.0的库文件,已经成功添加
但是依旧报错
请问作者是不是用的其它版本的MPU6050的库
能够分享一下吗?十分感谢!!

@HuGuoXuang
Copy link
Owner

mpu.setClockSource(MPU6050_CLOCK_PLL_ZGYRO); mpu.setFullScaleGyroRange(MPU6050_GYRO_FS_2000); mpu.setFullScaleAccelRange(MPU6050_ACCEL_FS_2); 上面三行的参数都有报错,显示 未定义标识符 “MPU6050_ACCEL_FS_2” 我下载了electroniccats/MPU6050@^0.6.0的库文件,已经成功添加 但是依旧报错 请问作者是不是用的其它版本的MPU6050的库 能够分享一下吗?十分感谢!!

我的B站账号里 有搭建环境的视频 你看着操作就行 基本上都能编译通过 这个是ESP32开发板管理器的网站:https://www.arduino.cn/package_esp32_index.json

@HuGuoXuang
Copy link
Owner

mpu.setClockSource(MPU6050_CLOCK_PLL_ZGYRO); mpu.setFullScaleGyroRange(MPU6050_GYRO_FS_2000); mpu.setFullScaleAccelRange(MPU6050_ACCEL_FS_2); 上面三行的参数都有报错,显示 未定义标识符 “MPU6050_ACCEL_FS_2” 我下载了electroniccats/MPU6050@^0.6.0的库文件,已经成功添加 但是依旧报错 请问作者是不是用的其它版本的MPU6050的库 能够分享一下吗?十分感谢!!

按照视频安装陀螺仪的库就行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants