Commit Graph

141 Commits

Author SHA1 Message Date
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
Peter Barker aa6f351571 autotest: add tests for Rover MAV_CMD_NAV_SET_YAW_SPEED 2023-08-26 18:24:09 +10:00
Peter Barker 1228f4c458 autotest: add test for Rover MAV_CMD_MISSION_START 2023-08-26 08:59:30 +10:00
Peter Barker 2b9b3c07cb autotest: add test for rover MAV_CMD_DO_CHANGE_SPEED 2023-08-24 13:06:00 +09:00
Peter Barker a44820cfde autotest: tidy Rover DriveMaxRCIN test
take advantage of created infrastructure
2023-08-24 12:02:38 +10:00
Peter Barker b93e1d471f autotest: add test for Rover MAV_CMD_NAV_RETURN_TO_LAUNCH 2023-08-23 21:29:00 +10:00
Peter Barker 6a6a0b36c9 autotest: add test for Rover reversing in guided 2023-08-23 16:12:21 +10:00
Peter Barker c80ef940fd autotest: add tests for RELAY_STATUS message 2023-08-09 07:44:07 +10:00
Peter Barker bde43f167e autotest: use named parameters for send_cmd and run_cmd 2023-07-16 10:23:20 +10:00
Peter Barker 28da57f940 autotest: correct duplicate-test-name problems 2023-06-02 22:58:40 +10:00
bugobliterator dc8deec351 autotest: add support for testing mavlink in lua 2023-05-24 19:03:28 +10:00
Peter Barker b90166ab97 Tools: use methods to determine port numbers 2023-05-18 07:53:43 +10:00
bugobliterator fcb622c610 autotest: add test for lua modules 2023-04-28 12:36:08 +10:00
Peter Barker 2271827c9d autotest: add tests for compass prearms 2023-04-19 14:25:06 +10:00
Peter Barker 5cc046b9cc Tools: AP_Arming ensures mission items present when in auto mode
Co-authored-by: Henry Wurzburg <hwurzburg@yahoo.com>
2023-04-14 07:49:54 +10:00
Peter Barker 3863183996 autotest: give Rover longer to arrive home
vagaries of interaction with Python script means we need to give this more time when running balancebot
2023-04-11 00:25:53 +10:00
Peter Barker 9f2aef4c97 autotest: allow other prearm failures while waiting for estop prearm
accels inconsistent was popping up in here.

We can ignore that - we only care we won't arm because of the estop being active.  This will also save a bit of time with the removal of the raw delay-for-10-seconds
2023-04-09 20:48:34 +10:00
Pierre Kancir fa2c7113c9 Tools: enable back DriveMaxRCIN test as rover sitl gsf issue is solved 2023-03-15 19:31:26 +11:00
Randy Mackay bfa15133c7 Tools: autotest fixes for rover
fixes camera mission, set-message-interval, request-message,
SendToComponents
2023-03-01 18:18:51 +11:00
Peter Barker b287476cc6 Tools: autotest: add a test for Rover's INITIAL_MODE 2023-02-26 16:41:32 +11:00
Pierre Kancir 468356d513 Tools: rover: implement test_gcs_failsafe 2023-02-24 09:41:17 -08:00
Peter Barker 31de6fd0b5 autotest: tidy LUA scripting internal tests 2023-02-17 12:54:49 +11:00
Peter Barker 69b8e30f28 autotest: rename remove_example_script to remove_installed_script 2023-02-17 12:54:49 +11:00
Peter Barker 306d8360fb autotest: tidy scripting examples test 2023-02-17 12:54:49 +11:00
Peter Barker f5320f1691 autotest: rover: remove pointless try/except block 2023-01-05 07:29:44 +11:00
Peter Barker dcf41f2396 autotest: add additional tests for private channels 2022-11-29 10:32:02 +11:00
Peter Barker d1cff53ba1 autotest: add test for mavlink private-channel 2022-11-29 10:32:02 +11:00
Peter Barker 8777d68ac1 autotest: drain self.mav while waiting on other link
In the short period of time it takes for us to get organised/draining mavlink connections, the ArduPilot process might block writing to the primary mavlink connection - in which case we'll never get the message we requested.

Should solve

