-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Omi2 updates #2270
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
Omi2 updates #2270
Conversation
|
@apullin is attempting to deploy a commit to the kodjima33's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Cool man @apullin 1/ Could you reset this code to match the main branch, sir?
2/ did you test on the omi kits ? or any specific board. -- Regarding your questions:
-> The devkit/devkit2 implementation will be located at: https://github.com/BasedHardware/omi/tree/main/omi/firmware/devkit -> DK2 and Omi2 EVT in the omi/src/lib are just references to make the porting process easier. They will be removed later.
-> We could also mix these two approaches - building some libs as core so that devkit and omi can use them as shared libs. |
Rebased.
Tested on Omi2 EVT. Motor worked during startup. IMU works when reading, either by including the shell cmd or using the test thread. Not tested on DK2. But if the entirety of the DK2 project lives in |
|
@beastoin Actually, on the "reset this code" request: Don't we want differentiation here, as this is an entirely separate hardware revision, separate product, separate firmware? |
|
1/ man, i still see your PR made change to the configs which i mentioned. please reset it. 2/ ok ✅ 3/ could you resolve the conflict ? 4/ imu is unused for now, any good idea on applying it to our prod ? |
813efec to
2afe67a
Compare
|
@beastoin Conflicts resolved, conf changes reverted. WRT to use of the IMU - sure, there's plenty of ways to use it. Track motion intensity, read by BLE, add to prompts. It looks like reading is already in place in the app. This is all in DK2, so there should be some support for it already? We should coordinate to verify that part still works, so people can build with it. |
Includes KConfig option to enable/disable. Commit 764c45a contains code taken from this commit but merged ahead of it.
Now uses HWINFO module
Major caveat here: this change cannot work without changes to the zephyr source tree itself. See comments in accel.c
|
1/ ✅ ok
9/ do you plan to support the sdcard in this PR? if not, please discard the sdcard changes. wip: https://github.com/BasedHardware/omi/tree/main/omi/firmware/omi#wip overall, appreciate your help man. btw, my suggestion: just keep the accel code with config set to n — and discard all the rest. @apullin ~ |
|
@apullin will you update PR? |
Yes - been busy. Will do within a few days. Also will delete the whitespace changes, now that I've figured out how to do that by rewriting the git commits. |
|
yah, feel free to re-popen it when you're ready. thank man. |





/claim #1824 for that feature
omi.confand CMake presetApologies for all the whitespace changes that are showing up. I am editing in VSCode with default settings (as far as I know),
and it is applying all these minor changes for end-of-line.
This will likely take some discussion. Topics below.
IMU Driver
See the note in
accel.c. The only way to actually make it work it to edit the zephyr source tree itself.Possible TOD here is to see if newer Zephyr distros have a driver for LSM6TR3-C merged.
If so, we might be able to add it into this project, until Nordic SDK moves to a newer Zephyr version with the driver.
Shell commands code
The Omi2 EVT firmware has a number of useful shell commands, which are optionally added here.
But we could/should decide if we want to merge these into the main firmware (optional, behind
CONFIG_SHELL), or leave them only in factory FW.Testing code
In
accel.c, there's a function there to test reading from the IMU. Actually, we probably want to delete stuff like this.TODO: revise.
The big one: DK2 support and source overlap
This update is tested on Omi2 EVT, but it is not tested on DK2.
As of now, we are overlapping with DK2 source.
Project-level, we'll need to decide: