Skip to content

add DSK320 gyros to foxeer targets#1105

Open
sugaarK wants to merge 1 commit into
betaflight:masterfrom
sugaarK:foxxer
Open

add DSK320 gyros to foxeer targets#1105
sugaarK wants to merge 1 commit into
betaflight:masterfrom
sugaarK:foxxer

Conversation

@sugaarK
Copy link
Copy Markdown
Member

@sugaarK sugaarK commented May 19, 2026

added #define USE_ACCGYRO_LSM6DSK320X
to current Foxeer models and added build keys to the targets that meet current requirements

Summary by CodeRabbit

  • New Features
    • Added LSM6DSK320X accelerometer and gyroscope sensor support across FOXEERF405V2, FOXEERF722V4, and FOXEERH743V2 flight controller boards. Users can now select and enable the LSM6DSK320X sensor configuration option, providing additional inertial measurement unit choices for these flight controllers.

Review Change Stack

added #define USE_ACCGYRO_LSM6DSK320X
to current foxeer models and added build keys to the targets that meet current requriemnets
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 19, 2026

Walkthrough

Three FOXEER flight controller board configurations are extended with LSM6DSK320X accelerometer and gyroscope sensor support via a compile-time macro. Two boards additionally receive updated supported-target metadata blocks with reference commit hash and date information.

Changes

LSM6DSK320X sensor enablement across FOXEER boards

Layer / File(s) Summary
FOXEERF405V2 sensor configuration
configs/FOXEERF405V2/config.h
Adds USE_ACCGYRO_LSM6DSK320X macro to enable LSM6DSK320X combined sensor support on this board.
FOXEERF722V4 sensor configuration and metadata
configs/FOXEERF722V4/config.h
Supported-target comment block receives a reference SHA and date; USE_ACCGYRO_LSM6DSK320X macro is added for sensor support.
FOXEERH743V2 sensor configuration and metadata
configs/FOXEERH743V2/config.h
New supported-target comment block with reference hash and date is inserted; USE_ACCGYRO_LSM6DSK320X macro is added to enable the sensor driver.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~5 minutes

Possibly related PRs

  • betaflight/config#1048: Adds the same USE_ACCGYRO_LSM6DSK320X macro to other board configurations for LSM6DSK320X gyro/accel sensor support.
  • betaflight/config#1081: Extends IMU/gyro support on board configurations via the same USE_ACCGYRO_LSM6DSK320X preprocessor macro.
  • betaflight/config#1061: Introduces the USE_ACCGYRO_LSM6DSK320X IMU feature-selection macro across multiple target board configurations.

Suggested labels

Partner Program, Betaflight Supported

Suggested reviewers

  • haslinghuis
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description is incomplete and does not follow the required template structure with mandatory sections like hardware compliance requirements, checklist, or Betaflight review confirmation. Update the description to include all mandatory sections from the template: hardware compliance adherence, the required checklist with completed items, and confirmation of design review completion.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: adding DSK320 gyro sensor support to Foxeer flight controller targets.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ 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 and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Warning

CodeRabbit couldn't request changes on this pull request because it doesn't have sufficient GitHub permissions.

Please grant CodeRabbit Pull requests: Read and write permission and re-run the review.

👉 Steps to fix this

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@configs/FOXEERF405V2/config.h`:
- Line 34: FOXEERF405V2 is missing the "SUPPORTED TARGET" metadata block that
the other FOXEER boards have; either add the same metadata block (with the
appropriate reference hashes and date) to configs/FOXEERF405V2/config.h or
explicitly document that the board is intentionally excluded; locate the config
by the symbol/name USE_ACCGYRO_LSM6DSK320X and insert a SUPPORTED TARGET
metadata block matching the format used in FOXEERF722V4 and FOXEERH743V2 (or add
a comment above the `#define` explaining why no metadata is provided) so the PR
consistently reflects whether the target meets the build-key requirements.

In `@configs/FOXEERF722V4/config.h`:
- Around line 21-26: The DATE metadata in the header comment currently reads
"DATE: 2025-12-01" and should be clarified or updated; either change the DATE
field to the PR/modification date (e.g., "DATE: 2026-05-19") or add an explicit
note (e.g., "ORIGINAL_CERT_DATE: 2025-12-01; LAST_MODIFIED: 2026-05-19") so it's
clear whether the value refers to the original board certification or the
current change — update the comment block accordingly where the DATE line
appears.

