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

Add IMU_ADDRESS configuration #1064

Merged
merged 1 commit into from
Nov 26, 2022
Merged

Add IMU_ADDRESS configuration #1064

merged 1 commit into from
Nov 26, 2022

Conversation

Ezward
Copy link
Contributor

@Ezward Ezward commented Nov 26, 2022

The MPU6050 and MPU9250 allow for two different I2C addresses based on how an input line is set. Our code does not support the secondary address, which is how the MM1 hat is setup. This code allows those IMUs to be used with their secondary address.

  • move construction of IMU part and addition to vehicle into a method in complete.py and make complete.py and path_follow.py use it.
  • add IMU_ADDRESS defaulted to 0x68 to cfg_complete.py and cfg_path_follow.py
  • make path follow use add_imu()

- move construction of IMU part and addition to vehicle
  into a method in complete.py and make complete.py and
  path_follow.py use it.
- add IMU_ADDRESS defaulted to 0x68 to cfg_complete.py
  and cfg_path_follow.py
- make path follow use add_imu()
@Ezward Ezward self-assigned this Nov 26, 2022
Copy link
Contributor

@DocGarbanzo DocGarbanzo left a comment

Choose a reason for hiding this comment

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

This looks good to me. I suggest we bump the version in your other commit if we merge this as well today.

@Ezward Ezward merged commit 3292a2b into main Nov 26, 2022
@Ezward Ezward deleted the 1059_make_IMU_addr_configurable branch November 26, 2022 21:31
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.

None yet

2 participants