Commit Graph
10087 Commits
Author SHA1 Message Date
Leonard Hall 4864398a30 autotest: Fix QAUTOTUNE test 2025-10-27 19:15:22 -05:00
Peter Barker aeb5c0dea8 autotest: test pilot input is ignore in RTL when RTL_OPTION bit 2 set 2025-10-28 08:48:39 +09:00
Erkan Vatan 871abcf15a Tools: add t3-gem-o1 board 2025-10-27 18:43:16 -05:00
Peter Barker 71e9765a65 AP_Bootloader: correct compilation when BOOTLOADER_DEV_LIST is empty 2025-10-27 20:12:50 +11:00
Peter Barker 76a39dc4df Tools: fix flake8 B008 errors, methods-in-function-definitions
e.g.

./Tools/scripts/param_check_all.py:180:40: B008 Do not perform function calls in argument defaults.  The call is performed only once at function definition time. All calls to your function will reuse the result of that definition-time function call.  If this is intended, assign the function call to a module-level variable and use that variable as a default value.
2025-10-27 11:18:20 +11:00
Peter Barker 6f7ec32535 autotest: remove Python2 compatability code 2025-10-26 18:14:51 -05:00
Karthik Arumugham 18e39549a5 AP_Bootloader: Add YARI_GNSS Board ID 2025-10-25 21:04:57 +11:00
Bob Long cf8650a390 AP_Periph: fix baud param documentation
In AP_Periph, these parameters use exact baud values, not the kbaud map
that the flight control firmware uses. Changed the @Values to reflect
this, added @Range, and @CopyFieldsFrom to the
later parameters.
2025-10-23 08:13:22 +11:00
jobs cbae6ad7fd bootloaders: add NarinFC-X3 flight controller 2025-10-22 21:49:21 +11:00
Iampete1 8da0429e0a Tools: autotest: param_metadata: check values and increments are numbers 2025-10-22 19:50:16 +11:00
Tom Pittenger 0e1d38e828 bootloader: FlysparkF4 binary 2025-10-22 18:34:32 +11:00
Peter Barker 4ae0e0d551 waf: remove stale include path
we've removed all of the .h files that were in here, so git is now pruning the directory, causing some breakage
2025-10-22 18:30:51 +11:00
Peter Barker 75dab3734c Tools: remove concept of board subtype for esp32 2025-10-22 18:30:51 +11:00
Iampete1 969eba1bd1 Tools: autotest: param parse: check values and ranges don't contradict one another 2025-10-22 18:04:11 +11:00
Peter Barker 730eafcf65 SITL: update rangefinder API to use metres for packet_for_alt
allows for better precision for mm-capable devices

allows for higher altitudes than 655.35 metres
2025-10-20 19:02:49 -05:00
rishabsingh3003 67fe7d928d AP_Periph: Include AP_LightWareSerial library 2025-10-21 10:28:32 +11:00
rishabsingh3003 ac64dfdf3d ardupilotwaf: add AP_LightWareSerial library 2025-10-21 10:28:32 +11:00
Thomas Watson dd4f6a4257 ardupilotwaf: mark hwdef.py generated files as cfg_files
This causes waf to not delete the generated files from the configure
step during `./waf clean`. Also causes waf to throw an error and prompt
the user to reconfigure if the files are in fact missing. This means we
don't need to rerun generation if the output is missing.

This also adds all generated files as waf nodes, allowing them to be
used as implicit dependencies. This fixes an issue with ESP32 and
(presumably) Linux where changing the hwdef.dat and reconfiguring (to
regenerate the hwdef.dat) did not trigger any rebuilds.
2025-10-20 22:31:44 +11:00
rishabsingh3003 f182ff5921 autotest: Use SITL height for TethStuck Test 2025-10-19 18:12:22 +11:00
Peter Barker 5554bb8d93 autotest: add test for PARAM_ERROR message 2025-10-18 11:50:33 +11:00
Andy Piper d801b2cd6a scripts: add support for AP_CPU_IDLE_STATS_ENABLED as a feature 2025-10-16 06:20:54 +11:00
Andrew Tridgell 986c418dda Tools: tidy up old unused build
unused
2025-10-14 09:14:13 -05:00
Thomas Watson 8110de1909 autotest: add more success cases to AUTOTUNE test
We keep threatening to do it but haven't done it. Add one roll value
seen in CI and one pitch value seen on a local machine.

Now that we do it and the times are marked, we can track if this gets
worse or if it's the same values each time.
2025-10-13 23:11:52 -05:00
Peter Barker c447287369 autotest: add two more tests to compass reordering test 2025-10-14 14:48:58 +11:00
Peter Barker 3df554718e autotest: tidy compass-reordering test 2025-10-14 14:48:58 +11:00
Peter Barker 93781990f7 autotest: add test for gripper taying neutral at boot 2025-10-13 21:56:10 -05:00
Peter Barker 7a4ee4297b Tools: extract_features.py: correct extraction symbol for AP_Vehicle Lua bindings 2025-10-14 10:53:33 +09:00
Thomas Watson a965ebc339 autotest: add timing margin to EKF deadreckoning state checks
The EKF takes almost exactly 10 (simulated) seconds to deassert flag 16
(POS_HORIZ_ABS) after jamming starts, then 15 to reassert it after it
stops. The test timings leave basically no margin for error and recently
the flag is sometimes asserted a few hundred milliseconds late according
to the test suite.

