-
Notifications
You must be signed in to change notification settings - Fork 177
Jeetrohan mpu60xx 1 (BSP-568) #416
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
Conversation
manifest file for mpu60xx driver
example C source file for using inbuilt motion detection.
Manifest file for mpu60xx_motion_detection example
CMakeLists for mpu60xx_motion_detect
tore-espressif
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeetrohan That's a pretty good job for your first contribution!
|
I just realized the merge here is different from the fork where sync simply updates the branch. 😅 |
|
@espzav , @tore-espressif |
The pre-commit job is always run on latest changes, so there are probably still some formating errors. If you want to fix them locally, in your esp-bsp folder you can do To install pre-commit. Then you can run the pre-commit check on you last 11 commits like this |
|
@jeetrohan Thanks again for the PR, I'll take over and fix the remaining things when I'm free |
@tore-espressif |
@tore-espressif I totally understand that. I myself had thought to do pre-commit test on branch, but due to some other liabilities and my lack of knowledge (about git itself) I wasn't able to do it ( even though I really want to). |
|
hi @tore-espressif & @espzav |
|
@tore-espressif I think I'll need to update the idf version to >=5.3 in idf_component.yml to avoid test failures (it says esp_driver_. Which one of the above do you suggest? edit: |
5ece0f2 to
0c5f93c
Compare
- Split single header/source files into multiple units for better maintainability and scalability - Introduced custom data types to clearly represent sensor data - Added Kconfig option to configure driver behavior The mpu60xx functions as a self-contained subsystem with untapped capabilities. This refactor lays the groundwork for future expansion by adopting a modular, extensible design. Changes to be committed: modified: components/mpu60xx/CMakeLists.txt new file: components/mpu60xx/Kconfig renamed: components/mpu60xx/examples/mpu_motion_detect/CmakeLists.txt -> components/mpu60xx/examples/mpu_motion_detect/CMakeLists.txt modified: components/mpu60xx/examples/mpu_motion_detect/main/CMakeLists.txt modified: components/mpu60xx/examples/mpu_motion_detect/main/idf_component.yml modified: components/mpu60xx/examples/mpu_motion_detect/main/mpu_motion_detect.c modified: components/mpu60xx/idf_component.yml modified: components/mpu60xx/include/mpu60xx.h new file: components/mpu60xx/include/mpu60xx_interrupts.h new file: components/mpu60xx/include/mpu60xx_regs_bits.h new file: components/mpu60xx/include/mpu60xx_types.h deleted: components/mpu60xx/mpu60xx.c new file: components/mpu60xx/private/include/mpu60xx_pvt.h new file: components/mpu60xx/private/mpu60xx_pvt.c new file: components/mpu60xx/srcs/mpu60xx.c new file: components/mpu60xx/srcs/mpu60xx_interrupts.c new file: components/mpu60xx/srcs/mpu60xx_regs_bits.c
|
I have fixed the issues. |
|
@tore-espressif , @espzav from the error log : And also the the above log is from build (release-v5.1, 2, 1) If I'm wrong let me know. |
|
@jeetrohan I'm sorry for the late responses, I'll do my best to have a look by the end of this week |
@tore-espressif |
|
@jeetrohan thanks for your patience and for all the hard work you’ve put into these updates Your implementation of the advanced MPU60xx features is very valuable for projects that need that extra functionality. At the same time, the goal of esp-bsp is to stay focused on a core set of drivers and examples that we can reliably maintain over time. Because the MPU60xx enhancements extend beyond what we normally cover in esp-bsp, we worry that adding them here could make it harder to keep everything tested and up to date. To make sure your work gets the visibility it deserves—and so that you can continue to iterate on those advanced features without constraints—it would be great to publish this as its own component in the ESP Registry under your GitHub namespace. That way:
The process to register a component in the ESP Registry is covered in the IDF Component Manager docs. You can sign in with your GitHub account, and within a few minutes have it listed. Once it’s published, folks who rely on esp-bsp can still pull in your MPU60xx component as an additional dependency. I really appreciate your contribution here—this is exactly the kind of work we want to encourage—and I think publishing it as a standalone, registry-managed component is the best path forward so both projects can thrive. Let me know if you need any help with the IDF Component Manager setup! |
|
@tore-espressif Assuming
I'd request you or someone on your team to review : It is a simple refactor as it says and has been pending for over a week. Maybe I can remove the example I added, based off the test app. And the Component Registry PS: |
|
I am allowed to say whatever apart from insulting people :D The more straightforward answer is: We cannot justify spending time reviewing >1500 line of code from external contributors. |
|
ESP-BSP Pull Request checklist
Related
Change description
A new mpu60xx library which uses the new I2C driver for reading raw and floating point values; from accelerometer, gyrometer and temperature sensor.
Added functionality to use inbuilt motion detection on mpu60xx using both, polling and interrupts.