Commit Graph

6415 Commits

Author SHA1 Message Date
Peter Barker d84808b434 autotest: improve diagnostic output from Replay test 2021-11-30 10:19:20 +11:00
Peter Barker b9a472f47f Tools: check_replay.py: improve diagnostics upon failure 2021-11-30 10:19:20 +11:00
Iampete1 f52fb3148b Tools: autotest: common and arducopter: use new compass params 2021-11-30 08:14:43 +09:00
Iampete1 bf335b11ed Tools: autotest: defaults: use new compass params 2021-11-30 08:14:43 +09:00
Iampete1 b9c14b6cac Tools: loganalyzer: use new compass params 2021-11-30 08:14:43 +09:00
Iampete1 11db1aaa40 Replay: remove compass params underscore 2021-11-30 08:14:43 +09:00
Iampete1 7c116c84c6 Periph: remove compass params underscore 2021-11-30 08:14:43 +09:00
Peter Barker 746d9fda8d autotest: add --callgrind option 2021-11-29 20:46:02 +11:00
Peter Barker ad4b934b3c autotest: correct MAVFTP test for autotest server
The autotest server runs autotest.py from a directory one-up from the
ArduPilot root directory, whereas most people run it from the root
directory.  The test wasn't taking that into account, looking for a
directory which doesn't necessarily exist.