Fix by increasing the allowed times arbitrarily by 30%, assuming there
is no need for such exact timing. Though the deassertion has not been
seen to fail yet, also give it some more margin to avoid a future
failure. Checked that the 10 second deassertion and 15 second
reassertion still hold. Confirmed also that the timings are the same in
4.6, suggesting an actual regression is unlikely.
2025-10-14 08:57:59 +11:00
Thomas Watson 70c704489f ardupilotwaf: avoid redundant esp32 configure 2025-10-13 10:34:33 -05:00
Randy Mackay 100edde289 Tools: siyi image download supports 9999 files 2025-10-11 13:12:48 -05:00
Peter Barker 69a514b4aa autotest: add test for set_alt_m binding 2025-10-11 12:39:41 -05:00
Andy Piper 4561adf467 bootloaders: add TBS_LUCID_H7_WING_AIO 2025-10-10 10:07:45 +01:00
Andy Piper e5e8afe9cd AP_Bootloader: add TBS Lucid H7 Wing AIO 2025-10-10 10:07:45 +01:00
juvinski fc0aee4632 Tools: Add PocketBeagle2 PRU code
The makefile now compile the RcAioPRUPB2.p to RcAioPRU_POCKET2_bin.h.
This code (h) fileis loaded and run in the PRU for RCInput and RCOutput
- Should have the TI's pasm utility to work
2025-10-09 22:34:20 +11:00
Andy Piper 4331c1534f AP_Periph: allow continuous update to work with airspeed sensors 2025-10-09 11:13:10 +11:00
Peter Barker cd93771487 Tools: add and use mavlink_channel_mask_t 2025-10-09 10:48:30 +11:00
Tim Tuxworth 87475e32ba Tools: plane_follow.lua applet 2025-10-07 11:48:50 +11:00
Peter Barker d480c21f04 autotest: correct tests for RANGEFINDER going away 2025-10-07 10:51:33 +11:00
Iampete1 33631df2e7 Tools: autotest: vehicle_test_suite: change from SIGSTOP to SIGTSTP except cygwin 2025-10-06 10:34:41 +11:00
Thomas Watson 1d92d6f228 ardupilotwaf: simplify and unify hwdef generator exception handling 2025-10-06 08:02:36 +11:00
Thomas Watson 254faad89c Tools: don't generate no-longer-used env.py 2025-10-06 08:02:36 +11:00
Thomas Watson 3b5a28811d ardupilotwaf: load hwdef generated environment directly
Avoid the need to go through `env.py`. Also adjust comments on the
relevant functions as this is all they could have been used for for a
long time now, as the file is overwritten each time the generator runs.
2025-10-06 08:02:36 +11:00
Thomas Watson ea8f817aff ardupilotwaf/chibios: call hwdef generator directly
Avoids time and complexity of a subprocess and matches esp32 and linux.
2025-10-06 08:02:36 +11:00
Thomas Watson 1823d6dff5 ardupilotwaf: only rerun hwdef generation during pre_build
Running it during the build just wastes time as it is already checked
for and rerun if necessary during pre_build. For Linux and ESP32 the
build run was stubbed out (`rule=""`) anyway.

Also allows de-environmentification of `BOOTLOADER_OPTION` as that was
only ever used during the unnecessary and now deleted build run.
2025-10-06 08:02:36 +11:00
Thomas Watson ca038868ff ardupilotwaf: don't reload hwdef env vars during pre_build
These are already loaded right after the initial generation, and waf
ensures `cfg.env` persists to `bld.env`, so loading them again just
mixes the values in again for little effect.
2025-10-06 08:02:36 +11:00
Peter Barker 4f7fab3e4f autotest: correct end-of-test issues woth ParamSet test
Avoids trying to set parameters when we're popping the context which sets PARAM_SET_ENABLE to its default value of enabled.  This can cause permission problems. We need the script to be actuve when we pop the context so we can set the parameter at all, so we can't disable scripting or remove the script and restart.

During the infrastructure context pop:

2025-09-30T12:12:45.8005072Z AT-0151.7: PARAM_SET_ENABLE want=1.000000 autopilot=1.0 (attempt=4/40)
2025-09-30T12:12:45.8005691Z AT-0151.7: PARAM_SET_ENABLE is now 1.000000
2025-09-30T12:12:45.8006179Z AT-0151.7: DISARM_DELAY want=10.000000 autopilot=111.0 (attempt=4/40)
2025-09-30T12:12:45.8006714Z AT-0151.7: Sending set (DISARM_DELAY) to (10.000000) (old=111.000000)
2025-09-30T12:12:45.8007217Z AT-0151.7: Received wanted PARAM_VALUE DISARM_DELAY=111.000000
2025-09-30T12:12:45.8007737Z AT-0151.7: DISARM_DELAY want=10.000000 autopilot=111.0 (attempt=5/40)
2025-09-30T12:12:45.8008269Z AT-0151.7: Sending set (DISARM_DELAY) to (10.000000) (old=111.000000)
2025-09-30T12:12:45.8008937Z AT-0151.7: Received wanted PARAM_VALUE DISARM_DELAY=111.000000
2025-10-05 10:36:07 -05:00
Simon Hancock e2aab27d3e autotest: Ensure log message fields are in the correct order
Exit with code 1 if a mismatch error found to fail CI
2025-10-02 08:35:51 +10:00
Peter Barker 26ac908b70 Tools: add define so user can omit AP_Vehicle bindings 2025-10-01 18:05:38 +10:00
Peter Barker 2e57f4d27f Tools: add define so user can omit AP_Motors bindings 2025-10-01 18:05:38 +10:00
Peter Barker 5edf3b15f2 Tools: add ability for sim-on-hardware to use Simulink 2025-10-01 17:30:40 +10:00