Commit Graph

3670 Commits

Author SHA1 Message Date
Andrew Tridgell 27261639d7 autotest: added SpringValleyRoad location 2024-03-17 09:07:29 +11:00
Peter Barker d0bb0b729a autotest: remove special-case-for-reboot for Sub
we now instantiate AP_Stats so the boot count is available
2024-03-13 08:07:40 +09:00
Peter Barker a7d9209001 autotest: re-enable Dijkstra tests 2024-03-12 21:13:33 +11:00
Peter Barker f89bfff037 autotest: ensure latest log is timestamped, small and not growing
A fixed time this log is open for ensures we know what we are downloading.

We will not be keeping dataflash logs of the rest of this test after this PR as we leave LOG_DISARMED as it is.

Waiting for GPS ensures the file gets a timestamp, so MAVProxy's "log download latest" will return that log file.
2024-03-12 21:13:25 +11:00
Clyde McQueen e3af56eff5 Sub: test for ABOVE_TERRAIN frame 2024-03-11 13:38:38 -03:00
Peter Barker f6e7b9de5b Tools: move AC_Avoidance defines into libraries 2024-03-11 18:07:18 +11:00
Andrew Tridgell dc97899ce8 autotest: set SIM_SPEEDUP=1 for log download
this may make the test more reliable
2024-03-10 15:24:57 +11:00
Peter Barker 3ca6e29ad1 autotest: reimplement wait_location with new object-based approach
the existing wait_and_maintain method is problematic when it comes to waiting on different value types.
2024-03-07 09:41:57 +11:00
Peter Barker 690596580a autotest: show map, fence and rally when map is shown 2024-03-06 19:54:08 +11:00
Andrew Tridgell 6a67830556 autotest: added quadplane ShipLanding test 2024-03-06 09:39:51 +11:00
Andrew Tridgell de786932a6 autotest: added PrecisionLanding test 2024-03-06 09:39:51 +11:00
Andrew Tridgell e3df084b96 autotest: fixed SIM_PLD_HEIGHT for AUTO_LAND_TO_BRAKE 2024-03-06 09:39:51 +11:00
Andrew Tridgell 350215eb70 autotest: fixed got and want ordering in text wait 2024-03-06 09:39:51 +11:00
Iampete1 4a310fb207 Tools: autotest: Plane: add min throttle test 2024-03-05 11:38:28 +11:00
Peter Barker bae88512bf autotest: remove pointless try/except in SMART_RTL test 2024-02-28 22:26:28 +11:00
Andrew Tridgell 03910b8df4 Tools: run examples with SITL 2024-02-28 19:22:14 +11:00
Randy Mackay e1e7882b7b Tools: remove vicon params from whitelist 2024-02-28 18:52:37 +11:00
Peter Barker 9aa6193568 autotest: test new safety switch command 2024-02-27 21:10:39 +11:00
Peter Barker d92acaffce autotest: improve diagnostics around expected statustext 2024-02-23 20:13:29 +11:00
Peter Barker 21a01c5587 AP_GPS: remove dead GPS_MINDGPS variable 2024-02-22 14:41:29 +11:00
Peter Barker e72a39353e default_params: rename vee-gull parameters to remove space 2024-02-22 14:41:29 +11:00
Clyde McQueen f9db039dcc Sub: add SURFTRAK mode 2024-02-21 18:59:20 -03:00
Dr.-Ing. Amilcar do Carmo Lucas b6b4c972f9 Tools: Script to fetch online ArduPilot parameter documentation (if not cached) and
add it to the specified file or to all *.param and *.parm files in the specified directory.

1. Checks if a local cache of the XML file exists in the target directory or on the directory of the target file:
 - If it does, the script loads the file content.
 - If it doesn't, the script sends a GET request to the URL to fetch the XML data for the requested vehicle type.
2. Parses the XML data and creates a dictionary of parameter documentation.
3. DELETES all comments that start at the beginning of a line
4. Adds the parameter documentation to the target file or to all *.param,*.parm files in the target directory.

Supports AP_Periph, AntennaTracker, ArduCopter, ArduPlane, ArduSub, Blimp, Heli, Rover and SITL vehicle types
Supports both Mission Planner and MAVProxy file formats
Supports sorting the parameters
Has unit tests with 88% coverage

AP_FLAKE8_CLEAN

Author: Amilcar do Carmo Lucas, IAV GmbH

# Conflicts:
#	.github/workflows/test_unit_tests.yml
2024-02-22 08:31:57 +11:00
Dr.-Ing. Amilcar do Carmo Lucas 74640c9e65 Tools: Extracts parameter default values from an ArduPilot .bin file.
Supports Mission Planner, MAVProxy and QGCS file format output

