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

Switch lsm6dso to STM driver, test on MSB #191 #14

Merged
merged 13 commits into from
Dec 6, 2024
Merged

Conversation

Myers-Ty
Copy link
Contributor

@Myers-Ty Myers-Ty commented Dec 5, 2024

Changes

Set parameters to read/write IMU data. Works in conjunction with pull request in Embedded Base where new lsm6dso driver is installed.

Notes

The code style checks that fail are from functions that I copied from the old code under discretion of Jack. The build fails because it requires the PR from Embedded Base

Closes #191

@Myers-Ty Myers-Ty added the bug Something isn't working label Dec 5, 2024
@Myers-Ty Myers-Ty requested a review from jr1221 December 5, 2024 01:09
@Myers-Ty Myers-Ty self-assigned this Dec 5, 2024
@Myers-Ty Myers-Ty closed this Dec 5, 2024
@Myers-Ty Myers-Ty reopened this Dec 5, 2024
Copy link
Contributor

@jr1221 jr1221 left a comment

Choose a reason for hiding this comment

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

Two things:

  • Use the IFDEF convention with SENSOR_IMU so it builds with SENSOR_IMU disabled and enabled (see msb_conf.h.
  • Are we still using accel_read and gyro_read? If not lets yeet them. And no matter what I prefer not to call the driver directly from monitor.c, so can you add a very simple wrapper call (like imu_data_get(...) in msb.c?

Copy link
Contributor

@jr1221 jr1221 left a comment

Choose a reason for hiding this comment

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

few more things

Core/Src/msb.c Show resolved Hide resolved
Core/Src/msb.c Show resolved Hide resolved
Core/Src/msb.c Outdated Show resolved Hide resolved
Copy link
Contributor

@jr1221 jr1221 left a comment

Choose a reason for hiding this comment

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

Lgtm

@Myers-Ty Myers-Ty merged commit 4a18624 into main Dec 6, 2024
2 checks passed
@Myers-Ty Myers-Ty deleted the LSM6DSO-to-STM branch December 6, 2024 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants