feat(boards/3dr/ctrl-n1): configure barometer as DPS368#27854
Open
TOTON95 wants to merge 1 commit into
Open
Conversation
Contributor
🔎 FLASH Analysispx4_fmu-v5x [Total VM Diff: -8 byte (-0 %)]px4_fmu-v6x [Total VM Diff: -16 byte (-0 %)]Updated: 2026-07-09T23:49:55 |
dirksavage88
approved these changes
Jul 10, 2026
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.
3DR Control-N1 uses the DPS368 barometer variant (not DPS310) on the internal SPI6 bus. Wire the existing dps310 driver's DPS368 mode so the device is probed and registered with the correct device type.
rc.board_sensors: pass-8todps310 startto select the DPS368 variantspi.cpp: change the SPI6 baro device type fromDRV_BARO_DEVTYPE_DPS310toDRV_BARO_DEVTYPE_DPS368so the bus scan matches the driver's requestVerified on hardware: boot log shows
dps310 #0 on SPI bus 6, andlistener sensor_baroreportsdevice_id: 0x77= DPS368, bus 6) with valid pressure/temperature readings. Also confirmed the compiledpx4_spi_busestable in the built ELF carriesdevtype_driver = 0x77rather than the old0x68(DPS310).