Changed to os.listdir() to find a directory to look for in the MAVFTP
output.
2021-11-29 20:44:47 +11:00
Peter Barker 7afb472244 autotest: reboot after resetting parameters for ekf lane switchtest 2021-11-29 15:30:00 +11:00
Peter Barker b4b267be67 autotest: clarify parameter download test output 2021-11-29 15:10:10 +11:00
Peter Barker 0c0c70d50e autotest: wait a long time for GPS health in HIGH_LATENCY2
We're assuming this is healthy before running the tests.  Most of the time it was, but running under Valgrind it wasn't
2021-11-29 15:10:10 +11:00
Peter Barker 48c6239851 autotest: correct resetting of commandline under Valgrind 2021-11-29 15:10:10 +11:00
Peter Barker b2f00d469e autotest: use set_parameters some more 2021-11-26 18:30:13 +11:00
Nick Exton 5f74333559 waf: only enable -Wsizeof-pointer-div for gcc v8.4 or greater
The -Wsizeof-pointer-div option doesn't exist in gcc v7.5, which is the
version used by Ubuntu 18.04 LTS. It does exist in v8.4.
2021-11-26 11:46:04 +11:00
Peter Barker 09f06be17e autotest: add an autotest for DO_PAUSE_CONTINUE 2021-11-25 08:18:27 +09:00
bugobliterator e7ab56674b Tools:libcanard moved to modules/DroneCAN 2021-11-24 18:30:47 +11:00
bugobliterator f74690af49 AP_Periph:libcanard moved to modules/DroneCAN 2021-11-24 18:30:47 +11:00
bugobliterator c3be9f9eb3 AP_Bootloader: libcanard moved to modules/DroneCAN 2021-11-24 18:30:47 +11:00
bugobliterator 4e067a68e2 AP_Periph: move to using dronecan instead of uavcan 2021-11-24 18:30:47 +11:00
Peter Barker a93da420c8 waf: make maybe-uninitialised and duplicated-cond errors 2021-11-24 18:26:17 +11:00
Peter Barker a2961ede8f waf: add -Wsizeof-pointer-div 2021-11-24 18:26:17 +11:00
Samuel Tabor 7931b10baf autotest: Fix rangefinder in Landing-Drift test. 2021-11-24 18:14:26 +11:00
Peter Barker a7aa74ab20 autotest: add rangefinder convenience functions, fix wait_alt handling
autotest: add test for rangefinders outside their maxalt
2021-11-23 18:20:58 +11:00
Peter Barker 2904036013 autotest: fetch tasks.txt twice
Collection isn't instantaneous
2021-11-23 18:17:42 +11:00
Shiv Tyagi 7237e346d8 Tools: autotest: add defaults file for broken copter frames
This adds default files for copter frames which were broken because of missing defaults
2021-11-23 15:52:25 +09:00
Peter Barker c99a49eeb9 autotest: add test that we continue to get simulated vehicles from SIM_ADSB 2021-11-23 11:09:29 +11:00
Andrew Tridgell b05a3fc950 Tools: support up to 9 UARTs 2021-11-22 22:48:59 +11:00
Randy Mackay b9099f7b88 Tools: sim_vehicle supports motorboat frame
also add motorboat param file to enable waves and tide
2021-11-20 08:58:12 +09:00
Peter Barker 5025056f4e autotest: fix MSP_DJI test for Py2 2021-11-20 09:37:02 +11:00
Andrew Tridgell 821a041cbe Tools: fixed cygwin build for rover
try to fix singleton depenency in scripting
2021-11-19 20:40:30 +09:00
Peter Barker 492104f9f2 Tools: uploader.py: add Swift-Flyer to usb device strings 2021-11-18 15:22:42 +11:00
Peter Barker 477528bd93 Tools: build_binaries.py: split timing out for configure/build steps 2021-11-18 11:54:37 +11:00
Peter Barker 9a47a85c0d autotest: augment PerfInfo test 2021-11-17 19:00:04 +11:00
Peter Barker b42432ea3e autotest: add trivial test for MSP 2021-11-17 12:06:07 +11:00
Josh Henderson bc9ab66348 Tools: size_compare Change elfdiff_output rectory 2021-11-16 17:13:51 +11:00
TunaLobster f89a7a3c63 Tools: Upate iofirmware_high/lowpolh.bin 2021-11-16 14:12:43 +11:00
TunaLobster 88489ba240 Tools: fix ADC scaling on IOMCU 2021-11-16 14:12:43 +11:00
MallikarjunSE bca7f519c2 Tools: reserve board id for sierra-F405 2021-11-16 12:53:00 +11:00
Shiv Tyagi 5811a62bc6 Tools: add autotest for DEVO telemetry
This adds an autotest to test if we receive data with devo telemetry correctly.
2021-11-16 11:37:10 +11:00
Peter Barker 8ae1a58eae Tools: move from ENABLE_SCRIPTING to AP_SCRIPTING_ENABLED 2021-11-15 20:27:40 +11:00
Peter Barker 32374d1614 Tools: ensure ENABLE_SCRIPTING is always defined 2021-11-15 20:27:40 +11:00
Peter Barker b83cf3a431 waf: ensure ENABLE_SCRIPTING is always defined 2021-11-15 20:27:40 +11:00
Peter Barker 873e04195f autotest: add test for QuadPlane transition states 2021-11-15 07:21:27 +11:00
Peter Barker 75b9a3ff77 autotest: add test for PerfInfo tasks.txt info 2021-11-14 20:43:30 +11:00
Peter Barker ad32f8d6d2 autotest: allow building of blimp in autotest 2021-11-14 18:35:06 +11:00
Shiv Tyagi 0cae113521 autotest: reset RNGFNDx_TYPE in rangefinder driver test
We should reset RNGFNDx_TYPE after we finish testing a set of rangefinder drivers to avoid failing successive tests.
Also, we now fail prearm checks if we receive no data from RF, we need to continuously send DISTANCE_SENSOR messages through mavlink to pass those checks while trying to arm.

Co-Authored-By: Peter Barker <7077857+peterbarker@users.noreply.github.com>
2021-11-13 09:47:39 +09:00
Andy Piper 9da11cd31d autotest: set SMAX during autotune test 2021-11-11 08:13:23 +09:00
Peter Barker 756e45cda2 autotest: add get_stacktrace method 2021-11-11 10:06:47 +11:00
Bill Geyer 4f053bb7d5 Tools: set new parameters for autotest 2021-11-10 16:45:17 -05:00
Peter Barker 69d86e6896 autotest: turn draining_mav off when doing early-exit for being quiet 2021-11-11 07:23:09 +11:00
Andrew Tridgell 78050be6f3 Tools: update CubeOrange bootloader 2021-11-10 18:10:20 +11:00
Peter Barker 548e8aef2a Tools: run BalanceBot and SailBoat tests as part of coverage 2021-11-10 09:34:05 +11:00
Peter Barker 4bea052692 Tools: check tests actually succeeded
Without this we can get a false impression of how much is being covered

