Commit Graph
1800 Commits
Author SHA1 Message Date
Anil Kircaliali c4e66ad303 feat(navigator): RTL type 6 takes the quickest rally point instead of the closest 2026-11-25 16:48:22 +01:00
Anil Kircaliali fab43dd1a3 fix(navigator): compare the battery with the lowest RTL type 6 estimate
Signed-off-by: Anil Kircaliali <anil.kircaliali@auterion.com>
2026-11-25 15:45:06 +01:00
Jonas PeroliniandAnil Kircaliali 4c1d82bf37 fix(navigator): include the VTOL land approach in the Home reach check (#30007)
RTL_TYPE 6 estimated Home without the VTOL land approach to decide
whether Home is within reach, while the Return flies the approach and
the published estimate includes it. Home could count as reachable while
the published estimate already exceeded the battery. Estimate Home with
the land approach applyReturn() configures.


Assisted-by: Claude:claude-opus-5-5

Signed-off-by: jonas <jonspero@me.com>
Co-authored-by: Anil Kircaliali <anil.kircaliali@auterion.com>
2026-11-25 12:03:47 +01:00
PX4BuildBot 70987238e5 docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-11-25 00:12:06 +00:00
PX4BuildBot 76edd6c2ee docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-11-24 22:18:36 +00:00
Jonas PeroliniandSilvan Fuhrer b03d179c3b feat(navigator): add a parameter-based contingency geofence (#29885)
Assisted-by: Claude:claude-fable-5-2

Signed-off-by: jonas <jonspero@me.com>
Co-authored-by: Silvan Fuhrer <silvan@auterion.com>
2026-11-24 23:10:39 +01:00
Ramon Roche 467514c7af ci(px4_msgs): drop the release branch dispatch to the interface library
The dispatch to px4-ros2-interface-lib needs an account with write
access to that repository, and the one time it fired, for release/1.18,
it was refused. The library will pick up new PX4 release branches with
a daily check of its own instead, which needs no access from our side.

What is left of the workflow only creates the px4_msgs branch, so rename
it to say that, and describe both paths in the release process.

Assisted-by: Claude:claude-fable-5-2
Signed-off-by: Ramon Roche <mrpollo@gmail.com>
2026-11-23 20:04:26 -08:00
Ramon Roche c304b9328a docs(releases): update the companion repository steps
The release process still told the release manager to create the
px4_msgs and px4-ros2-interface-lib branches by hand, and to edit a
git clone line in ros_integration_tests.yml that no longer exists.
Describe what the workflows do for a new release branch and for a stable
tag, how to run them again, and where the library pin lives now.

Assisted-by: Claude:claude-fable-5-2
Signed-off-by: Ramon Roche <mrpollo@gmail.com>
2026-11-23 20:04:26 -08:00
zdeno-sekerak 2f0dc16b4f docs(data_links): add IP-based radios overview (#29405) 2026-11-24 14:18:16 +11:00
Ramon Roche 25181e998d docs(releases): mark v1.18 as the latest stable release
PX4 v1.18.0 is published and the stable branch points at it, so the
docs should present it as the current stable release.

Following the v1.16 and v1.17 stable switches, the v1.18 notes get the
Stable badge and lose the beta testing warning, v1.17 drops its Stable
badge, the sidebar labels move "(stable)" from 1.17 to v1.18, and the
docs version menu gains a v1.18 (stable) entry ahead of v1.17.

Two stale warnings go as well: main.md no longer says v1.18 is in beta
testing, and 1.17.md drops the note that v1.17 is documented on an
alpha/beta branch, matching the older stable release pages.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Ramon Roche <mrpollo@gmail.com>
2026-11-23 18:15:41 -08:00
Ramon Roche d0f79b8c96 docs(releases): add the fixes backported for rc3 to the v1.18 notes
The three Return fixes, the IO firmware rebuild, the home republish fix and the LOG_ERASE crash fix went to release/1.18 for v1.18.0-rc3, but main's 1.18.md had none of them.

- 1.18.md gains the move to the mission landing after the climb (#29688), moved from main.md, plus #29911, #29831 and #29857.
- main.md drops #29484 and #29684. Both fixed regressions from the v1.18 pre-releases that never reached a stable release, so neither belongs in the notes for the next one.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Ramon Roche <mrpollo@gmail.com>
2026-11-23 16:48:39 -08:00
Ramon Roche 1b51227375 ci(build_all): port artifact packaging to Python
package_build_artifacts.sh decides what build_all publishes to S3,
GitHub Releases and pull request artifacts. It has grown a special case
per kind of target, and it is the only build_all tool without a test.

Port it to Python as is. The published files do not change: both
versions produce identical paths and contents from the same build
trees.

Assisted-by: Claude:claude-fable-5-2
2026-11-23 14:17:49 -08:00
dopelionandHamish Willee 509b5b8d1a feat(boards/cyberx_v10): Add support for the CyberX-v10 flight controller (#28797)
feat(boards/cyberx): add CyberX-v10 flight controller

Add board support for the CyberX-v10 flight controller with an
STM32F103 IO processor.

Board:
- Configure SPI6 without DRDY and comment out unused GPIO and SPI
  definitions.
- Add the UAVCAN interface configuration (DroneCAN is off by
  default).
- Remove Timer1 Channel2 capture (no camera capture support).
- Describe ADC_RC_RSSI_CHANNEL.
- Use UART7 as the serial (debug) console.
- Remove Spektrum/DSM support.
- Keep ADC battery monitoring on PWR1 as the only default power
  monitor (the INA228 is not started in rc.board_sensors).
- Use the external PX4IO firmware through CONFIG_BOARD_IO instead of
  bundling px4_io-v2_default.bin in extras.

Docs:
- Add the CyberX-v10 board page following the flight controller
  template: specifications with linked processors and sensors,
  dimensions, input voltage range and power monitoring; voltage
  ratings including absolute maximum ratings; connectors with pin
  counts, pinout, block diagram and wiring diagram.
- Describe Radio Control: the IO processor S.Bin input, and the FMU
  path through rc_input on Uart8, single-wire on RX as set by
  RC_SERIAL_SINGLEWIRE and RC_SERIAL_SWAP_RXTX, with RC_PORT_CONFIG.
  Spektrum/DSM is not supported.
- Document the serial port mapping (EXT2 for Uart5, UART7 as the
  debug console, I2C3 also on PWR2), the bootloader UART, that GPS2
  needs GPS_2_CONFIG, and that DroneCAN is off by default.
- Explain that PWR1 and PWR2 monitor a single power source rather
  than being redundant inputs.
- Use COM_SAFETY_MODE for the safety switch.
- Add OSD (built-in MSP OSD driver) and Further Information sections.
- Add a quick start guide with the manufacturer warning, wiring
  diagram, RC receiver connections and links to RTK, SWD and
  parameter setup.
- Add product and top-view photos as WebP, plus the block diagram,
  connector and pinout images.
- List the board in the FC-specific assembly guides, the main release
  notes, and the Ethernet setup and SWD debug port pages.

Assisted-by: Claude:claude-opus-5-5
Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
Signed-off-by: Hamish Willee <hamishwillee@gmail.com>
2026-11-23 16:34:01 -05:00
jiakunandHamish Willee bd9ba633e0 docs(tfmini): add safety ratings, series note and release notes entry (#29633)
* docs(tfmini): add safety ratings, series note and release notes entry

Benewake specifies photobiological safety rather than a laser class
for these sensors: Class 1 (EN 60825) for the TFmini-S, exemption
level (EN 62471) for the LED-based TFmini Plus. State each rating per
its datasheet in place of the single "Laser class" line.

Record that the original TFmini has left Benewake's current product
lineup while the TFMINI/TFMINI-S setting remains for compatibility,
and that the current TFmini-i (RS-485 or CAN, 7-30 V supply) is not
supported by this UART driver.

Add the release notes entry that #29575 was missing.

Assisted-by: GLM:glm-5.3-flash
Signed-off-by: jiakun <53556221+ddwolf87@users.noreply.github.com>

* docs(sensor): list original TFmini as discontinued, keep laser class label

Move the original TFmini into a Discontinued block on the TFmini page and
list it in the rangefinder table, as other discontinued rangefinders are.

Keep the template's "Laser class" spec label: the TFmini Plus is an LED
source with no laser class, so say that and give Benewake's EN 62471
rating after it.

Say the TFmini-i is not supported by PX4 rather than "this driver", and
in the release notes give the old FoV of the shared TFMINI / TFMINI-S
setting.

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

* docs(sensor): remove space between values and unit symbols

Bring the TFmini page and the release notes to the docs style guide's
unit convention (12m, not 12 m), and realign the tables this narrows.

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

---------

Signed-off-by: jiakun <53556221+ddwolf87@users.noreply.github.com>
Signed-off-by: Hamish Willee <hamishwillee@gmail.com>
Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
2026-11-24 07:49:11 +11:00
Jacob Dahl 805bf8d75d feat(boards/ark_fmu-v6x): add the LSM6DSV32X revision (#29767)
* feat(boards/ark_fmu-v6x): add the LSM6DSV32X revision

The ARKV6X-32X is the ARKV6X with three LSM6DSV32X in place of the
IIM-42653s, on the same pads and at the same orientations. It reports
FMUM ID 2, which matched no sensor set, so no IMU started.

Assisted-by: Claude:claude-fable-5-2

* docs(releases): note the ARKV6X-32X

Assisted-by: Claude:claude-fable-5-2

* refactor(boards/ark_fmu-v6x): drop the SPI4 stub from the LSM6DSV32X entry

The commented-out SPI4 bus is a leftover from px4/fmu-v6x, where SPI4 is
a sensor bus powered from PG8. This board has no SPI4 and uses PG8 as a
plain GPIO.

Assisted-by: Claude:claude-fable-5-2

* docs(releases): list the ARKV6X-32X under v1.18

The board support is being backported to release/1.18.

Assisted-by: Claude:claude-fable-5-2
2026-11-23 11:44:59 -07:00
Anil Kircaliali 5db5c623a1 fix(logger): use selected device_id to choose sensor in fifo logging (#29751)
* fix(logger): use selected device_id to choose sensor in fifo logging

* fix(logger): keep logger_topics.txt fifo instances and skip profile fifo without a matching selected imu

* docs(logger): describe fifo logging of the selected imu
2026-11-23 14:31:17 +01:00
Roman BapstandBalduin ff37963842 test(tecs): add closed-loop unit tests for TECSControl (#29875)
* test(tecs): add closed-loop unit tests for TECSControl

Couple TECSControl to a minimal aircraft model built from the energy
model TECS assumes internally: a piecewise linear throttle to total
energy rate map, climb rate from pitch and airspeed, and the remainder
of the energy rate into airspeed. With perfect state knowledge and no
model mismatch any tracking error is the controller's own, so the suite
exposes consistency errors between the pitch and throttle loops that
the unit tests on single updates cannot see.

Only the cases the current controller passes are included: steady
cruise, airspeed steps, a slow altitude step down, plant pitch offset,
gliding, fast descend and airspeed-less cruise. The altitude steps at
the default vertical acceleration, with a speed weight below 1 and
without airspeed fail today and come with the fixes they test.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: RomanBapst <bapstroman@gmail.com>

* test(tecs): explain why the airspeed step down is not first order

The step down is not first order because the SEB rate to pitch
conversion ignores the total energy rate: the pitch feedforward climbs
with the kinetic energy the throttle is already removing, and the pitch
integrator takes it out again. The loops interacting is not the cause;
with a consistent conversion the response is first order.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: RomanBapst <bapstroman@gmail.com>

* test(tecs): use the current year in the closed-loop test copyright

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: RomanBapst <bapstroman@gmail.com>

* test(tecs): drop the altitude reference model from the closed-loop test

The closed-loop harness is meant to test TECSControl on its own, but the
altitude setpoint went through TECSAltitudeReferenceModel first, so the
altitude step results also depended on how the reference model shapes
the setpoint. Feed TECSControl the raw altitude setpoint instead.

A raw step drops the throttle to idle at once, so the altitude step only
keeps airspeed exact if the pitch can follow just as fast. In TECSControl
the vertical acceleration limit only rate limits the pitch, so the step
test now disables it, and sizes the step so that the demanded sink rate
stays within FW_T_SINK_MIN, the sink rate flown at idle without speeding
up.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: RomanBapst <bapstroman@gmail.com>

* test(tecs): show the airspeed-less altitude step with half the SEB feedforward

Without airspeed the speed weight is 0, so the SEB rate is twice the
potential energy rate, while the pitch feedforward converts it to a climb
angle as if they were equal and asks for twice the climb rate. With the
feedforward gain at 0.5 the vehicle flies the demanded climb rate exactly
and the altitude error decays first order with FW_T_ALT_TC, which the
test checks for a step down and a step up. At the default gain of 1 the
same checks miss by up to 1.8 m.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: RomanBapst <bapstroman@gmail.com>

* test(tecs): disable the STE rate filter in the airspeed-less altitude step

The low-pass filter on the total energy rate estimate lags the step, so
the throttle damping briefly overfunds the climb on the step up and the
open loop airspeed rose by 3 cm/s, which the test allowed for with a
looser bound. Disable the filter instead and hold the airspeed to the
numerical tolerance like the other exact cases.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: RomanBapst <bapstroman@gmail.com>

* test(tecs): disable vert_accel_limit generally

* test(tecs): count closed-loop simulation steps as an integer

Accumulating the simulation time in float drifts (the second altitude step
of a test landed at 40.0007 s) and the float loop condition could run one
step more than the requested duration. Count steps instead and derive the
time from the step count.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Balduin <balduin@auterion.com>

* test(tecs): unify error tolerance

Replace various hardcoded tracking tolerances:
 - Add a second general constant for the tolerance of tracking errors
   which do NOT scale down with smaller DT
 - Adjust settling times so all tests reasonably reach this threshold

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Balduin <balduin@auterion.com>

* test(tecs): add a make target to plot the closed-loop test cases

The closed-loop test writes one CSV per test case when TECS_TEST_LOG_DIR
is set, but reading the step responses from numbers is tedious. Add the
plotting script back and a tecs_closed_loop_plots target that runs all
test cases with logging and plots them into
build/px4_sitl_test/tecs_closed_loop/png, also when test cases fail.
It is a separate target so that make tests and CI do not depend on
matplotlib.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: RomanBapst <bapstroman@gmail.com>

* test(tecs): rename the closed-loop test to TECSControlClosedLoopTest

The test drives TECSControl, not the outer TECS class, so name it after
the class under test like TECSTest.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Balduin <balduin@auterion.com>

* test(tecs): clean up logging & variable names

Stop mixing up previous and current steps:
 - _pitch and _throttle hold the last TECS command, which the plant
   applies until the next update (drop the _prev naming)
 - reorder logging, so each row pairs a state with the command
   computed from it:
     - find control input
     - sim stats, csv output
     - advance simulation

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Balduin <balduin@auterion.com>

* docs(test): document the TECS closed-loop test logging and plots

The closed-loop TECS test can log every test case to CSV and plot them
with the tecs_closed_loop_plots target, but neither is discoverable from
the docs. Describe both next to the other make tests options.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: RomanBapst <bapstroman@gmail.com>

* test(tecs): standardise step sizes

Use one altitude and one airspeed step size for all step tests, so the
tests are easier to compare:
 - ALT_STEP chosen to not saturate throttle while sinking or climbing
     - Altitude step up test added (disabled, see comment)
 - AIRSPEED_STEP = 1 m/s
     - Only effective change is gliding (previously 2 m/s steps)
 - FastDescend drops the altitude setpoint, which does not affect it, and
   checks the throttle is exactly at its minimum

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Balduin <balduin@auterion.com>

* test(tecs): comment polishing

* test(tecs): tighten bounds for the weird airspeed response

* test(tecs): disable pitch damping

Removes the ringing artifacts. I think pitch damping makes no sense in
this sim, see comment for details.

* test(tecs): Require low errors after integrator

And add another future test (altitude step up currently still gives a
bit too much airspeed error)

---------

Signed-off-by: RomanBapst <bapstroman@gmail.com>
Signed-off-by: Balduin <balduin@auterion.com>
Co-authored-by: Balduin <balduin@auterion.com>
2026-11-23 11:23:31 +03:00
Nuno Marques 288b114841 feat(uxrce_dds_client): bridge out-of-tree uORB messages over uXRCE-DDS (#29782)
* feat(uxrce_dds_client): bridge the topics of out-of-tree messages

Out-of-tree uORB messages build into PX4 like any other, but the
bridge reads only dds_topics.yaml, so bridging one means editing that
file and carrying the change through every PX4 update.

When $EXTERNAL_MODULES_LOCATION/msg/dds_topics.yaml exists, the build
passes it to the generator after dds_topics.yaml, and the generator
appends each file's lists to those before it. A topic declared twice
in the same list stops the build, since it would be bridged twice.
A single file, as Zenoh's build passes, yields its lists unchanged.

Assisted-by: Claude-Code:claude-opus-5-5

* test(uxrce_dds_client): test the topic generator in the Python checks

The generator runs only inside a firmware build, so a change that
breaks joining topic files, or the check for repeated topics, would
first show up as a broken build. The tests run it on its own: a second
file appends its topics to each list, lists split across files give
the same header as one file, files without topics add nothing, and a
repeated topic stops it. The Python checks job installs empy for the
generator, in the range PX4's requirements.txt gives.

Assisted-by: Claude-Code:claude-opus-5-5

* feat(scripts): copy out-of-tree messages into px4_msgs

ROS 2 needs every bridged message in px4_msgs, and copy_to_ros_ws.sh
copies only PX4's own. An optional second argument, the external
modules location, adds the messages of its msg directory, if it has
any. A message with the name of a PX4 message would replace PX4's
definition in px4_msgs, so the script refuses it before copying
anything.

A test in the Python checks runs the script on throwaway workspaces:
PX4's messages alone, a location's messages added, a location without
messages, and the refusals of a PX4 message name and of a location
without a msg directory.

Assisted-by: Claude-Code:claude-opus-5-5

* docs(uxrce_dds): document bridging out-of-tree messages

The uXRCE-DDS page covers dds_topics.yaml but not the topics of
out-of-tree messages. Describe their topics file and the copy into
px4_msgs there, and point to it from the External Modules page.

Assisted-by: Claude-Code:claude-opus-5-5
2026-11-22 09:04:15 +00:00
Bogdan Beju - NXP 0e0f3ce8a2 docs(boards/nxp_mr-tropic): Add docs for NXP MR-VMU-TROPIC (#29602) 2026-11-21 15:25:05 +11:00
Ramon Roche 3de5e83add docs(releases): add a v1.18 introduction and how to get the release
The v1.18 notes opened with a single line pointing at v1.17. The new
introduction describes what the release changes for operators and
integrators, and the new section explains how to fly, simulate, build
and integrate with v1.18, including the published containers, which the
notes never mentioned.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Ramon Roche <mrpollo@gmail.com>
2026-11-20 15:34:16 -08:00
Jacob Dahl 309b338b0b feat(boards/ark/fpv): analog OSD on the external SPI port (#29916)
* fix(atxxxx): fail the probe when the chip doesn't answer

probe() logged a VM0 mismatch but returned the SPI transfer status, so with nothing on the bus the driver started anyway.

* feat(boards/ark/fpv): analog OSD on the external SPI port

OSD_ATXXXX_CFG 1 or 2 starts atxxxx on SPI6 for a MAX7456-compatible OSD such as the ARK OSD. It stays off by default, since many use that port for an external IMU.

* docs(ark_fpv): set up an analog OSD on the SPI or TELEM port

The board can carry an analog OSD on either port, and neither is on by default.
2026-11-19 17:16:47 -07:00
PX4BuildBot adad90119f docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-11-19 18:35:44 +00:00
Jacob DahlandAndrea Bernasconi d04e5623f6 feat(gnss): compare receivers in sensors, limit divergence in commander (#29604)
* feat(sensors/gnss): report how far each receiver is from the selected one

Commander compared the receivers itself, reading the sensors module's antenna offsets and comparing samples taken at different times. The sensors module has the receiver-to-slot matching and the corrected sample times, so it now publishes each receiver's disagreement with the selected one on sensors_status_gnss, horizontally and vertically.

The other receiver is moved along its velocity to the selected sample's time. The antenna baseline is rotated with the attitude, so swapped or misplaced antennas show once the primary estimator's heading is aligned. Before that only the distances are compared, since the yaw is arbitrary.

Co-authored-by: Andrea Bernasconi <andrea.bernasconi@auterion.com>
Assisted-by: Claude:claude-opus-5-5

* feat(commander): limit the GNSS divergence with COM_GNSS_H_MAX and COM_GNSS_V_MAX

The divergence gate came from the receivers' reported accuracy floored with EKF2_GPS_P_NOISE, so it was hard to predict and read another module's parameter. Commander now takes the disagreement from sensors_status_gnss and applies fixed horizontal and vertical limits. Three times the receivers' combined reported accuracy still widens them, so standalone receivers don't warn on default parameters.

Before arming a divergence is reported at once and clears after 2 s of agreement. In flight it has to persist for 2 s.

Co-authored-by: Andrea Bernasconi <andrea.bernasconi@auterion.com>
Assisted-by: Claude:claude-opus-5-5

* fix(commander): keep the GNSS divergence limits fixed

Widening the limits to three times the receivers' combined reported accuracy made them floors, not limits. With the default GNSS_REQ_EPH and GNSS_REQ_EPV the gate opened to 12.7 m horizontally and 21 m vertically before arming, and to about 210 m in flight once a receiver fell back to the relaxed checks. The limits now apply as set, with defaults of 5 m and 10 m so standalone receivers don't warn.

Assisted-by: Claude:claude-opus-5-5

* fix(commander): don't take an unknown GNSS disagreement for agreement

The sensors module leaves the disagreement unknown when the two latest samples are more than 0.5 s apart, while both receivers stay healthy. Commander treated that as nothing to compare, so a divergence before arming cleared for that check and an arm request could pass, and in flight the 2 s timer restarted. It happens on any gap over 0.5 s from a healthy receiver, and on 2 Hz receivers whose latencies differ. An unknown disagreement now keeps the state and its timer. A divergence still clears at once when there is no healthy pair to compare.

Assisted-by: Claude:claude-opus-5-5

* docs(commander): swapped GNSS antennas hide behind a moving-base heading

The moving-base heading takes its offset from the same antenna positions. With swapped antennas the heading turns by 180°, and the expected baseline turns with it, so the divergence check sees agreement.

Assisted-by: Claude:claude-opus-5-5

* docs(commander): reword the moving-base heading caveat

The sentence didn't say plainly that a moving-base heading from the same receivers stops the check from detecting swapped antennas.

Assisted-by: Claude:claude-opus-5-5

* docs(commander): fold the moving-base caveat into the swapped-antenna conditions

The caveat read as a repeat of the alignment sentence. It is one more condition for detecting swapped antennas, so it now sits with the others.

Assisted-by: Claude:claude-opus-5-5

* refactor(gnss): rotate the antenna baseline with the attitude as it is

The heading gate kept a limit below twice the antenna baseline from reporting a divergence before the heading aligned. With a mag the heading aligns before the receivers turn healthy. A heading from the same two receivers can't reveal swapped antennas anyway. The gate also never opened with an external INS, since only EKF2 publishes estimator_status_flags. Dropping it saves 168 B of flash on fmu-v2. The attitude age limit goes with it, since the last published attitude is a better guess than level and facing north.

Assisted-by: Claude:claude-opus-5-5

---------

Co-authored-by: Andrea Bernasconi <andrea.bernasconi@auterion.com>
2026-11-19 11:28:20 -07:00
PX4BuildBot 4e44c822c9 docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-11-19 16:17:26 +00:00
Marco Hauswirth 829f0f412e feat(sensors): keep calibrating the baro on the GNSS altitude until arming (#29876) 2026-11-19 17:10:35 +01:00
Mathéo Taillandier e1e1122af5 feat(simulation): enable airspeed sensor failure injection on gazebo too (#29210)
* feat(simulation): enable failure injection on gazebo sensor too

* docs(failure_injection): remove added dot
2026-11-19 12:58:23 +01:00
PX4BuildBot 48814f9409 docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-11-19 08:29:47 +00:00
Matthew Charles Vladislav Busel 5c1a57d6d5 feat(simulation): add a differential rover to SIH (#29852)
* feat(simulation): add a differential rover to SIH

Add SIH_VEHICLE_TYPE 6 (Rover Differential) and the
10048_sihsim_rover_differential airframe, so rover_differential runs
headless with `make px4_sitl_sih sihsim_rover_differential`.

The model is a unicycle: each wheel is driven towards the ground speed
its motor command asks for (2 m/s at full command, matching
RO_MAX_THR_SPEED) up to its traction limit, and a lateral force keeps
the wheels from slipping sideways. Motor 1 is the right wheel and
motor 2 the left, as in the gz differential rover.

Closes #29838

Assisted-by: Claude:claude-opus-5-5

* docs(simulation): explain the forces in the SIH differential rover model

Label the longitudinal force block and the force, moment and drag
outputs of generate_rover_differential_dynamics(), as suggested in
review. Comments only, no change in behaviour.

Assisted-by: Claude:claude-opus-5-5
2026-11-19 09:22:21 +01:00
Hamish Willee 6911bf9f56 docs(peripherals): explain where the MAVLink instance count comes from (#29895)
PX4-Autopilot#29573 let boards set the number of MAVLink instances, but
the MAVLink peripherals page didn't say how that number is set or what
limits it.

Assisted-by: Claude:claude-opus-5-5

Signed-off-by: Hamish Willee <hamishwillee@gmail.com>
2026-11-19 16:49:49 +11:00
abhijith 5d9263851e feat(mavlink): let boards set the number of MAVLink instances (#29573)
* feat(mavlink): make the MAV_x instance count a per-board Kconfig option

MAV_x_* params and rc.serial were fixed at 3, though up to 6 MAVLink
instances can run. CONFIG_MAVLINK_NUM_CONFIG_INSTANCES (default 3) sets it;
extra instances take instance 2's defaults.

Signed-off-by: abhijithcv <abhijithcv1212@gmail.com>

* feat(boards/agam): enable 5 MAVLink instances on the v6X-RT

Signed-off-by: abhijithcv <abhijithcv1212@gmail.com>

* docs(releases): add per-board MAVLink instance count to main release notes

Signed-off-by: abhijithcv <abhijithcv1212@gmail.com>

* fix(mavlink): share main's --board-config in the instance count generators

main already passes the boardconfig as --board-config to generate_params.py,
so the duplicate option failed every build after a rebase. Both generators now
read it through the shared load_board_config. Kconfig caps the count at 5,
or 3 on constrained-memory boards, leaving a channel for USB, and list
defaults keep their length check unless the count comes from Kconfig.

Signed-off-by: abhijithcv <abhijithcv1212@gmail.com>

---------

Signed-off-by: abhijithcv <abhijithcv1212@gmail.com>
2026-11-19 12:58:56 +13:00
PX4BuildBot 36572dfd1c docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-11-18 23:57:57 +00:00
Julian Oes 1c279adf75 docs(gps): add newer CubePilot GNSS modules and a Here4 page (#29861)
The docs only covered the discontinued Here2/Here+ and linked Here3
externally with a wrong receiver name. Add Here3+, Here4 and HerePro to
the RTK and DroneCAN lists, linking CubePilot's docs.

Add a Here4 page with what is needed to get it working on PX4: the one
CAN port the firmware supports, enabling the barometer (off by default
on the Here4), updating it from the SD card, and the mandatory
bootloader bulletin.

Assisted-by: Claude:claude-opus-5-5

Signed-off-by: Julian Oes <julian@oes.ch>
2026-11-19 12:51:02 +13:00
Julian Oes caf8944d5f docs(cubepilot): use CubePilot name and drop connector/standards note (#29828)
- Rename remaining Hex/HEX/ProfiCNC references to CubePilot, including
  page file names (old pages redirect).
- Use the CubePilot spelling consistently.
- Remove the note on the Cube Black page advising against it for
  standards and patent reasons.

Assisted-by: Claude:claude-opus-5-5
2026-11-19 12:51:01 +13:00
Matthias Grob c2875ad6a2 perf(nuttx): build the NuttX libraries with parallel make jobs
Each NuttX library and the apps are built by a make invocation that
ninja treats as a single opaque custom command, so they compiled one
file at a time.

Run them through a wrapper that honours a job count given to the
toplevel build (e.g. `make px4_fmu-v5x_default -j1`), which reaches it
through MAKEFLAGS, and otherwise uses the number of CPUs available to
the process. Unlike CMake's logical core count, nproc respects docker
--cpuset-cpus. A load limit keeps the concurrently running NuttX makes
from oversubscribing the host.

Mark the toplevel cmake build recipe as a sub-make with '+'. GNU make
before 4.4 (e.g. Ubuntu 22.04/24.04) passes its jobserver as pipe file
descriptors, which it otherwise closes for that recipe, leaving the
NuttX makes to fall back to serial builds.

Mention how to disable parallel builds in the docker docs.

Assisted-by: Claude Code (claude-opus-5-5)
2026-11-18 18:45:15 +01:00
Matthias Grob 6d43f6e807 docs(parameters): document the parameter member naming convention
The DEFINE_PARAMETERS example used member names that make check_format now rejects, and the convention itself was never written down.

Assisted-by: Claude:claude-opus-5-5
2026-11-18 18:40:12 +01:00
PX4BuildBot a1e336967d docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-11-18 15:26:14 +00:00
Jonas Perolini baa4742bad feat(vtol_att_control): detect pusher failures in multicopter mode (#29631)
Assisted-by: Codex
2026-11-18 16:18:48 +01:00
PX4BuildBot b65610b7bd docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-11-18 14:03:24 +00:00
PX4BuildBot 269554ad7c docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-11-18 12:59:45 +00:00
Marco Hauswirth 3bd1839a72 feat(ekf2): support up to two optical flow sensors 2026-11-18 13:52:41 +01:00
PX4BuildBot 9e34d7bba1 docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-11-18 10:13:41 +00:00
Matthias Grob eaff7221eb feat(failure_detector): pause the tilt check after a VTOL skips the back-transition
Replaying about 150 logs found false positives only on standard VTOLs
after a quad-chute, with the tilt error above 60° for up to 1.75 s
while recovering from fixed-wing flight in multicopter mode.

All VTOL types switch to multicopter without back-transition on a
quad-chute, detected or commanded, and when a front transition is
aborted. The check now pauses for 5 s after such a switch instead of
raising the threshold for all VTOLs, so it protects the rest of the
multicopter flight.
2026-11-18 11:02:27 +01:00
Matthias Grob b5e65cfbfd feat(airframes): keep the tilt failure check enabled on the omnicopter
The tilt check compares against the attitude setpoint, which the
omnicopter publishes and tracks at any orientation, including upside
down. Disabling the check is no longer needed for it to fly.
2026-11-18 11:02:27 +01:00
Matthias Grob fa877566a4 feat(failure_detector)!: rename the tilt parameters to FD_TILT_ERROR
The tilt check limits the error from the attitude setpoint, which the
FD_FAIL_R name no longer describes. FD_FAIL_R becomes FD_TILT_ERROR,
now a float, and FD_FAIL_R_TTRI becomes FD_TILT_ERROR_T.

The old roll and pitch limits and trigger times meant something else,
so they start at the new defaults instead of being taken over. Only a
check disabled for both roll and pitch stays disabled, as -1.
2026-11-18 11:02:27 +01:00
Matthias Grob 15abdd0946 feat(failure_detector)!: check tilt error against the attitude setpoint
Checking the absolute tilt from level conflicts with the vehicle's own
tilt limits: the threshold can be set below the maximum tilt, and
external modes that tilt further than the autopilot's limits trip the
check, so they can't benefit from its crash detection.

Compare the tilt with the attitude setpoint's tilt instead, falling back
to level without a recent setpoint, e.g. on rovers. Before arming the
setpoint is level, so a vehicle lying on its side still can't arm. The
tailsitter transition exception is no longer needed because the
transition setpoint is in the multicopter frame. The default trigger
time goes from 0.3 s to 1 s so that fixed-wing stick reversals, which
pass through a large error at a limited roll rate, don't trigger it.

Also reset the tilt hysteresis while attitude control is off, so a
pending trigger from before e.g. Acro can't skip the trigger time when
attitude control comes back on.
2026-11-18 11:02:27 +01:00
Matthias Grob 7f83c28400 feat(failure_detector)!: check tilt instead of roll and pitch separately
Checking roll and pitch against separate limits misses a combined
tilt: 45° roll with 45° pitch is a 60° tilt but stays below both
default 60° limits. Euler angles are also unreliable near 90° pitch
and when inverted.

FD_FAIL_R and FD_FAIL_R_TTRI now set the maximum tilt and its trigger
time. FD_FAIL_P and FD_FAIL_P_TTRI are removed without migration
(see the Upgrade Guide). The check is disabled with -1; 0 still
disables it for existing setups. In FailureDetectorStatus, fd_roll
and fd_pitch are replaced by fd_tilt.
2026-11-18 11:02:27 +01:00
PX4BuildBot 9db647d5d3 docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-11-18 09:12:00 +00:00
Jonas Perolini bab12fc267 fix(navigator): RTL type 6 keeps Home over a farther rally point (#29812)
When the battery estimate did not reach Home, type 6 took the closest
rally point even when it was farther away than Home. Return compares
destinations only by straight-line distance, so it has no reason to
prefer a rally point that is farther away than Home, and return.md says
type 6 falls back to Home unless a rally point is closer. Returns
started by the distance-aware battery failsafe hit this case.

Compare the rally points with the distance to Home, as type 6 already
does without a battery estimate.

Assisted-by: Claude:claude-opus-5-5

Signed-off-by: jonas <jonspero@me.com>
2026-11-18 10:05:33 +01:00
PX4BuildBot bd06ff372a docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-11-18 08:45:36 +00:00
Andrea BernasconiandAnil Kircaliali 70a735246f fix(failsafe): let GNSS loss recover during the Hold delay (#29814)
* fix(failsafe): allow GNSS loss to recover during the Hold delay

A GNSS failure that clears during the COM_FAIL_ACT_T Hold still latched
Return or Land, because COM_GNSSLOSS_ACT uses the OnModeChangeOrDisarm
clear condition. The vehicle then abandoned a mission it could have
continued.

If the failure clears while the vehicle is still holding, the action is
dropped and the user-intended mode continues, e.g. the mission resumes.
Once Return or Land has started, it stays latched as before. With
COM_FAIL_ACT_T=0 there is no Hold, so nothing changes.

Assisted-by: Claude:claude-opus-5-5

* fix(failsafe): restart the Hold delay after a failure clears during it

When a failsafe cleared during its Hold delay, the remaining delay kept
counting down. A new failure within that time did not reload it and only
got what was left, so it could Return almost without a Hold.

Reset the delay once no failsafe is pending, so that the next failure
gets the full COM_FAIL_ACT_T again. This applies to every failsafe.
Repeated failures still escalate: the start delay shrinks while a Hold
is active and refills at a quarter of that rate.

Assisted-by: Claude:claude-opus-5-5

* revert(failsafe): keep the remaining Hold delay after a failure clears

This reverts commit 5e9a8e8a14.

Restarting the delay for every new failure changed how a flapping
condition is handled, for every failsafe and not only GNSS. Without the
reset, a failure that comes back keeps the delay left over from the
previous one, so the action still fires on time. With it, only the start
delay escalation limits the flapping, which can take much longer, or
never fire if the condition is active less than a fifth of the time.

Keep the PR scoped to letting GNSS loss recover during the Hold.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Andrea Bernasconi <andrea.bernasconi@auterion.com>

* fix(failsafe): only clear GNSS loss during the Hold delay before Return starts

_current_delay is shared between failsafes. If another failsafe with a
delay is added on the same update as GNSS recovers, it re-arms the delay
and the GNSS Return or Land that was already running got removed.

Also require that the selected action is not beyond Hold yet.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Andrea Bernasconi <andrea.bernasconi@auterion.com>

---------

Signed-off-by: Andrea Bernasconi <andrea.bernasconi@auterion.com>
Co-authored-by: Anil Kircaliali <anil.kircaliali@auterion.com>
2026-11-18 09:38:57 +01:00