Skip to content

LIS2MDL & LSM6DSV & MotionFX PR#16

Merged
caiodasilva2005 merged 49 commits intomainfrom
lsm6dsv
Feb 4, 2026
Merged

LIS2MDL & LSM6DSV & MotionFX PR#16
caiodasilva2005 merged 49 commits intomainfrom
lsm6dsv

Conversation

@dnakhooda
Copy link
Copy Markdown
Member

@dnakhooda dnakhooda commented Nov 23, 2025

LIS2MDL & LSM6DSV & MotionFX

This is a large pull requests for many MSB related things.

  • Update the CubeMX pinout for the MSB
  • Add IMU (LSM6DSV) code
  • Add Magnometer (LIS2MDL) code
  • Add MotionFX rotation calculations

Most of what makes this PR so large is adding the motionfx library to the pinout updates. So, the important files to look at are: u_sensors.c and u_threads.c.

Closes #10, #11

@dnakhooda dnakhooda self-assigned this Nov 23, 2025
@dnakhooda dnakhooda changed the title Support LSM6DSV LIS2MDL & LSM6DSV & MotionFX Stuff Jan 27, 2026
@dnakhooda dnakhooda changed the title LIS2MDL & LSM6DSV & MotionFX Stuff LIS2MDL & LSM6DSV & MotionFX PR Jan 27, 2026
Copy link
Copy Markdown
Contributor

@caiodasilva2005 caiodasilva2005 left a comment

Choose a reason for hiding this comment

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

quick note: HAL_Delay will likely not work on _delay on the imu due to ThreadX scheduler taking over. that should be changed to a tx_thread_sleep

as for iknob orientations, I believe your current one should be fine as we will have one msb in the front and in the back. As long as they share the same orientation physically (depends how they end up being harnessed), I believe we are good with this orientation on the software side)

Comment thread Core/Src/u_threads.c Outdated
Comment thread Core/Src/u_inbox.c Outdated
caiodasilva2005
caiodasilva2005 previously approved these changes Feb 3, 2026
Comment thread Core/Src/u_sensors.c Outdated
@caiodasilva2005 caiodasilva2005 merged commit 308c2b8 into main Feb 4, 2026
1 check passed
@caiodasilva2005 caiodasilva2005 deleted the lsm6dsv branch February 4, 2026 04:25
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.

Support SPI LSM6DSV in msb.c

2 participants