It does mean all your tests have to pass...
2021-11-10 09:34:05 +11:00
Andrew Tridgell be2e75f8db Tools: added AIRLink bootloader 2021-11-10 08:47:21 +11:00
Andrew Tridgell 5b3dc03cf6 Tools: auto-build AIRLink board 2021-11-10 08:47:21 +11:00
andypnz e929561635 Tools: added my locations to locations.txt 2021-11-10 08:45:18 +11:00
Peter Barker 2dd392ec4b autotest: read pexpects while waiting for sim time
If we do not drain pexpects regularly the ardupilot process can become blocked on terminal IO
2021-11-07 09:59:12 +11:00
Peter Barker bb973ac913 autotest: print content of sitl /proc/PID/status on death
Mysterious death ofi Copter in CI - add more debug
2021-11-06 17:22:52 +11:00
Peter Barker f86b2c1051 autotest: add sanity check that sim time is updating 2021-11-06 17:22:52 +11:00
Randy Mackay 3b34087977 Tools: DeSET mapping boat default parameters
This frame will be added as a reference frame to the wiki
2021-11-05 22:42:12 +09:00
Peter Barker b6293acbce autotest: tweak how we make gps bad in fallback test 2021-11-05 23:18:11 +11:00
Andrew Tridgell f0a4e6e55b Tools: added Pixhawk5X bootloader 2021-11-05 14:30:43 +11:00
Andrew Tridgell 8a6a47aa3f Tools: autobuild Pixhawk5X 2021-11-05 14:30:43 +11:00
Andrew Tridgell dfd2686878 Tools: fixed uploader.py for px4 bootloader
by fetching ext flash info before we get IDs the bootloader is left in
a state where it accepts an erase and upload
2021-11-05 14:30:43 +11:00
Andrew Tridgell 350de066a5 Tools: recognise Auterion bootloader string 2021-11-05 14:30:43 +11:00
Peter Barker 8de7261c67 autotest: sim_vehicle.py: add --auto-offset-line
Simplifies spawning multiple instances.
2021-11-04 17:01:09 -07:00
Peter Barker e7b30a0085 sim_vehicle.py: correct setting of udpclient ports 2021-11-04 17:01:09 -07:00
Peter Barker 856fe6a1fb autotest: sim_vehicle: neaten sanity check for sysid 2021-11-04 17:01:09 -07:00
Peter Barker 4d5411b42f autotest: sim_vehicle: correct AP commandline for multicast/udpclient 2021-11-04 17:01:09 -07:00
Michael Day 93e6c1a920 Tools: sysid cannot be run together with auto-sysid
Added per @peterbarker suggestion
Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
2021-11-04 17:01:09 -07:00
Arash Negahdar d065515b2a Tools: Use a single MAVProxy instance in sim_vehicle
With the implementation of the 'alllinks' command in MAVProxy, and the
exposure of the SYSID parameter this becomes feasible

        Tools: Fix mcast handling
2021-11-04 17:01:09 -07:00
Arash Negahdar 49af90a70e Tools: Set SYSID based on instance number in sim_vehicle.py 2021-11-04 17:01:09 -07:00
Peter Barker 56dda4c07f autotest: fix race condition in Rover gcs mission test 2021-11-05 09:07:19 +11:00
Josh Henderson 32e628f267 Tools: size_compare_branches.py add -vehicle option 2021-11-04 19:57:27 +11:00
Buzz 854266dc78 ESP32: drop submodule and add script to get it as a clone and/or submodule
works with either a submodule setup or a 'clone' for either type of dev
2021-11-03 06:06:15 +11:00
Peter Barker d0872abdf9 autotest: FETtec tests: give vehicle a chance to realise ESCs are dead
Should remove the race condition where we disable an ESC but the vehicle
doesn't realise and lets the vehicle arm.