Contains unittests with 95% coverage

Amilcar do Carmo Lucas, IAV GmbH
2024-02-21 18:24:16 +11:00
Peter Barker e4fc55f282 autotest: add test that tracker can use moving baseline yaw 2024-02-21 16:56:25 +11:00
Peter Barker 56a73dedae autotest: adjust tests for new GPS messages 2024-02-20 19:35:01 +11:00
Andrew Tridgell e9c59bf3ae autotest: fixed the 'X' frame 2024-02-19 14:30:13 +11:00
Andrew Tridgell 1d08662c72 autotest: fixed parameters for tilt quadplanes
and enable autotest of the disabled tilt quadplane frames
2024-02-18 16:28:43 +11:00
Richard Marko 04b46678a4 treewide: fix shebangs - /bin/bash -> /usr/bin/env bash
Most scripts/tools use non-portable `/bin/bash`, switch
to environment agnostic `/usr/bin/env bash`.
2024-02-13 11:36:23 +11:00
Peter Barker e59d432281 autotest: change default board for test_build_options
rather more rpresentative of what people are likely to compile for
2024-02-11 11:04:38 +11:00
Peter Barker 81f2e15f8b Tools: add Gundaroo oval testing location 2024-02-10 20:56:09 +11:00
Peter Barker 0eb73c1db2 autotest: only check for PitotBlockage once vehicle is loitering
vehicle should be a in a steady state before we make the ratio change to synthesise a pitot blockage.

Otherwise, changes to the shape of the takeoff will affect the heuristics used to detect pitot blockage.
2024-02-10 20:56:00 +11:00
Peter Barker ecae3a462c Tools: param_parse.py: correct extraction of enum class in nested classes
It was putting AP_HAL::AnalogIn::PowerStatusFlag in AP_HAL::AnalogIn
2024-02-06 11:13:14 +11:00
Peter Barker d4cbb54e35 autotest: tidy setting of board type
splitting the string isn't pretty - just set two variables.
2024-01-24 18:42:18 +11:00
J.R. Bronkar 3a3f4ea446 autotest: Fractional Loiter Turn Test 2024-01-22 20:27:20 -08:00
Andrew Tridgell 1341abc6b4 Tools: fixed name of pitch limit parameters 2024-01-23 15:00:30 +11:00
Andrew Tridgell 7de56d434c Tools: fixed parameter names 2024-01-23 15:00:30 +11:00
Andrew Tridgell eb492bd0aa autotest: fixed quadplane test 2024-01-23 15:00:30 +11:00
Andrew Tridgell af420746ee Tools: param file TRIM_PITCH_DEG to PTCH_TRIM_DEG 2024-01-23 15:00:30 +11:00
Andrew Tridgell 2f5cb42030 Tools: convert param files for LAND_PITCH_DEG 2024-01-23 15:00:30 +11:00
Andrew Tridgell 7a57ac640f Tools: convert param files LIM_ROLL_CD -> ROLL_LIMIT_DEG 2024-01-23 15:00:30 +11:00
Andrew Tridgell badf8fabdd Tools: convert param files for pitch limits 2024-01-23 15:00:30 +11:00
Andrew Tridgell a06b2d7328 Tools: param rename for CRUISE_ALT_FLOOR 2024-01-23 15:00:30 +11:00
Andrew Tridgell e0cd06cc83 Tools: fixed name of TRIM_PITCH_DEG 2024-01-23 15:00:30 +11:00
Andrew Tridgell 286f6887bd Tools: convert ALT_HOLD_RTL and ALT_HOLD_FBWCM 2024-01-23 15:00:30 +11:00
Andrew Tridgell 863f25e645 Tools: convert ARSPD_FBW_MIN/MAX to AIRSPEED_MIN and AIRSPEED_MAX 2024-01-23 15:00:30 +11:00
Andrew Tridgell 4fea71246d Tools: change TRIM_ARSPD_CM to AIRSPEED_CRUISE 2024-01-23 15:00:30 +11:00
Tim Tuxworth afc093a9b2 autotest: change default params from TRIM_PITCH_CD to TRIM_PITCH_DEG 2024-01-23 15:00:30 +11:00
Simon Hancock 098a53e318 Tools: Updates to log message units and help text
parse.py: Remove lone bullet points rendered on replay messages
enum_parse.py: Tweak regex on enum parser to handle comments like: "FRED = 10, ///< text"
2024-01-21 14:26:54 +11:00
Peter Barker a1fe322f46 Tools: param_parse.py: stop emitting field text in JSON output 2024-01-17 18:33:25 +11:00