Commit Graph

189 Commits

Author SHA1 Message Date
Peter Barker eec8823eb9 autotest: add test for storing many fence items on SD card 2024-11-25 11:37:38 +11:00
Peter Barker 7b64263562 Tools: add ability to simulate more than 2 GPSs 2024-11-20 15:07:45 +11:00
Peter Barker 5ab9cda206 autotest: add autotest for invalid battery backend checks 2024-10-01 09:48:13 +10:00
Andrew Tridgell bcf19b6d0d Tools: adjust usage of --enable for uppercase names 2024-09-11 16:11:22 +10:00
Peter Barker b89256bec4 autotest: add test that jamming simulator works 2024-08-27 11:14:09 +10:00
Peter Barker 21f6e5da71 autotest: augment ClearMission to test clearing from current uploader
in the same way that we allow a link to re-start an upload by sending mission_count, allow a GCS to clear a mission and cancel current upload if it was the one doing the transfer
2024-08-20 20:46:41 +10:00
Peter Barker 8e77f859e0 autotest: add test for mission_clear_all message 2024-08-19 19:51:33 +10:00
Henry Wurzburg 9311344f4b Tools: correct prearm message 2024-07-31 17:01:07 +10:00
Thomas Watson c797baa37b autotest: add test for require() after rescheduling
It can end up broken due to incorrect assumptions about the executed
function's upvalues, which might change after rescheduling.
2024-07-30 10:33:56 +10:00
Peter Barker b358c503fb autotest: add test for detection of duplicate AuxSw values 2024-07-30 10:28:42 +10:00
Peter Barker f2ec97e4c7 autotest: correct Rover RangeFinder test
for reasons I can't fathom, defaulting the rangefinder state causes problems with the vehicle orientation in SITL - probably a state update fix somewhere.

This test was kind of broken anyway - the RangeFinder was pointing latterally out from the vehicle, but is displayed forward of the vehicle (ther RANGEFINDER mavlink message conveys no orientation information)
2024-07-30 08:42:42 +10:00
Peter Barker f60ecbfe4e autotest: disable PolyFenceObjectAvoidanceBendyRuler as it is unreliable ATM 2024-07-29 20:58:39 +10:00
Peter Barker 2245399ff9 autotest: tidy Rover autotests
autotest: tidy WheelEncoders test

autotest: rover: tidy PolyFenceObjectAvoidance code

autotest: add load_fence_using_mavwp

Also corrects the mission item types being returned by the mission-item-to-misison-item-int converter

autotest: fix Rover PolyFenceAvoidanceBendyRulerEasier test

these tests weren't being run becausethey were disabled based on support for loading fence items from QGC files.

autotest: fix Rover PolyFenceAvoidanceBendyRuler test
2024-07-29 20:58:39 +10:00
Peter Barker 605a9d34e3 autotest: tidy various Rover autotests
autotest: tidy Sprayer test

autotest: tidy rover AC_Avoidance test

autotest: tidy rover ModeSwitch test

autotest: tidy rover AuxModeSwitch

autotest: tidy rover RCOverrides test

autotest: tidy rover MANUAL_CONTROL test

autotest: tidy rover PolyFenceObjectAvoidance test
2024-07-26 23:43:16 +10:00
Peter Barker bedc76e0e8 autotest: tidy various tests to take account of new framework capabilities
autotest: simplify AutoDock test

autotest: tidy AP_Proximity_MAV test

autotest: tidy DriveSquare test

autotest: tidy BatteryFailsafe test

autotest: tidy GPSViconSwitching test

autotest: tidy RangeFinder test
2024-07-24 17:01:26 +10:00
Andy Piper e30dc2c536 autotest: fix fence autotests
add Plane.FenceMinAltEnableAutoland
test that vehicle can be landed manually after descending below fence floor
2024-07-24 08:24:06 +10:00
Andy Piper cedccdb8fe autotest: add test for auto-disabling min alt fence breaches on disarming
clean-up fence manipulation functions and add test for auto-enablement on copter
update tests to have some FENCE_ENABLE tests
add avoidance minimum and maximum altitude fence
add fence switch test while flying
add FenceAutoEnableDisableSwitch for auto mode 2
add more scenarios for plane fence auto-enable
validate fence rc switch behaviour
check fence autoenable by taking off in guided mode
more FENCE_AUTOENABLE tests
add FenceEnableDisableAux and FenceMinAltAutoEnableAbort
2024-07-24 08:24:06 +10:00
Peter Barker 8dcd3986c7 autotest: correct uploading of exclusion circles 2024-07-17 08:33:44 +10:00
Peter Barker 69c76a96d3 autotest: reboot after any context in which a reboot was done
this makes the assumption that any reboot done within a SITL was because some parameter changes only take effect after a reboot.

