Commit Graph

76 Commits

Author SHA1 Message Date
Peter Barker 3c1021d208 Tools: add documentation for SIM_ENGINE_FAIL and SIM_ENGINE_MUL 2024-07-30 09:21:26 +09: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
George Zogopoulos 1e6e291b52 autotest: New tests
Autotests for takeoffs have been added for Plane, covering AUTO and
TAKEOFF mode takeoffs.

An auxiliary `set_servo` method has been added to `vehicle_test_suite.py`.
2024-07-29 15:50:32 +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 9c10e64168 Tools: add documentation for SIM_ACC?_RND parameters 2024-07-20 13:43:44 +10:00
Peter Barker 8dcd3986c7 autotest: correct uploading of exclusion circles 2024-07-17 08:33:44 +10:00
Peter Barker 1de60a31b0 autotest: rename do_reposition to send_do_reposition 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 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