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

Jeetrohan mpu60xx 1 (BSP-568) #416

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

jeetrohan
Copy link

ESP-BSP Pull Request checklist

Note: For new BSPs create a PR with this link.

  • Version of modified component bumped
  • CI passing

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.

header file for mpu60xx driver
definitions for mpu60xx driver functions
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
mpu60xx driver information.
@CLAassistant
Copy link

CLAassistant commented Oct 22, 2024

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot changed the title Jeetrohan mpu60xx 1 Jeetrohan mpu60xx 1 (BSP-568) Oct 22, 2024
Copy link
Collaborator

@tore-espressif tore-espressif left a 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!

Comment on lines +1 to +2
idf_component_register(SRCS "mpu60xx.c"
INCLUDE_DIRS "include")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My initial idea was to release this version as v2.0.0 of the original mpu6050 component.

This way we won't have 2 driver for the same device...


set(COMPONENTS main)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(mpu60xx_motion_detect)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the example!

Comment on lines +5 to +6
maintainers:
- "Rohan Jeet <[email protected]>"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the most important thing we need to agree on.

If you list yourself as a maintainer, then all bugs and feature request will go your way. You should only add this, if you want to commit yourself to maintenance. It's also possible to list you as 'author' and Espressif will take care of the maintenance.

I can also see that you did not add a license to this new component. All components in this repo must be Apache-2 licensed (that is every one can use for free). If you, as author, require more strict license you will have to publish it in your own repository.

So the bottom line is: if you want to maintain, or don't want to release under Apache-2, or want to release this independently from the original mpu6050, I'd suggest releasing the component on your own.
If all of the above is false, we can review and merge in esp-bsp :)

dependencies:
## Required IDF version
idf:
version: ">=4.1.0"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the new I2C driver was added in v5.2

Suggested change
version: ">=4.1.0"
version: ">=5.2.0"

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

Successfully merging this pull request may close these issues.

3 participants