In `@configs/FOXEERH743V2/config.h`:
- Around line 22-27: The DATE field in the header comment block (the /* ...
DATE: 2025-12-01 */ metadata) is stale relative to this PR; either update the
DATE value to the current modification/PR date (e.g., 2026-05-19) or add a
clarifying comment that the DATE represents the original board certification
date and include a separate field like LAST_MODIFIED with the PR date; modify
the comment block in configs/FOXEERH743V2/config.h accordingly so the intent is
explicit.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 31233d6f-49ab-4b62-9ff6-c0ecf7aaec02

📥 Commits

Reviewing files that changed from the base of the PR and between 6703db5 and 964bade.

📒 Files selected for processing (3)
  • configs/FOXEERF405V2/config.h
  • configs/FOXEERF722V4/config.h
  • configs/FOXEERH743V2/config.h

#define USE_GYRO_SPI_MPU6000
#define USE_GYRO_SPI_MPU6500
#define USE_GYRO_SPI_ICM42688P
#define USE_ACCGYRO_LSM6DSK320X
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Inconsistency: FOXEERF405V2 lacks metadata block.

The other two FOXEER boards in this PR (FOXEERF722V4 and FOXEERH743V2) receive "SUPPORTED TARGET" metadata blocks with reference hashes and dates, but FOXEERF405V2 does not. The PR description mentions "Added build keys for targets that meet the current requirements" — clarify whether FOXEERF405V2 intentionally does not meet those requirements, or if the metadata block was omitted in error.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@configs/FOXEERF405V2/config.h` at line 34, FOXEERF405V2 is missing the
"SUPPORTED TARGET" metadata block that the other FOXEER boards have; either add
the same metadata block (with the appropriate reference hashes and date) to
configs/FOXEERF405V2/config.h or explicitly document that the board is
intentionally excluded; locate the config by the symbol/name
USE_ACCGYRO_LSM6DSK320X and insert a SUPPORTED TARGET metadata block matching
the format used in FOXEERF722V4 and FOXEERH743V2 (or add a comment above the
`#define` explaining why no metadata is provided) so the PR consistently reflects
whether the target meets the build-key requirements.

Comment on lines +21 to +26

/*
SUPPORTED TARGET - THANK YOU
REFERENCE: sha256_d21ad5220a3e870ab430532a54672fe1871728dc5f4ea49d544a417c3ad6da3c
DATE: 2025-12-01
*/
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Backdated metadata: DATE is 2025-12-01 but PR is from 2026-05-19.

The metadata block shows a date of 2025-12-01, which is over five months before this PR was created. Clarify whether this date represents the original board certification date or if it should be updated to reflect the current modification date.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@configs/FOXEERF722V4/config.h` around lines 21 - 26, The DATE metadata in the
header comment currently reads "DATE: 2025-12-01" and should be clarified or
updated; either change the DATE field to the PR/modification date (e.g., "DATE:
2026-05-19") or add an explicit note (e.g., "ORIGINAL_CERT_DATE: 2025-12-01;
LAST_MODIFIED: 2026-05-19") so it's clear whether the value refers to the
original board certification or the current change — update the comment block
accordingly where the DATE line appears.

Comment on lines +22 to +27
/*
SUPPORTED TARGET - THANK YOU
REFERENCE: sha256_0a3515d028fa96e28361619fc00701b426bfaa43b38d9302c3cd6838bd81f4aa
DATE: 2025-12-01
*/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Backdated metadata: DATE is 2025-12-01 but PR is from 2026-05-19.

The metadata block shows a date of 2025-12-01, which is over five months before this PR was created. Clarify whether this date represents the original board certification date or if it should be updated to reflect the current modification date.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@configs/FOXEERH743V2/config.h` around lines 22 - 27, The DATE field in the
header comment block (the /* ... DATE: 2025-12-01 */ metadata) is stale relative
to this PR; either update the DATE value to the current modification/PR date
(e.g., 2026-05-19) or add a clarifying comment that the DATE represents the
original board certification date and include a separate field like
LAST_MODIFIED with the PR date; modify the comment block in
configs/FOXEERH743V2/config.h accordingly so the intent is explicit.

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.

3 participants