Commit Graph

68 Commits

Author SHA1 Message Date
Peter Barker
a110c9c39f autotest: add tests for onboard file log validity 2024-07-09 10:40:08 +10:00
Peter Barker
91b2d0dcdf autotest: fix race condition in DataFlashOverMAVLink test
we're running at large speedups; 5 simulated seconds might not be enough time for MAVProxy to accumulate statistics.  So get MAVProxy to emit the rate each second instead
2024-07-08 23:20:41 +10:00
George Zogopoulos
2cd5413b0d SITL: Documented SIM_WIND_DIR_Z 2024-07-03 18:13:11 +10:00
Peter Barker
e2ef47b221 autotest: break out a run_replay method 2024-07-02 11:05:40 +10:00
Peter Barker
eb539f2c4a autotest: allow message hooks to be instances of a MessageHook class
allows state to be encapsulated within the object rather than simply in the same scope / closure of the method being called.

Will allow easier re-use of these blocks
2024-07-02 11:05:40 +10:00
Peter Barker
0c7a527ad3 autotest: add test infrastructure for installing lua modules 2024-07-02 11:05:40 +10:00
Peter Barker
3a23cf7144 autotest: add option to ingore RTL mode change during in auto mode
Plane emits a heartbeat with RTL in it when doing a DO_LAND_START
2024-07-02 11:05:40 +10:00
Peter Barker
1dae1fe7df autotest: add get_mode_string_for_mode 2024-07-02 11:05:40 +10:00
Peter Barker
744da0aec7 autotest: add a home_relative_loc_neu method 2024-07-02 11:05:40 +10:00
Peter Barker
98068e481e autotest: correct places using print rather than progress 2024-07-01 16:58:25 +10:00
Peter Barker
9d7c8277a4 autotest: make WaitAndMaintainEKFFlags progress nicer 2024-06-28 17:06:23 +10:00
Peter Barker
b841f5517e autotest: install multiple test scripts with one call 2024-06-24 12:46:40 +10:00
Peter Barker
470663b30b autotest: add test for simulated Copter clamp 2024-06-11 09:56:43 +10:00
Peter Barker
3c2f7944eb autotest: test SBP2 as part of GPSTypes check 2024-06-11 09:29:14 +10:00
Peter Barker
7cf96fb0a1 autotest: add a lineno method
allows for debug like this:

print(f"{self.lineno()} {self.mav.message_hooks=}")
2024-06-10 07:04:40 +10:00
Peter Barker
2a964c44d4 autotest: copy message hooks while iterating over them for removal
won't remove a number of entries from the end of the list if others have been removed
2024-06-10 07:04:40 +10:00
Peter Barker
3ede599cfd autotest: clarify AutoTuneSwitch test 2024-06-09 09:53:08 +10:00
George Zogopoulos
396865223f autotest: Removed unnecessary parameter whitelist item 2024-06-05 19:03:31 +10:00
Peter Barker
c6a239ef63 autotest: correct Valgrind error detection 2024-05-31 13:23:03 +10:00
Peter Barker
ac7629c546 autotest: fold close method into sole caller
we're missing the non-zero-valgrind-logs-means-failure check somehow
2024-05-31 13:23:03 +10:00
Peter Barker
f930ba788b autotest: add test showing throttle saturation problem
autotest: verbose minimum_duration in wait_message_field_values
2024-05-21 14:23:36 +10:00
Peter Barker
3e868be704 autotest: pass kwargs straight through in wait_ekf_args
this allows minimum_duration to be passed through to the underlying methods, for example
2024-05-19 12:26:33 +10:00
Peter Barker
0b8c72c8bb autotest: add support for minimum_duration to wait_ekf_flags
.... by re-implementing in terms of a WaitAndMaintain class
2024-05-19 12:26:33 +10:00
Andrew Tridgell
86b779f3c7 autotest: remove SIM_SERVO_SPEED from whitelist 2024-05-05 07:57:54 +10:00
Andy Piper
946c891e14 autotest: improve reliability of MotorVibration test 2024-05-03 07:34:21 +10:00
Peter Barker
29cbd8da15 Tools: add description for SIM_BARO_DRIFT 2024-04-30 16:39:32 +10:00
Peter Barker
f5b062562a autotest: correct removal of hooks during exception handling 2024-04-30 16:39:32 +10:00
Peter Barker
d0a7e70d0f autotest: correct format string in error path
name is a string, not an integer
2024-04-17 11:57:11 +10:00
Peter Barker
d964d7f311 autotest: allow frame to be specified when creating simple missions 2024-04-15 16:57:09 +10:00
Peter Barker
3be1b9efa6 autotest: add set_home function 2024-04-13 08:34:42 +09:00
Peter Barker
c578a18b7f autotest: add test for compass_learn=3 when using gps-for-yaw 2024-04-11 20:49:03 +10:00
Peter Barker
0f67535350 autotest: augment WaitAndMaintain class, add WaitAndMaintainArmed 2024-04-08 12:05:38 +10:00
Peter Barker
6dccdde660 vehicle_test_suite: correct return value from armed()
this was returning the value of "128" rather than "True"
2024-04-08 12:05:38 +10:00
Tim Tuxworth
fe5c8d297e Tools: change NET_ENABLED to NET_ENABLE 2024-03-20 19:08:31 +11:00
Peter Barker
0e4b41baa6 Tools: rename GPS_ to GPS1_ 2024-03-19 19:50:12 +11:00
Peter Barker
89bdb14916 Tools: adjust for GPS parameter renames 2024-03-19 19:50:12 +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
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
350215eb70 autotest: fixed got and want ordering in text wait 2024-03-06 09:39:51 +11:00
Randy Mackay
e1e7882b7b Tools: remove vicon params from whitelist 2024-02-28 18:52:37 +11:00
Peter Barker
d92acaffce autotest: improve diagnostics around expected statustext 2024-02-23 20:13:29 +11:00
Peter Barker
56a73dedae autotest: adjust tests for new GPS messages 2024-02-20 19:35:01 +11:00
Andrew Tridgell
7e5e55a97b autotest: fix for flapping multicast log download test
we had two ports outputting to 14550 which could cause the test to be
very slow
2024-01-10 18:07:29 +11:00
Andrew Tridgell
816e3fae3e autotest: fixed flapping sub log download test
the log being downloaded can be very large, and times out. Setting
LOG_DISARMED=1 gives us a small log to download
2024-01-02 11:34:12 +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
59badf6947 autotest: fix message_has_field_values for strings 2023-12-05 20:15:21 +11:00
Tom Pittenger
5bc3830451 autotest: don't set DHCP in SITL/CI because we can't 2023-12-02 08:17:52 +11:00