Also, waiting this long causes the ESCs to just go missing, not give a
telemetry failure
2021-11-02 09:39:17 +11:00
Buzz 228fafeffe Tools: add esp32 support
see libraries/AP_HAL_ESP32/README.md for more.

Author: Charles Villard <charlesvillard10@gmail.com>
Author: Buzz <davidbuzz@gmail.com>
2021-11-01 17:40:31 +11:00
bugobliterator c6cacee960 Tools: update readme to include Hardfault debugging steps 2021-10-30 20:30:14 +11:00
bugobliterator 1a996aa6f9 Tools: fix crash logging using gdb dump 2021-10-30 19:24:57 +11:00
bugobliterator 6adfcd4957 waf: disable building CrashCatcher for non 2M boards 2021-10-30 19:24:57 +11:00
bugobliterator 94cb546ff0 Tools: add support for parsing crash dumps directly 2021-10-30 19:24:57 +11:00
bugobliterator eee7e6cadf waf: add defines for use in CrashCatcher Flash dump 2021-10-30 19:24:57 +11:00
bugobliterator 06725ed68a Tools: add crash_debugger script to fetch and parse HardFault crashes 2021-10-30 19:24:57 +11:00
bugobliterator c5dd02fb2b waf: compile in crash catcher library 2021-10-30 19:24:57 +11:00
Andy Piper 7daa276769 waf: stricter lua bindings build processing 2021-10-28 07:19:16 +11:00
Andrew Tridgell 8f591a853b Tools: run submodule fix 3 times 2021-10-27 06:24:41 +11:00
Andrew Tridgell e94fdac91f Tools: rename uLanding simulation to USD1 2021-10-26 15:31:12 +11:00
Peter Barker 76859c8386 Tools: add option to configure-all to write all hw configs out 2021-10-26 15:28:19 +11:00
Andy Piper 6672577f6e waf: make sure APM_BUILD_DIRECTORY is defined for APM_BUILD_COPTER_OR_HELI and lua 2021-10-26 11:42:12 +11:00
Iampete1 bc7c5c24da Tools: autotest: quadplane: reboot for tailsitters and allow longer time for disarm 2021-10-26 10:03:00 +11:00
IamPete1 1e09e79617 Tools: autotest: add copter tailsitter and params 2021-10-26 10:03:00 +11:00
Peter Barker 7f125312f3 autotest: disable flapping GroundEffectCompensation_takeOffExpected test
This test is flapping.  More often now.
2021-10-25 14:09:22 +11:00
Andrew Tridgell 8f90d6f83f git: added a easy script for fixing submodule issues
this fixes the DSDL DroneCAN issue. Run
Tools/gittools/submodule-sync.sh
2021-10-23 21:32:48 +11:00
Andrew Tridgell a50120cec3 CAN: switched to DroneCAN DSDL and libuavcan 2021-10-23 21:13:07 +11:00
Peter Barker 754192ff26 autotest: improve gps-for-yaw test
There are flag values in the mavlink definitions for this message, so
make sure we get something approaching the right number.
2021-10-21 12:09:21 +11:00
Peter Barker 5cf62e8fb3 autotest: tweak soaring test SOAR_VSPEED
This is right on the edge on master
2021-10-21 12:09:21 +11:00
Peter Barker b9a4902aa6 autotest: let system settle before annoying
Also fly in circles to avoid long flight home
2021-10-21 12:09:21 +11:00
Peter Barker fda0d16475 autotest: correct loiter-requires-position test for new SIM_GPS simulation
sitl_gps was sending out ubx packets even if the device was supposed to
be absent, allowing the EKF to get a lag and thus allocate its buffers.

The new sim doesn't do that, so we do need to direct the EKF to not use
the GPS.
2021-10-21 12:09:21 +11:00
Peter Barker 99126d3cc7 autotest: add autotest for getting yaw from moving-baseline GPS setup 2021-10-21 08:34:36 +11:00