Commit Graph
10387 Commits
Author SHA1 Message Date
Thomas Watson df07de270d Tools/Replay: extend check_replay_branch.py for multiple vehicles
Allows vehicles other than Copter to have their own Replay tests.
Semantics are slightly wonky as the autotest program deletes logs at the
start of each given step, i.e. vehicle build or test.

Default to running all vehicles we have tests for now.
2026-02-16 09:16:01 -06:00
Thomas Watson 36eb2b0130 autotest: add Plane Replay test
Primary objective is to test EKF3 FuseSideslip as that is not testable
in Copter.
2026-02-16 09:16:01 -06:00
Peter Barker 655aea1cc8 Tools: add alt text to markdown images 2026-02-15 11:28:59 +11:00
Peter Barker fb10968347 Tools: fix trailing punctuation in markdown headers (MD026)
makes a lot of these headings consistent with other headings at the same level in these files!
2026-02-14 12:02:51 +11:00
Peter Barker 2d99a5ea64 Tools: correct us of emphasis in place of headings (MD036) 2026-02-13 11:13:01 +11:00
Peter Barker dd9cd85948 Tools: fix stray MD040 issues
the linter is somehow missing these
2026-02-13 11:13:01 +11:00
Peter Barker 0c8fc214ce Tools: add type to code blocks
required by the linter, and allows renderers to do syntax highlighting
2026-02-12 19:31:55 +11:00
Peter Barker 704da52a15 Tools: correct MD001 in all markdown files (incorrect header levels) 2026-02-12 10:18:06 +11:00
Peter Barker fe0520ad41 Tools: fix MD041 (single # header at top of file) in all markdown 2026-02-12 10:18:06 +11:00
Peter Barker 84dae06b3b autotest: stop moving logs on failure
tracking down the logs on test failure is just painful.

I've been setting the environment variable for a long time and it works well
2026-02-11 18:40:20 +11:00
Peter Barker b2abd2ffe6 autotest: do not move post-reboot logfile
when a test fails we can move the log files to a permanent storage location for later perusal.

However, we do this moving of log files after rebooting the autopilot.  If we are logging disarmed then we will be moving the currently open log file, which is not good.

This can kill random tests that try to get the most recently open log file by globbing the logs directory and then indexing by -1 - because the list can be empty!
2026-02-11 18:39:20 +11:00
Huibean 18ced5a5f2 AP_Periph: fix ACT param name 2026-02-11 11:51:50 +11:00
Thomas Watson 546880ccf7 ardupilotwaf: rerun mavgen if pymavlink sources change
If the C header files or the Python generator sources change, then this
causes the generator to rerun, fixed headers to get copied again, and
dependent files to be rebuilt.
2026-02-10 10:44:52 +11:00
Peter BarkerandClaude Opus 4.6 8fcdb9d15f Tools: fix MD003 inconsistent heading style
Convert setext heading to atx style.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 10:16:24 +11:00
Peter BarkerandClaude Opus 4.6 e3e0196779 Tools: fix MD004 inconsistent unordered list style
Standardize on dash (-) for all unordered list markers.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 09:30:32 +11:00
Peter Barker 7f8d0d3e45 .markdownlint-cli2.jsonc: re-enable bare-url-used check, MD034 2026-02-07 15:38:01 +11:00
Peter BarkerandClaude Opus 4.5 ce14341fa8 Tools: convert bare URLs to proper markdown links
Fix MD034/no-bare-urls lint errors by converting bare URLs to proper
markdown link syntax [text](url). Link text is derived from the URL:
- GitHub repos use the repository name
- ArduPilot ecosystem URLs use descriptive names
- Vendor/product URLs use the vendor name
- Documentation sites include "documentation" suffix

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-07 15:38:01 +11:00
Peter Barker 82bfe353cf Tools: fix MD025 (too few # in headings) in all markdown files 2026-02-07 07:36:26 +11:00
Andy Piper 2a26d3cf03 autotest: fix spelling 2026-02-05 14:24:44 -05:00
Randy Mackay b87c0d5059 Tools: copter and sub autotests delay 2 sec after setting origin
This gives more time for the AHRS update to consume the origin and output the global-position-int mavlink message
2026-02-05 14:24:44 -05:00
Randy Mackay 684209a20f Tools: Sub.BackupOrigin autotest uses AHRS_ORIGIN params 2026-02-05 14:24:44 -05:00
Randy Mackay 8baa1efa02 Tools: add AHRSOriginRecorded test 2026-02-05 14:24:44 -05:00
Andrew Tridgell fd6584ae19 Tools: CAN_playback add --nodes filter for DroneCAN source node
allows filtering playback to only send frames from specified DroneCAN
source nodes

also adds --messages, which filters playback to only send DroneCAN
message frames matching the specified 16 bit message IDs
2026-02-05 16:13:55 +11:00
Henry Wurzburg 4834caafa4 Tools: add ability to compute POI as a fallback without Terrain enabled 2026-02-04 22:55:57 +11:00
dakefpv 5074d00401 Tools: Add new bootloader DAKEFPVH743_SLIM 2026-02-04 18:38:51 +11:00
Leonard Hall e5fea2fc9c Autotest: Fix position control tuning for QuadPlane.ShipLanding 2026-02-04 18:38:37 +11:00
Rubén Pérez Alonso ea3fd52ab2 Tools: add nice fixed-wing locations near Madrid 2026-02-04 11:37:54 +11:00
Peter BarkerandClaude Opus 4.5 7ceb7c31c7 global: fix whitespace issues in markdown files
global: fix MD007 unordered list indentation in markdown files

Normalize unordered list indentation to use 2-space multiples:
- Top-level list items start at column 0
- Nested list items use 2 additional spaces per level

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

global: fix MD009 trailing whitespace in markdown files

Remove trailing whitespace from all affected markdown files.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

global: fix MD010 hard tabs in markdown files

Replace hard tab characters with 4 spaces.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

global: fix MD012 multiple consecutive blank lines in markdown

Collapse multiple consecutive blank lines to single blank lines
across all markdown files (excluding vendored code).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

global: fix MD007 list indentation base level in markdown

Shift list indentation left by 2 spaces so top-level list items
start at column 0 instead of column 2.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Tools/scripts: fix MD022 blank lines around headings in markdown

Ensure headings are surrounded by blank lines as required by
markdownlint MD022 rule.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Tools/scripts: fix MD032 blank lines around lists in markdown

Ensure lists are surrounded by blank lines as required by
markdownlint MD032 rule.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Tools/scripts: fix MD031 blank lines around code blocks in markdown

Ensure fenced code blocks are surrounded by blank lines as required
by markdownlint MD031 rule.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Tools/scripts: fix MD047 files should end with single newline

Ensure all markdown files end with exactly one newline character
as required by markdownlint MD047 rule.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Tools/scripts: fix MD023 headings must start at beginning of line

Remove leading whitespace from heading lines as required by
markdownlint MD023 rule.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Tools/scripts: fix MD007 remaining list indentation in markdown

Fix unordered list indentation to use correct spacing as required
by markdownlint MD007 rule.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Tools/scripts: fix MD030 spaces after list markers in markdown

Reduce multiple spaces after list markers to single space as
required by markdownlint MD030 rule.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Tools/scripts: fix MD022 blank lines around setext headings

Ensure setext-style headings (underlined with === or ---) are
surrounded by blank lines as required by markdownlint MD022 rule.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Tools/scripts: fix MD018 missing space after hash in headings

Add space after hash marks in atx-style headings as required by
markdownlint MD018 rule.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Tools/scripts: fix MD019 multiple spaces after hash in headings

Reduce multiple spaces after hash marks to single space in
atx-style headings as required by markdownlint MD019 rule.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Tools/scripts: fix MD012 multiple consecutive blank lines in markdown

Remove multiple consecutive blank lines and ensure files end with
exactly one newline as required by markdownlint MD012 rule.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Tools/scripts: fix MD023 headings with leading whitespace

Remove leading whitespace from setext-style heading text lines
as required by markdownlint MD023 rule.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Tools/scripts: fix MD022 blank line after heading in markdown

Add missing blank line after heading as required by markdownlint
MD022 rule.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Tools/scripts: fix MD009 trailing non-breaking space in markdown

Remove trailing non-breaking space (U+00A0) as required by
markdownlint MD009 rule.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Tools/scripts: fix MD012 remaining multiple blank lines in markdown

Remove leading blank lines and whitespace-only lines that create
multiple consecutive blank lines.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 11:37:38 +11:00
Peter Barker 31c444164e autotest: remove compatability code for mode_is
... also known as "stop trusting flightmode on the mavutil mav object"....
2026-02-03 11:11:44 +11:00
Peter Barker 65618e282f autotest: remove race condition from AdvancedFailsafe test
if we don't get ready to arm then we spew prearm failres rather than the string we want to see
2026-02-03 11:11:44 +11:00
Peter Barker d4ca3f5d40 autotest: remove race condition in TestRCCamera
the flat 10 second delay isn't enough if we get into the mode quickly
2026-02-03 11:11:44 +11:00
Peter Barker 30cb57c404 autotest: ignore messages not from our sysid when getting sim time
when we're running shipops (e.g.) we can get messages from things that are not in the same time domain as our main simulation; when we compare against times in get_sim_time_cached we end up comparing apples vs oranges as it *does* restricted to a specific system ID.
2026-02-03 11:11:44 +11:00
Peter Barker 3361e495f8 autotest: tidy checking not receiving LOG_ENTRY messages 2026-02-03 11:11:44 +11:00
Randy Mackay 3c5720158e Tools: ROS2 DDS test param update for LOIT_SPEED_MS 2026-02-02 18:23:43 -05:00
Randy Mackay 441d45513d Tools: Foxtech-Altair param update for LOIT parameters 2026-02-02 18:23:43 -05:00
Randy Mackay cba4cd34de Tools: XPlane-alia param update to use LOIT_SPEED_MS 2026-02-02 18:23:43 -05:00
Randy Mackay ee815160fe Tools: mugin frame update for LOIT parameters 2026-02-02 18:23:43 -05:00
Randy Mackay a8e7866624 Tools: Solo frame param update for LOIT_SPEED_MS 2026-02-02 18:23:43 -05:00
Randy Mackay 4b388d4e4a Tools: ModalAI frame param update for LOIT_SPEED_MS 2026-02-02 18:23:43 -05:00
Randy Mackay 1a433d1e40 Tools: autotest freestyle param update for LOIT_SPEED_MS 2026-02-02 18:23:43 -05:00
Randy Mackay 531dc0393a Tools: copter autotest update for LOIT_SPEED_MS 2026-02-02 18:23:43 -05:00
Thomas Watson 3b7558acb8 autotest: add Copter EKF Replay wind and airspeed subtest
Tests that fusion of wind estimation and airspeed data is correctly
replayed by the EKF. The test that wind estimation is working is already
handled by `BaroWindCorrection`.

Adding airspeed to Copter is easier than migrating everything to Plane.
Technically fusion of airspeed data is not supported on copters and the
`ARSPD_USE` parameter explicitly recommends against it. But it exists
and works, and this test includes a check that it has continued to work.
So if we break that later, the test will start to fail and we can decide
what to do.
2026-02-01 21:00:53 -06:00
Thomas Watson 4c4f426ecb autotest: reset throttle between Copter Replay tests
Some tests do throttle control and need it zeroed, and some others leave
it non-zeroed. Clear all the time for all tests for simplicity.
2026-02-01 21:00:53 -06:00
urlampranita 2e97b018a8 AP_Bootloader: add board ID for PilotGaeaSH7V1
Add board ID 1213 for PilotGaeaSH7V1 flight controller.

Board specifications:
- MCU: STM32H743
- Sensors: ICM42688P x2 (SPI), DPS310 (I2C)
- Target vehicles: Copter, Plane, Rover
- Usage: Commercial product

Fixes #32027
2026-02-02 08:12:26 +11:00
Peter Barker 4f4457d259 Tools: extract_features.py: correct extraction for GRF rangefinder
define and classname don't match
2026-01-30 13:01:31 +00:00
Peter Barker 39cce1eeef Tools: build_options.py: add Lightware GRF
apparently missed this when the driver was added
2026-01-30 13:01:31 +00:00
Peter Barker 378c29d657 Tools: build_options.py: add TFS20L 2026-01-30 13:01:10 +00:00
Peter Barker 25bdd6dffc Tools: add --symbols to size_compare_branches.py
just lists the symbols added or removed
2026-01-30 13:00:41 +00:00
Andy Piper aeacb3b6fd autotest: clean-up after PeriphMultiUARTTunnel correctly 2026-01-28 18:49:56 +11:00
Randy Mackay 9bdeecd703 Tools: freestyle model param update for ATC_ANGLE_MAX 2026-01-28 08:45:12 +11:00