PetoiCamp / OpenCatEsp32

An ESP32-based open source quadruped robot pet framework for developing Boston Dynamics-style four-legged robots that are perfect for STEM, coding & robotics education, IoT robotics applications, AI-enhanced robotics application services, research, and DIY robotics kit development.
MIT License
78 stars 28 forks source link

Petoi Bittle hangging on Initialize MPU #2

Closed leonardolisboa closed 10 months ago

leonardolisboa commented 1 year ago

Hi, using the standard code, following the changes requested in the manual (Arduino 1.8.19 and all requested changes in code), after compiling and uploading the code to the board, Bittle hangs on "Initialize MPU". Could you please confirm if I may be missing something?

ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x1b (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0030,len:1344 load:0x40078000,len:13864 load:0x40080400,len:3608 entry 0x400805f0 Flush the serial buffer...

If I replace the mpu6050 folder in src folder of the code by the recommended here: https://docs.petoi.com/biboard/demo-applications/6.gyro-imu-mpu6050 then the below error message is shown when compiling the code in Arduino.

'class MPU6050' has no member named 'dmpGetCurrentFIFOPacket'

Uploading the code using the Desktop tool works fine and Bittle works.

Thanks, Leonardo

JasonWong08 commented 10 months ago

We have made some optimizations on the basis of the library in https://docs.petoi.com/biboard/demo-applications/6.gyro-imu-mpu6050 and added the function dmpGetCurrentFIFOPacket(). Thank you for your reminder, we have updated the library file on this website.