... so after we have reverted the parameters, reboot again to make the reverted parameter values take effect
2024-07-09 16:48:29 +10:00
Peter Barker 0cf357eb51 autotest: increase timeout for GCSMission upload test
MAVProxy may not have gotten all of the waypoints uploaded in 5 seconds.
2024-07-09 16:48:29 +10:00
Peter Barker 98068e481e autotest: correct places using print rather than progress 2024-07-01 16:58:25 +10:00
Thomas Watson ad7270f682 autotest: add serial loopback test script
Tests that data can flow both ways with one end using protocol 28
(Scripting) and the other using the serial device feature.
2024-06-27 12:00:18 +10:00
Peter Barker b841f5517e autotest: install multiple test scripts with one call 2024-06-24 12:46:40 +10:00
Peter Barker 75614b8c3b autotest: add basic sensor-health test for optical flow in Rover 2024-06-20 17:18:03 +10:00
Peter Barker f9a22458e2 autotest: disable autotest for MAV_CMD_NAV_SET_YAW_SPEED 2024-06-03 09:47:57 +10:00
Peter Barker 7e8a69d2b7 autotest: add polygon pre-arm tests 2024-05-21 17:23:31 +10:00
Peter Barker 39bb63c61f autotest: add test for partial-transfer after mission-upload 2024-05-15 12:26:34 +10:00
Peter Barker 91374632f6 autotest: add test for transfer again after bad count supplied 2024-05-14 09:21:53 +10:00
Peter Barker 7b95633bab autotest: add test for Rover RTL speed 2024-05-08 09:11:55 +10:00
Tim Tuxworth fe5c8d297e Tools: change NET_ENABLED to NET_ENABLE 2024-03-20 19:08:31 +11:00
Peter Barker a7d9209001 autotest: re-enable Dijkstra tests 2024-03-12 21:13:33 +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 24f7ff7b61 autotest: Use contexts to control script lifetimes in networking tests
this way if the test gets an exception part-way through the scripts are removed from the directories appropriately
2024-01-03 17:36:10 +11:00
Andrew Tridgell 60bfcf3cdc autotest: added a web server test
both native sockets and PPP
2024-01-03 12:14:47 +11:00
Michael du Breuil a45353b17f autotest: Update tests for relay 2023-12-19 10:01:01 +11:00
Thomas Watson de5b46e028 Tools: remove references to legacy UART order
Also delete some unused variables and update the completions.
2023-12-19 06:53:15 +11:00
Peter Barker 7bd2e728f3 autotest: tidy Rover Scripting test 2023-12-05 20:15:21 +11:00
Nick Exton 55d7965379 autotest: Rover: fix return type for invalid DO_SET_MISSION_CURRENT 2023-11-14 10:22:45 +11:00
Peter Barker b69879fe87 autotest: add test for battery reset 2023-11-08 18:14:27 +11:00
Peter Barker 0e2261832e autotest: more test for emitted digicam command-long messages 2023-11-02 15:54:13 +11:00
Peter Barker 29f5bce611 autotest: tidy testing of SentToComponents 2023-11-01 12:32:47 +11:00
Peter Barker a8bd417527 autotest: cope with rename of AutoTest to Testsuite 2023-10-27 14:17:09 +11:00
Peter Barker c3c7784c23 autotest: add explicit tes for MAV_CMD_DO_FENCE_ENABLE 2023-10-24 11:37:18 +11:00
Peter Barker 0e458f3342 autotest: test DO_SEND_BANNER as both long and int 2023-10-18 19:49:17 +11:00
Peter Barker e8be3a4e21 autotest: add explicit test for MAV_CMD_GET_HOME_POSITION 2023-10-18 19:48:23 +11:00
Peter Barker a98def0b6d autotest: add test for SET_ATTITUDE_TARGET headings 2023-10-18 11:17:32 +11:00
Peter Barker aaca600a94 autotest: test setting modes via COMMAND_INT and DO_SET_MODE 2023-10-17 10:41:36 +11:00
Peter Barker d74947db10 Tools: handle message interval commands as both long and int 2023-10-03 10:12:21 +09:00
Peter Barker e69760f51b autotest: fix flapping Rally test
when MAVProxy says "loaded" it is only refering to getting the files into its own state, not into the autopilot
2023-08-30 12:21:17 +10:00
Peter Barker d197ad6a90 autotest: augment relay tests to run as cmd_int, and more messages 2023-08-29 11:15:14 +10:00