2022-08-31T23:17:43.6904119Z AT-0227.6: waiting for a message - any message....
2022-08-31T23:17:43.6904958Z AT-0227.6: Received (ATTITUDE {time_boot_ms : 3146, roll : 0.00013471684360411018, pitch : -4.076504410477355e-05, yaw : -2.1274349689483643, rollspeed : 6.679168291157112e-05, pitchspeed : 3.297374496469274e-05, yawspeed : 9.125166684498254e-07})
2022-08-31T23:17:43.6905505Z AT-0227.6: Waiting for mission count of (3) from (1:1) to (243:250)
2022-08-31T23:17:43.6905909Z AT-0227.6: Asserted mission count (type=2) is 3 after 0.100000s
2022-08-31T23:17:43.6906252Z AT-0227.6: Get first item on new link
2022-08-31T23:17:43.6906620Z AT-0289.2: Received exception (Did not receive MISSION_ITEM_INT
2022-08-31T23:17:43.6907047Z Traceback (most recent call last):
2022-08-31T23:17:43.6907386Z   File "/__w/ardupilot/ardupilot/Tools/autotest/rover.py", line 3067, in test_rally
2022-08-31T23:17:43.6907719Z     m2 = self.get_mission_item_int_on_link(
2022-08-31T23:17:43.6908080Z   File "/__w/ardupilot/ardupilot/Tools/autotest/rover.py", line 2288, in get_mission_item_int_on_link
2022-08-31T23:17:43.6908469Z     raise NotAchievedException("Did not receive MISSION_ITEM_INT")
2022-08-31T23:17:43.6908841Z common.NotAchievedException: Did not receive MISSION_ITEM_INT
2022-08-31T23:17:43.6909118Z )
2022-08-31T23:17:43.6909468Z AT-0289.2: Exception caught: Did not receive MISSION_ITEM_INT
2022-11-09 09:17:08 +11:00
Shiv Tyagi c6b2ab427f autotest: loosen constraints on docking test 2022-10-02 19:18:23 +11:00
Peter Barker bd364b6169 autotest: specify baudrate for NMEA GPS for testing 2022-09-28 20:53:34 +10:00
Shiv Tyagi a4c88ab2c0 autotest: use guided mode to move Rover away for Dock test 2022-09-19 17:51:48 +10:00
Peter Barker b5be0dcd14 autotest: correct reboot in failure case for dock mode test
reboot will fail if we are still armed
2022-09-19 09:29:04 +10:00
Peter Barker d4587e787e autotest: add a drive_to_location for Rover 2022-09-19 09:28:39 +10:00
Peter Barker ba6cf1a42b autotest: remove disabled LogUpload test
This has been unused for a long time, and is getting in the way of reforms.  Its position as a test rather than as a part of a framework was always going to cause oddities, particularly after we split the Copter tests into several chunks.
2022-09-11 20:45:13 +10:00
Peter Barker 80c36ecc97 autotest: use reflection to collect test details
We had a pattern emerging of using the test name as the method name to contain the actual test.  We also tended to duplicate the docstrings in the test description - or omit the docstring.

This uses reflection to retrieve both the test name and the description, meaning less duplication of this information and enforcing having docstrings on the test methods.
2022-09-10 18:27:27 +10:00
Shiv Tyagi 6393ef6b8e Tools: fix Rover AutoDock test 2022-09-09 19:12:30 +10:00
Shiv Tyagi 24cff5f9b1 Tools: add autotest to test docking on rover 2022-09-06 11:23:51 +09:00
Randy Mackay c898261698 Tools: autotest uses PRX1 parameters 2022-08-24 18:26:27 +10:00
Peter Barker f8c1c3309d autotest: allow more time for Rover to go to smartrtl intermediate point
race conditions with commands from autotest suite
2022-08-22 09:54:09 +10:00
Peter Barker cd207164a2 autotest: correct Rover DriveMission test
4 would seem to have been just a magic number and could be missed on faster speedups
2022-08-19 17:04:54 +10:00
Peter Barker add5243634 autotest: Rover: ensure we actually stop at rally point 2022-08-14 07:52:42 +10:00
Peter Barker 8fd5df33d5 autotest: add test for stick-mixing in auto mode 2022-08-11 20:03:12 -04:00
Peter Barker 515b79a6ca autotest: remove un-needed calls to drain_mav_unparsed
these calls are generally bad now, given we have context_collect things going on which always want to see messages coming in
2022-07-20 15:17:25 +10:00
Peter Barker a672c7df97 autotest: add test for changing modes by mode number
Useful for when you don't have a mapping entry for the mode number yet
2022-07-12 08:51:21 +10:00
Peter Barker 043764fbf9 autotest: use set_parameters in rover; fixup tests to use context 2022-06-30 11:55:19 +10:00
Peter Barker ef0f5110cb autotest: set Rover speedup to 30
This is closer to what's achieved on modern CPUs.

Running at 100 can lead to very rapid RC inputs which can cause issues.
2022-06-29 21:02:27 +10:00
Peter Barker 4a015bd479 autotest: fix race condition in mission-end-behaviour test 2022-06-16 21:24:31 +10:00
Peter Barker 57b0d7f235 autotest: change rover default speedup time to 100 2022-06-16 21:24:31 +10:00
Pierre Kancir 4e2e4fa4d4 Tools: autotest: remove useless shebang 2022-06-08 08:16:42 +09:00