Skip to content

Add LSM6DSV32X support to ARK_FPV - #1201

Open
AlexKlimaj wants to merge 1 commit into
betaflight:masterfrom
AlexKlimaj:pr-ark-fpv-lsm6dsv32x
Open

Add LSM6DSV32X support to ARK_FPV#1201
AlexKlimaj wants to merge 1 commit into
betaflight:masterfrom
AlexKlimaj:pr-ark-fpv-lsm6dsv32x

Conversation

@AlexKlimaj

@AlexKlimaj AlexKlimaj commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Pull-Request requirements

ARK FPV hardware revision 1 replaces the IIM-42653 with an LSM6DSV32X on the same SPI1 CS/EXTI pins. Enable USE_ACCGYRO_LSM6DSV16X alongside USE_ACCGYRO_IIM42653 so runtime WHO_AM_I detection can pick either chip.

LSM6DSV32X shares WHO_AM_I 0x70 with LSM6DSV16X. Correct ±32 g / ±4000 dps programming is in a companion firmware PR:

https://github.com/betaflight/betaflight/pull/TBD

Housekeeping

  • Pull-Request only from a custom branch, not master.
  • Existing supported target update (IMU option), not a new flight controller.

Checklist (✓/✕, or y/n)

  • passed Betaflight team's schematics review
  • passed hardware samples testing
  • follows guidelines
  • follows connector standards
  • flight tested
  • comments/issues resolved

Built locally against current firmware with make CONFIG=ARK_FPV.

Summary by CodeRabbit

  • New Features
    • Added support for the LSM6DSV16X accelerometer and gyroscope on SPI1 for the ARK FPV target.
    • Documented sensor compatibility across supported hardware revisions.

Hardware revision 1 uses LSM6DSV32X in place of IIM-42653 on SPI1.
Enable USE_ACCGYRO_LSM6DSV16X so runtime detection can pick the ST IMU.
@AlexKlimaj

Copy link
Copy Markdown
Contributor Author

Companion firmware PR for LSM6DSV32X ±32 g / ±4000 dps programming: betaflight/betaflight#15659

@coderabbitai

coderabbitai Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Team

Run ID: 4ea0f1a8-5928-4f53-a11f-88284801c214

📥 Commits

Reviewing files that changed from the base of the PR and between 750e6da and 56d0825.

📒 Files selected for processing (1)
  • configs/ARKE/ARK_FPV/config.h

Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review.


Walkthrough

The ARK FPV target configuration now enables the LSM6DSV16X accelerometer/gyro on SPI1. The SPI1 sensor comment now identifies the supported hardware revisions.

Changes

ARK FPV sensor configuration

Layer / File(s) Summary
Enable SPI1 sensor support
configs/ARKE/ARK_FPV/config.h
Adds USE_ACCGYRO_LSM6DSV16X alongside USE_ACCGYRO_IIM42653 and updates the hardware revision comment.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to 56d08

This localized configuration update enables runtime selection of the supported IMU variants without any actionable merge-blocking risk remaining after normal checks and review.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely identifies the primary change: adding LSM6DSV32X support to the ARK_FPV target.
Description check ✅ Passed The description explains the hardware revision, IMU detection approach, scope, companion firmware work, build validation, and checklist status. It follows the repository template and identifies this a…
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description explains the hardware revision, IMU detection approach, scope, companion firmware work, build validation, and checklist status. It follows the repository template and identifies this as an existing target update.

Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant