[1.4 backport] Allow using Navigator with the new lsm6dsv IMU#3945
Open
Williangalvani wants to merge 2 commits into
Open
[1.4 backport] Allow using Navigator with the new lsm6dsv IMU#3945Williangalvani wants to merge 2 commits into
Williangalvani wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- The
NavigatorPi4andNavigatorPi5classes now share identicalmagnetometer_devicesand very similardetectlogic; consider extracting this into a shared helper or base implementation to reduce duplication and keep future changes consistent. - In
deviceid_decoder.ts, the new IMU enum entries use slightly inconsistent spacing (e.g., double spaces before some=); aligning the formatting with existing enum members will improve readability.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The `NavigatorPi4` and `NavigatorPi5` classes now share identical `magnetometer_devices` and very similar `detect` logic; consider extracting this into a shared helper or base implementation to reduce duplication and keep future changes consistent.
- In `deviceid_decoder.ts`, the new IMU enum entries use slightly inconsistent spacing (e.g., double spaces before some `=`); aligning the formatting with existing enum members will improve readability.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Automated PR Review0. Summary
Extends Navigator Pi4/Pi5 detection so the magnetometer requirement is satisfied by any of a set of mags (currently 6. Code Quality & Style
7. Tests
Generated by PR Review Bot. This is advisory, a human reviewer must still approve. |
Member
|
Just to be sure, is it ok for us to help this PR until 1.4.4 is released for RadCam ? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by Sourcery
Update Navigator Pi4/Pi5 detection to handle multiple magnetometer options and extend device ID decoding with new compass and IMU types.
New Features: