Yuxin Pan
adc147aba3
Tools: remove params from whiltelist
2024-09-12 06:54:15 +10:00
Yuxin Pan
e7359c12f1
Tools: add some parameter documentation
...
SITL: vehicle_test_suite.py parameters removal from whitelist
SITL: Add known unit amp hour
SITL: Add known unit Ah
Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
2024-09-11 10:22:22 +10:00
Peter Barker
ab77509551
Tools: create and use WaitAndMaintainServoChannelValue
...
allows for checking for "maintain" on servo channel values
2024-09-07 09:40:43 +10:00
Peter Barker
4ff6f603b2
autotest: add --enable-fgview option
2024-09-04 14:42:02 +09:00
Peter Barker
ed512eaabe
autotest: add test for logging restart after transfer complete
2024-09-03 11:01:24 +10:00
Peter Barker
1439aebf94
autotest: improve diagnostics when receiving unexpected mission ack
2024-08-31 08:16:42 +10:00
Peter Barker
2e1364e3b0
autotest: include SBF when testing GPS backends work
2024-08-21 06:31:41 +10:00
Peter Barker
1e4caaec78
autotest: allow max distance on ship test
...
vehicle moves...
2024-08-10 10:54:20 +10:00
Peter Barker
3963f1b114
autotest: allow reboot_sitl to specify max startup loc dist
...
useful if your vehicle is on a ship
2024-08-10 10:54:20 +10:00
Peter Barker
5e929e1b39
autotest: poll_message limits polled message to system it was requested from
2024-08-10 10:54:20 +10:00
Peter Barker
f3271ce0a6
autotest: add a load_params_file method to take params from test dir
2024-08-10 10:54:20 +10:00
Peter Barker
22360b43a8
autotest: zero throttle when force-rebooting
...
otherwise we may end up trying to calibrate ESCs...
2024-08-10 10:54:20 +10:00
Peter Barker
33bae74d07
autotest: rename load-parameters method to be more accurate
2024-08-10 10:54:20 +10:00
Peter Barker
6c851c4ea3
Tools: rename OFFBOARD_GUIDED to AP_PLANE_OFFBOARD_GUIDED_SLEW_ENABLED
...
and remove comparison vs ENABLED
2024-08-05 10:20:14 +10:00
Peter Barker
61196b7d04
autotest: add tests for iBus telemetry
2024-07-30 20:00:16 +10:00
Peter Barker
602f5bc61c
autotest: correct applet-testing scripts to use contexts for scripts
...
means we don't leave the script lying around in case of test failure
2024-07-30 11:39:46 +10:00
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