Commit Graph

50042 Commits

Author SHA1 Message Date
PX4BuildBot
1f175fa153 docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-06-05 07:55:10 +00:00
Roman Bapst
ece74e8d24 refactor(navigator): Removed geofence breach avoidance feature (#27465)
* refactor(navigator): removed geofence breach avoidance library
- was disabled by default as an experimental feature
- is too unpredictable given that it commands reposition points, which could
be arbitrarily close to objects
- does not work well in space constrained scenarios

Signed-off-by: RomanBapst <bapstroman@gmail.com>

* fix(docs): removed reference to GF_PREDICT

Signed-off-by: RomanBapst <bapstroman@gmail.com>

* style(navigator): fix formatting

* docs(safety): add minimal guidelines on how to strictly avoid geofence breaches

* docs(safety): slightly simplify wording

* docs(safety): revert typo

* docs(docs): Tweak

---------

Signed-off-by: RomanBapst <bapstroman@gmail.com>
Co-authored-by: Balduin <balduin@auterion.com>
Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
2026-06-05 10:47:35 +03:00
Eurus
63ffa3f9dd fix(commander): reset config overrides on mode change 2026-06-05 08:05:12 +02:00
Jukka Laitinen
eab77c771c fix(CDev): Fix clang-tidy error "bugprone-dynamic-static-initializers" (#27570)
Replace static fops member with platform-defined fops_ref() accessor to avoid
bugprone-dynamic-static-initializers warning.

Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae>
2026-06-04 14:54:39 -06:00
PX4BuildBot
8be2590c15 docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-06-04 15:59:26 +00:00
Balduin
07bac1389c fix(fw_mode_manager/navigator): use the correct waypoint switching distance (#27571)
* fix(fw_mode_manager/navigator): use the correct switch distance

Before https://github.com/PX4/PX4-Autopilot/pull/24056, the fixed-wing
position controller used to publish the acceptance radius (calculated
depending on params and state by DirectionalGuidance::switchDistance) in
the position controller status.

The refactor migrated that to individual lateral/longitudinal topics,
but left the receiving code in the navigator unchanged. As a
consequence, fixed-wing vehicles now rely on NAV_ACC_RAD for the
acceptance radius, rather than the adaptively calculated switchDistance.

As NAV_ACC_RAD is only 10m by default this leads to overshoot,
especially on tight corners.

Fix by reintroducing the publication (now from FixedWingModeManager
through fixed_wing_lateral_guidance_status) and using it in navigator. 

* fix(navigator_main): only listen to position controller status if rover

rover_ackermann is the only remaining publisher after #24056

* style(msg): improve field description

 - @INVALID NaN
 - Describe relation with NAV_ACC_RAD

* style(fw_mode_manager): remove stale include

* docs(navigator): clarify acceptance logic in param description
2026-06-04 17:51:17 +02:00
PX4BuildBot
890c65e69d docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-06-04 14:43:25 +00:00
Balduin
a1fa38025e feat(fw_perf_model): Warn in FW_R_LIM is infeasible due to empty airspeed range (#27547)
* feat(fw_perf_model): warn in max bank infeasible due to empty airspeed range

* style(fw_perf_model): refer explicitly to max airspeed param

and only implicitly to max bank, so users will be inclined to adjust the
former.

* docs(fw-tuning): add section on roll compensation and effect on airspeed limits

* docs(fw-tuning): fix LaTeX

 - wrap text in \text{} so it does not render as if it were variable
   names
 - fix incorrect double escaping which made \sqrt{} and \frac{} not
   render
 - replace \over with \frac - the latter is nicer and handles more edge
   cases

* docs(fw-tuning): fix typo

In the above equation (supposed to be rearranged) there is only C_L, no C_D.

* docs(fw-tuning): correct mistake

only stall and min airspeed are load factor (due to bank) compensated in
the performance model, not trim.
2026-06-04 16:35:48 +02:00
PX4BuildBot
5368e5f1fd docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-06-04 12:05:05 +00:00
bresch
a5479acb43 test(ekf2-mag): add unit test for mag heading rate limit 2026-06-04 13:57:04 +02:00
bresch
fe7e5df568 chore(ekf2-mag): update change indicator due to heading rate limit 2026-06-04 13:57:04 +02:00
bresch
26005a5e15 feat(ekf2-mag): limit max heading rate change due to mag fusion 2026-06-04 13:57:04 +02:00
PX4BuildBot
c856356fa2 docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-06-04 08:14:33 +00:00
Gennaro Guidone
1825187cfa docs(simulation): document SITL GPS failure injection (#27560)
Signed-off-by: gguidone <gennaroguido2002@gmail.com>
2026-06-04 18:07:04 +10:00
PX4BuildBot
8b7da9f8f9 docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-06-04 07:16:00 +00:00
Wael Karman
ed45e42591 docs(docs): update Docker command used for local simulation (#27531)
Co-authored-by: Wael Karman <wael.karman@agile-robots.com>
Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
2026-06-04 16:53:39 +10:00
PX4BuildBot
4567296d3d docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-06-04 06:49:40 +00:00
Jacob Dahl
3dc17ff455 fix(commander): acknowledge DO_REPOSITION by mode, not UNSUPPORTED (#27563)
DO_REPOSITION with the CHANGE_MODE flag clear (param2=0) is valid per the
MAVLink spec -- "reposition without forcing a mode change" -- but Commander
acked UNSUPPORTED for it while the navigator still applied the setpoint
whenever armed, so an armed vehicle in Hold moved despite the UNSUPPORTED ack.

Commander now acks by mode: CHANGE_MODE set switches to Hold (or stays in
Course) and acks ACCEPTED/TEMPORARILY_REJECTED; param2=0 in Hold acks ACCEPTED;
otherwise DENIED. It never returns UNSUPPORTED.

The navigator now only applies the reposition setpoint when armed and either
CHANGE_MODE was requested or it is already in Hold, so it no longer leaves a
stale setpoint that a later switch into Hold could execute -- realizing the
intent of the 2023 change (bec0d83), which only ever touched the ack.

QGC and MAVSDK always set CHANGE_MODE, so their behavior is unchanged.

Signed-off-by: Jacob Dahl <dahl.jakejacob@gmail.com>
2026-06-04 16:27:08 +10:00
PX4BuildBot
d04ea48a53 docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-06-04 06:22:10 +00:00
Wael Karman
fc160d67df docs(docs): fix yarn linkcheck command adding required dependecies (#27566) 2026-06-04 16:14:22 +10:00
PX4BuildBot
d5a0ca1bbc docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-06-04 04:26:47 +00:00
Hamish Willee
1619b9c4e3 docs(docs): fix image rendering in zoom (#27558) 2026-06-04 14:06:06 +10:00
PX4BuildBot
f86540e60c docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-06-04 04:02:07 +00:00
Jonas Perolini
50c57be15f fix(navigator): rtl compute wind angle to select best land approach based on rally point location instead of home location (#27004) 2026-06-04 13:55:31 +10:00
Jacob Dahl
af2e16cd7e ci(labeler): remove auto-application of risk:safety-critical (#27567)
The path globs matched a large fraction of the tree (e.g.
src/modules/*_control/**, src/modules/sensors/**), so the label was
applied to many PRs that aren't meaningfully safety-critical. Remove the
rule so the label is applied manually during review instead.

Signed-off-by: Jacob Dahl <dahl.jakejacob@gmail.com>
2026-06-04 06:48:58 +03:00
PX4BuildBot
a0d1280dff docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-06-04 02:43:31 +00:00
PX4 Build Bot
bb53e9e757 docs(i18n): PX4 guide translations (Crowdin) - ko (#27449)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2026-06-04 12:36:29 +10:00
PX4BuildBot
0822348f52 docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-06-03 22:02:24 +00:00
Andrii Anoshyn
ca39d83e2c fix(navigator): honor NAV_LAND mission item abort altitude (param1) (#27454)
* fix(navigator): honor NAV_LAND mission item abort altitude (param1)

A NAV_CMD_LAND mission item's param1 (minimum abort altitude above the
landing point) was parsed and dropped with a long-standing TODO, so an
aborted landing always climbed to the global MIS_LND_ABRT_ALT regardless
of the per-item value.

Carry param1 in the otherwise-unused time_inside field on upload, and in
do_abort_landing() use it as the climb-above-landing-point height when
set (> 0), falling back to MIS_LND_ABRT_ALT otherwise. The value also now
round-trips on mission download. Items without a specified abort altitude
(param1 = 0), including missions stored by older firmware, keep using the
parameter default.

Fixes #27290

Signed-off-by: Andrii Anoshyn <anoshyn.andrii@gmail.com>

* fix(navigator): clarify land abort altitude storage

---------

Signed-off-by: Andrii Anoshyn <anoshyn.andrii@gmail.com>
2026-06-03 15:54:32 -06:00
Wael Karman
fb069c82ed docs(docs): correct broken link (#27564)
Co-authored-by: Wael Karman <wael.karman@agile-robots.com>
2026-06-03 15:47:09 -06:00
PX4BuildBot
e7e643e14d docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-06-03 21:01:47 +00:00
Matthias Grob
0b36378e77 refactor(parachuteCheck): remove unnecessary namespace and newlines (#27561) 2026-06-03 14:53:38 -06:00
PX4BuildBot
96e6fd0a46 docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-06-03 07:17:24 +00:00
Andrii Anoshyn
d21533886d fix(mavlink): execute CONDITION_DELAY mission items as NAV_DELAY (#27453)
MAV_CMD_CONDITION_DELAY was accepted on upload but mapped to a nav_cmd
(112) that no navigator code recognizes, so the mission feasibility check
rejected it ("unsupported cmd") and its delay was never executed. PX4
already implements an identical seconds-hold via NAV_CMD_DELAY, whose
duration comes from param1 (params[0], aliasing time_inside). Map
CONDITION_DELAY to NAV_CMD_DELAY at parse time so the requested hold is
honored, reusing the existing, tested delay execution and feasibility
logic.

Fixes #27289

Signed-off-by: Andrii Anoshyn <anoshyn.andrii@gmail.com>
2026-06-03 17:09:35 +10:00
PX4BuildBot
b6ac6b0dcc docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-06-03 04:59:26 +00:00
PX4 Build Bot
06c73b8100 docs(i18n): PX4 guide translations (Crowdin) - zh-CN (#27529)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2026-06-03 14:51:36 +10:00
PX4 Build Bot
aacd8b571c docs(i18n): PX4 guide translations (Crowdin) - uk (#27528)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2026-06-03 14:51:25 +10:00
PX4BuildBot
84bd956e6a docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-06-02 21:44:24 +00:00
Eurus
4b13bd6392 fix(mavlink): fix autotune param handle check (#27545) 2026-06-02 15:35:55 -06:00
PX4BuildBot
8363b7a67e docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-06-02 19:14:32 +00:00
Julian Oes
39ee0f5d18 feat(boards): add support for AEDROXH7 flight controller (#27226)
* feat(boards): add support for AEDROXH7 flight controller

STM32H743-based FPV / racing flight controller from AEDROX.

Brings up:
- ICM-42688-P IMU on SPI2
- DPS310 baro on internal I2C2
- W25N NAND flash on SPI3 with littlefs at /fs/flash
- MAX7456 analog OSD on SPI1
- 8 motor outputs (TIM1 + TIM8) all bidirectional-DShot capable
- CAN1
- External I2C1 connector for compass / sensors
- 6 UARTs (TEL1, GPS1, RC, TEL2, ESC telemetry, debug console on UART8),
- Two user GPIOs on the M5-M8 connector, VTX power and camera-switch GPIOs,
buzzer on PA7 (active-buzzer transistor low-side switch), battery V/I sensing
via ADC1.

Board ID 1198 shared with ArduPilot's AP_HW_AEDROXH7 entry.
USB enumerates as 0x16D0:0x14FE with VENDORSTR "AEDROX".

Signed-off-by: Julian Oes <julian@oes.ch>

* docs(docs): Minor subedit

---------

Signed-off-by: Julian Oes <julian@oes.ch>
Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
2026-06-03 06:54:43 +12:00
PX4BuildBot
9fcdf51415 docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-06-02 18:49:34 +00:00
Julian Oes
f94aedf1f0 feat(boards): add CBUnmanned H753-SOM flight controller (#27234)
* feat(boards): add CBUnmanned H753-Stamp flight controller

* Update board_id to 1302

* docs: update CBUnmanned H753-Stamp board docs

Apply review feedback: correct the I2C bus count (add internal bus),
clarify SPI (IMUs on a dedicated internal bus), note the debug console
alongside the user UARTs, and describe how the board is powered from an
external 5 V supply with separate battery voltage sensing.

Add the pinout image and a PWM Outputs section.

Signed-off-by: Julian Oes <julian@oes.ch>

* refactor(boards): rename CBUnmanned H753-Stamp to H753-SOM

Rename the board directory, build target (cbunmanned_h753-som), USB
product strings, docs page, asset directory and pinout image, and the
bundled bootloader binary from -Stamp to -SOM. The hardware is a
System-on-Module, so SOM is the accurate name.

Signed-off-by: Julian Oes <julian@oes.ch>

---------

Signed-off-by: Julian Oes <julian@oes.ch>
2026-06-03 06:40:19 +12:00
PX4BuildBot
7bbab4acf6 docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-06-02 17:51:16 +00:00
Jukka Laitinen
839b7a470f fix(CI): Prerequisites for nuttx update (#27509)
* src/drivers/cdcacm_autostart: Include posix.h for px4_close

Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae>

* platforms/nuttx/CMakeLists.txt: Fix linking of nuttx libaries for memalign

This fixes memalign not found in linking step for some boards

Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae>

* Add "flock" to macos.sh setup script

"flock" is not standard on macOS, and a dependency was missing from the
macOS setup path.

Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae>

* Fix clang-tidy errors in Bitset.hpp and in src/lib/matrix

Fix the "bugprone-dynamic-static-initializers" linter errors.

Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae>

* systemlib/hardfault_log: Fix clang-diagnostics error

Fix for
"[error] clang-diagnostic-error [error]
 use of undeclared identifier XCPTCONTEXT_REGS".

XCPTCONTEXT_REGS is defined in nuttx irq.h, so include that.

Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae>

* uORB: Fix clang-tidy error "bugprone-dynamic-static-initializers"

Fix the clang-tidy error appearing on uORBManager _Instance variable by
adding a getter for the reference to the _Instance and using that instead.

Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae>

* CI: Add default ubuntu mirrors as fallback

In case of specified aws mirror doesn't have the package idicated by the
metadata, a the default ubuntu mirror as a backup.

Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae>

---------

Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae>
2026-06-02 11:27:50 -06:00
PX4BuildBot
fe077b6c58 docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-06-02 17:24:31 +00:00
Jukka Laitinen
4c7bd978c2 Localize math::expo_deadzone usage in Sticks.cpp to save flash (#27546)
math::expo_deadzone generates ~240bytes of code for 32-bit arm
platform, and it gets currently inlined several times.

Localizing the function in Sticks.cpp saves ~2KB of flash, measured
on px4_fmu-v5_default target.

Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae>
2026-06-02 11:16:00 -06:00
Peter van der Perk
db8557e96d fix(bootloader): Fix V6X-RT bootloader on GCC13 and above
GCC13 does aggresive optimizations that causes a RWW violation.
Causing the bootloader to crash while updating.
Add compiler arguements to reduce optimizations fixing the issue.
2026-06-02 17:38:06 +02:00
PX4BuildBot
5332d2b13f docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-06-02 07:46:26 +00:00
Jacob Dahl
d4f39b194d fix(mavlink): add DO_REPOSITION to the command_has_location() list (#27543) 2026-06-02 19:39:24 +12:00