-
Notifications
You must be signed in to change notification settings - Fork 0
LIS2MDL & LSM6DSV & MotionFX PR #16
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
base: main
Are you sure you want to change the base?
Conversation
caiodasilva2005
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.
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)
| .function = sensors_thread /* Thread Function */ | ||
| }; | ||
| void sensors_thread(ULONG thread_input) { | ||
| uint32_t count = 25; |
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.
we should probably use a ner_timer with a set timeout for running code here less frequently instead of a magic number count that since this may be a bit undeterministic.
| #include "u_can.h" | ||
| #include "u_statemachine.h" | ||
|
|
||
| void inbox_can(can_msg_t *message) { |
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.
is this copied from lightning?
LIS2MDL & LSM6DSV & MotionFX
This is a large pull requests for many MSB related things.
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