Skip to content

feat(boards): add Droneer X6 flight controller - #27745

Open
wszy2021 wants to merge 43 commits into
PX4:mainfrom
wszy2021:droneerv1
Open

wszy2021 wants to merge 43 commits into
PX4:mainfrom
wszy2021:droneerv1

Conversation

@wszy2021

@wszy2021 wszy2021 commented Jun 25, 2026 •

Copy link
Copy Markdown

add Droneer X6 flight controller
our flight control is based on the V6X standard, and board_types.txt,pixhawk-standards and pab_manifest.c.

@github-actions github-actions Bot added scope:build-system CMake, Kconfig, board config, or build tooling. scope:boards Board-specific changes or hardware definitions. labels Jun 25, 2026
Comment thread boards/droneer/x6/src/hw_config.h Resolved
Comment thread boards/droneer/x6/src/hw_config.h Resolved
Comment thread boards/droneer/x6/src/board_config.h Resolved
Comment thread boards/droneer/x6/src/board_config.h Resolved

@mrpollo mrpollo left a comment •

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.

Thanks for the contribution. PX4 has a formal board support guide for new flight controllers. Several of its requirements aren't met yet, and CI is red.

  • The PR has no description. There's nothing explaining what this board is, what hardware is on it, or where it can be bought. Please describe what you're submitting.

  • No documentation. The guide requires a docs page with "a pinout mapping PX4 pin definitions to the microcontroller pins and physical connectors, plus a block diagram or schematic." Add a page under docs/en/flight_controller/.

  • No flight log. The guide requires demonstrating stable flight with logs uploaded to https://logs.px4.io and linked in the PR. None provided.

  • Register the board_id in PX4-Bootloader. We noticed your ArduPilot PR (ArduPilot/ardupilot#33313) reserving AP_HW_DroneerX6 = 5801. The guide requires the same ID to be reserved on the PX4 side via a PR against PX4/PX4-Bootloader: "If your board will also run ArduPilot, reserve the same board ID in both bootloaders." Its board_types.txt already reserves 5800-5809 for Droneer and lists AP_HW_DroneerF405 5800, but 5801 (your X6) is missing, so it needs to be added to match your ArduPilot reservation:

    --- a/board_types.txt
    +++ b/board_types.txt
    @@ -513,6 +513,7 @@
     #IDs 5800-5809 reserved for Droneer
     AP_HW_DroneerF405                    5800
    +AP_HW_DroneerX6                      5801
    
     #IDs 5810-5819 reserved for Brother Hobby
     AP_HW_BrotherHobbyH743               5810

    Match the existing space alignment (not a tab). Link that PR here once it's up. (5801 is already consistent across this PR's firmware.prototype and src/hw_config.h BOARD_TYPE, so the value is correct, it's just not registered in PX4-Bootloader yet.)

  • USB VID/PID must be yours. The guide: "Do not copy another manufacturer's VID/PID." Your app and bootloader defconfigs ship VENDORID=0x3643 / PRODUCTID=0x15E0, which are ZeroOne's. Register your own, or request allocation under the Dronecode USB VID if you're a Foundation member.

  • CI is red. check_format, check_newlines, shellcheck_all, PR Title, and the macOS build are all failing, plus clang-tidy flagged 4 bugprone-macro-parentheses errors in src/hw_config.h and src/board_config.h. Run make format, fix the newline/shellcheck issues, and apply the clang-tidy suggestions.

  • PR title needs conventional-commit format, e.g. feat(boards): add Droneer X6 flight controller.

  • Remove ZeroOne/v6x leftovers and verify copied pin definitions. nuttx-config/include/board.h still uses the __NUTTX_CONFIG_PX4_FMU_V6X_INCLUDE_BOARD_H header guard and px4_fmu-v6x path comment. init/rc.board_sensors, rc.board_defaults, and rc.board_mavlink branch on the ZeroOne ver hwbasecmp 009 010 011 Skynode base board and start pm_selector_auterion; rc.board_mavlink's comment says "PX4 FMUv6X specific." Remove these if Droneer X6 doesn't have that hardware, and double-check copied pin/sensor definitions against your actual schematic.

Requesting changes for now.

@wszy2021 wszy2021 changed the title add new board droneer add Droneer X6 flight controller Jun 26, 2026
@github-actions

github-actions Bot commented Jun 26, 2026 •

Copy link
Copy Markdown
Contributor

🔎 Flash and RAM Analysis

Target Flash Δ Flash Total Static RAM Δ Static RAM Total
px4_fmu-v2 (F4) +0 B (+0.00%) 97.73% +0 B (+0.00%) 10.29%
px4_fmu-v5x (F7) -8 B (-0.00%) 96.12% +0 B (+0.00%) 21.95%
px4_fmu-v6x (H7) +0 B (+0.00%) 97.61% +0 B (+0.00%) 10.63%
px4_io-v2 (F1) +0 B (+0.00%) 70.78% +0 B (+0.00%) 54.39%

px4_io-v2 firmware image, which an FMU flashes to its IO at boot: unchanged.

px4_fmu-v2 — Bloaty section/symbol breakdown
     VM SIZE    
 -------------- 
  [ = ]       0    TOTAL

px4_fmu-v5x — Bloaty section/symbol breakdown
     VM SIZE    
 -------------- 
  -0.0%      -8    .text
    -1.2%      -2    netlib_obtain_ipv4addr
   -20.0%      -2    nsh_system_ctty
    -0.0%      -4    [section .text]
  -0.0%      -8    TOTAL

px4_fmu-v6x — Bloaty section/symbol breakdown
     VM SIZE    
 -------------- 
  [ = ]       0    TOTAL

px4_io-v2 — Bloaty section/symbol breakdown
     VM SIZE    
 -------------- 
  [ = ]       0    TOTAL

Updated: 2026-11-25T22:28:37

@github-actions

github-actions Bot commented Jun 26, 2026 •

Copy link
Copy Markdown
Contributor

/en/flight_controller/droneer_x6.md

  • LinkedFileMissingAnchor: #CBRK_IO_SAFETY not found in ../advanced_config/parameter_reference.md (/home/runner/work/PX4-Autopilot/PX4-Autopilot/docs/en/advanced_config/parameter_reference.md)

@mrpollo mrpollo changed the title add Droneer X6 flight controller fead(boards): add Droneer X6 flight controller Jun 26, 2026
@mrpollo mrpollo changed the title fead(boards): add Droneer X6 flight controller feat(boards): add Droneer X6 flight controller Jun 26, 2026
@github-actions github-actions Bot added the kind:feature Request or change that adds new functionality. label Jun 26, 2026

@mrpollo mrpollo left a comment

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.

Thanks for the updates, good progress since the last round. The title's fixed, the description and docs page are in, and the ZeroOne pm_selector_auterion/Skynode logic is gone from rc.board_sensors. A few things still need to land before this can merge.

CI is still red. check_format, check_newlines, and shellcheck_all are all failing. Run make format, clean up the trailing and duplicate blank lines (the init/rc.board_sensors script has several clusters), and fix the shellcheck warnings in the rc.board_* scripts. The ark-stm32h7-1 build failure is unrelated to your board (it's a zenoh IDL issue on that target), ignore it.

USB VID/PID is still ZeroOne's. Both your app and bootloader defconfigs ship VENDORID=0x3643 / PRODUCTID=0x15E0, which belong to ZeroOne. You can't ship another manufacturer's USB Vendor ID. Options, in the order I'd recommend:

  1. Get your own USB-IF Vendor ID. Cleanest path for a commercial product. $6,000 one-time, no logo license needed, yours for life with the full PID space. Fully independent and traceable to Droneer. https://www.usb.org/getting-vendor-id
  2. pid.codes (VID 0x1209). Free, for open-source projects, allocated by pull request. Since this board port is open source it's a legit option and the fastest way to unblock the PR today. Fork their repo and submit a PR to claim a PID. Info: https://pid.codes/1209/ ; Request: https://github.com/pidcodes/pidcodes.github.com
  3. Dronecode can allocate a PID under our Vendor ID if neither of the above works for you.

board.h still has v6x leftovers. The header guard is __NUTTX_CONFIG_PX4_FMU_V6X_INCLUDE_BOARD_H and the path comment points at px4_fmu-v6x. Rename them, and please verify the copied pin and sensor definitions against your actual schematic rather than assuming they match ZeroOne.

Reserve 5801 in PX4-Bootloader. Your ArduPilot PR reserves AP_HW_DroneerX6 = 5801, but it's missing from board_types.txt in PX4-Bootloader (only AP_HW_DroneerF405 5800 is there). Open that PR and link it here. The value is correct everywhere in this PR, it just isn't registered upstream yet.

Flight log. The board support guide requires a https://logs.px4.io link showing stable flight for the vehicle type. Still missing.

A couple of smaller things: the docs page isn't in docs/en/SUMMARY.md, so it's orphaned and the link-check fails (add it to the TOC), the image URLs point at a github.com/Droneer-uav blob path that needs to resolve, and the page should carry the manufacturer-supported notice block other board pages have. Minor: you inherited CONFIG_DRIVERS_RC_INPUT from zeroone/x6, but upstream v6x uses CONFIG_COMMON_RC, worth aligning, not a blocker.

Requesting changes again. The hardware-clone approach is fine, it just needs the cleanup, the VID, and the flight log before it can go in.

I'm dropping this from the v1.18 release, since its still has pending work, and we can't wait any longer.

Comment thread docs/en/flight_controller/droneerX6.md Resolved
Comment thread docs/en/flight_controller/droneerX6.md Resolved
Comment thread docs/en/flight_controller/droneerX6.md Resolved
Comment thread docs/en/flight_controller/droneerX6.md Resolved
@hamishwillee

Copy link
Copy Markdown
Contributor

@mrpollo @farhangnaderi The docs for this are near-accepable. Have your issues been addressed? Can you re-review?

Comment thread boards/droneer/x6/src/timer_config.cpp Resolved
Comment thread boards/droneer/x6/firmware.prototype Resolved
@github-actions github-actions Bot removed scope:build-system CMake, Kconfig, board config, or build tooling. scope:docs labels Oct 30, 2026
julianoes
julianoes previously approved these changes Oct 30, 2026
@julianoes

Copy link
Copy Markdown
Contributor

@mrpollo what about the CI check for the Dronecode registry?

@mrpollo

mrpollo commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

That's something that should be fixed here https://github.com/dronecode/usb-ids

@hamishwillee hamishwillee left a comment •

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.

Thanks for the board support. I've pushed 6c4c6e4 to your branch. It brings the docs page onto the template used for new flight controller pages:

  • Rename: the page is now droneer_x6.md, the image folder droneer_x6/, and the title "Droneer X6".
  • Layout: the sections are in template order, with Specifications in label form.
  • New sections: Ethernet, SD Card, Serial Port Mapping flow control, Radio Control, GPS & Compass, Telemetry, CAN, Debug Port and Further Information.
  • Corrections to match the board source: PWM outputs are in 3 groups each for MAIN and AUX. DShot and bidirectional DShot are on AUX 1-6 only, because the MAIN outputs come from the PX4IO. There are 2 power inputs.

Please check the update and pull before making further changes.
The line comments are questions and suggestions; this is the order I'd suggest working through them.

1. Needed before merge

  • Relationship to ZeroOne X6: the board files are a close copy of boards/zeroone/x6. The differences are the names, the IMU set, and the removed BMP581/SPA06 startup. Is the Droneer X6 a licensed rebrand or derivative of the ZeroOne X6? If the hardware is the same apart from the IMUs, could it be supported as a variant of zeroone/x6 instead of a separate board directory?
  • Flight logs: please add links to your flight logs (https://logs.px4.io) to the PR description, as the board support guide (step 5) requires.
  • Block diagram or schematic: see the comment on the pinout.
  • Power ports and battery monitoring: see the comment on the Power section.
  • TELEM 1 flow control: see the comment on that line.

2. Firmware questions: X6 Pro (spi.cpp), the PWM voltage select pin (board_config.h), the unused barometer drivers and the OSD port (default.px4board).

3. Facts only you can supply:

  • voltage ratings
  • debug port connectors
  • whether the PPM connector works on the default firmware
  • weight, dimensions, and which IMUs are isolated
  • confirmation of the figures that match ARK's page

4. Images: compress the photo and supply the pinout as SVG.

5. Release notes (optional): add the board to the Hardware Support list in docs/en/releases/main.md, in the form used in releases/1.18.md.

Comment thread docs/en/flight_controller/droneer_x6.md Resolved
Comment thread docs/en/flight_controller/droneer_x6.md Resolved
Comment thread docs/en/flight_controller/droneer_x6.md Resolved
Comment thread docs/en/flight_controller/droneer_x6.md Resolved
Comment thread docs/en/flight_controller/droneer_x6.md Resolved
Comment thread boards/droneer/x6/src/spi.cpp Resolved
Comment thread boards/droneer/x6/src/board_config.h Resolved
Comment thread boards/droneer/x6/default.px4board Resolved
Comment thread boards/droneer/x6/default.px4board Resolved
Comment thread boards/droneer/x6/LICENSE.md Resolved
wszy2021 and others added 21 commits November 25, 2026 17:49
Restore the clipped PPM, GPS 2 and CAN 1 GND labels in the pinout,
drop its invisible paths, and invert it in dark mode, where the black
line art on a transparent background was invisible.

Correct the safety switch default (CBRK_IO_SAFETY defaults to 22027,
which disables it), fix the IO processor link text, and tidy the
wording and formatting from the last review.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Hamish Willee <hamishwillee@gmail.com>
Link the X6 product page from the introduction and Further Information,
list AUX 7-8 on the AD&IO port, round the height to match the
dimension drawing (32.77 mm), format the POWER 1 priority note, and
put the release note entry in the form the release notes use.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Hamish Willee <hamishwillee@gmail.com>
Render the dimension drawings and block diagram as images (they were
swallowed by the list item and the <img> HTML block), point the intro at
the current product page, add the separately-powered servo rail note the
author confirmed, and use the PX4 unit style throughout.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Hamish Willee <hamishwillee@gmail.com>
6168efd moved seven submodule pointers back to older commits,
NuttX among them (from 12.12.0 to a 12.x backport branch).
Reset them to the merge base with main so the board builds
against the NuttX the defconfig changes were made for.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Hamish Willee <hamishwillee@gmail.com>
Since 1239c24 the build fails at configure when a board keeps its own
px4io binary in extras/. The px4io firmware now comes from the IO board
via CONFIG_BOARD_IO, which defaults to px4_io-v2_default.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Hamish Willee <hamishwillee@gmail.com>

@hamishwillee hamishwillee left a comment •

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.

Note

This is an AI review (Claude).

I've resolved the 2 threads that are now fixed, and rebased your branch onto main (now 35be21b). The only conflicts were the board lists in SUMMARY.md, autopilot_manufacturer_supported.md and releases/main.md, where CyberX-v10 had been added next to the Droneer X6. I also dropped the accidental submodule bumps from defconfig and restore submodules while rebasing. Your board files, page and images are unchanged.

Please pull before making further changes (git fetch then git reset --hard origin/droneerv1, since the history was rewritten).

New since the last review

Thanks for the regenerated defconfig and the corrected diagram labels. droneer_x6_default builds on 35be21b (flash 94.2%).

Still open from earlier reviews

  • Could you flash droneer_x6_default from 35be21b and confirm that the board boots with /etc mounted and that hardfault_log works? This matters more now that the defconfig was regenerated.

Once that's confirmed, this is done docs side.
@mrpollo @farhangnaderi This is ready for final technical review.

hamishwillee
hamishwillee previously approved these changes Nov 25, 2026

@hamishwillee hamishwillee left a comment •

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.

Approved for docs. PS Thanks @wszy2021 for being so helpful and responsive.

@wszy2021

Copy link
Copy Markdown
Author

Note

This is an AI review (Claude).

I've resolved the 2 threads that are now fixed, and rebased your branch onto main (now 35be21b). The only conflicts were the board lists in SUMMARY.md, autopilot_manufacturer_supported.md and releases/main.md, where CyberX-v10 had been added next to the Droneer X6. I also dropped the accidental submodule bumps from defconfig and restore submodules while rebasing. Your board files, page and images are unchanged.

Please pull before making further changes (git fetch then git reset --hard origin/droneerv1, since the history was rewritten).

New since the last review

Thanks for the regenerated defconfig and the corrected diagram labels. droneer_x6_default builds on 35be21b (flash 94.2%).

Still open from earlier reviews

  • Could you flash droneer_x6_default from 35be21b and confirm that the board boots with /etc mounted and that hardfault_log works? This matters more now that the defconfig was regenerated.

Once that's confirmed, this is done docs side. @mrpollo @farhangnaderi This is ready for final technical review.

etc hardfault_log

@hamishwillee

Copy link
Copy Markdown
Contributor

@farhangnaderi Good to go?

@farhangnaderi

Copy link
Copy Markdown
Contributor

One more round I should check this and figure the commit tree to be ok. Then yes I will merge.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Hamish Willee <hamishwillee@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:feature Request or change that adds new functionality. scope:boards Board-specific changes or hardware definitions.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants