Iampete1
904b493809
Tools: autotest, common.py remove extra comma
4 years ago
Peter Barker
4324d66c13
autotest: loosen time constraint on mavlink messages in magcal
...
Saw an error where we didn't get one of these in 5 seconds.
That sounds like too much. But we'll loosen the constrain anyway
4 years ago
Peter Barker
bd8384b322
autotest: break out a get_altitude method
4 years ago
Alessandro Apostoli
e2aaf4c216
Tools: autotest, fix for frsky not defined error ( #4 )
4 years ago
Peter Barker
d9dd93bcdd
autotest: don't run frsky tests armed for the most part
4 years ago
Peter Barker
742d5a9fa0
autotest: add body_frame_velocity
4 years ago
Peter Barker
f65bee80dc
autotest: use BATTERY_STATUS to detect sub reboot
...
Sub doesn't implement AP_Stats so we have custom reboot detection for
it.
The current look-for-string strategy is flawed - we're missing the
string on reboot
4 years ago
Pierre Kancir
e13a35abc1
Autotest: check for empty message before trying to use it
4 years ago
yaapu
bb576a49b8
Tools: added autotest for frsky rpm telemetry
4 years ago
Andrew Tridgell
d47afb2406
autotest: added AHRSTrim test and add trim to accel cal test
...
this ensures the handling of AHRS trim is correct
4 years ago
Peter Barker
ad2ab333f9
Tools: autotest: allow autotest to connect directly to SITL
4 years ago
Peter Barker
8c7d63433c
autotest: clear mission ourselves rather than with MAVProxy at end of test
4 years ago
Peter Barker
1fec88af21
autotest: make arming test a little more verbose
4 years ago
Peter Barker
3279400e2e
autotest: disarm_with_rc_input shortcuts if it sees rudder-disarm-disabled
4 years ago
Peter Barker
f452c6bb51
autotest: break out a statustext_in_collections method from wait_statustext
4 years ago
Andrew Tridgell
58b9cd2c6e
autotest: added assert_reach_imu_temperature() abstraction
4 years ago
Andrew Tridgell
5a5ba26468
autotest: expanded accelcal test to check values
...
this checks the resulting accelcal is correct within 1%
4 years ago
Andrew Tridgell
0c3655b01f
autotest: fixed epsilon handling in set_parameters
4 years ago
Peter Barker
c7a6047904
autotest: add option to retry tests / create and use Test definition object
4 years ago
Peter Barker
03b2473c61
autotest: correct get_parameter_direct attempts decrement
4 years ago
Andrew Tridgell
c396d15890
Revert "autotest: ensure defaults files don't set already-default-values"
...
This reverts commit 3d431cd4f1
.
It breaks MissionPlanner SITL. We can re-apply once MissionPlanner
copes with external_model.
4 years ago
Peter Barker
3d431cd4f1
autotest: ensure defaults files don't set already-default-values
...
autotest: mark some vehicles as having external physics models
autotest: add default_params_filename to some vehicle info
4 years ago
Peter Barker
8f9d3909f1
autotest: model_defaults_filepath always returns a list
4 years ago
Peter Barker
30929e7f1a
autotest: add verbose option to assert_sensor_state
4 years ago
Peter Barker
ba1973d343
autotest: parse messages when setting parameters
...
This breaks some tests which are waiting on statustexts while setting
parameters
4 years ago
Randy Mackay
1f8b48e8f7
Tools: common autotest spelling fix
...
reach should be reached
4 years ago
Peter Barker
cd8a393ac2
autotest: create own RC thread to handle setting of RC overrides
...
autotest: prevent method-on-undef problem in case of early test failure
autotest: plumb MAVProxy rc input back in for switch test
autotest: close off rc thread in case of timeout
4 years ago
Peter Barker
e85e6d3375
autotest: use new set_parameters in place of many set_parameter calls
...
autotest: use set_parameters for applying from parameter file
autotest: use set_parameters in place of many set_parameter calls
4 years ago
Peter Barker
2917c75f35
autotest: add option to timeout parameter fetching in system time
4 years ago
Peter Barker
83f2f365c0
autotest: implement a more efficient set_parameters, implement set_parameter in terms of it
4 years ago
Peter Barker
8497f8fc73
autotest: correct some timeout issues around Copter takeoff
4 years ago
Peter Barker
e7aefc7fe4
autotest: make polling home position quiet by default
4 years ago
Peter Barker
5318538182
autotest: reboot SITL when moving from EKF10 to EKF2 in mag test
...
Bad things happen when moving from one to the other...
4 years ago
Peter Barker
fdb5b5e6d6
autotest: correct dataflash transfer test for long periods
...
This came in with a 35 second delay, which is rather spectacular given
the 5 second loop it is in.
2021-01-11T11:54:30.3046835Z dataflash_logger status
2021-01-11T11:54:30.3047406Z MANUAL> DFLogger: Active Rate(35s):408.788kB/s Block:65034 Missing:0 Fixed:0 Abandoned:0
2021-01-11T11:54:30.3048195Z Timed out looking for Active Rate\([0-9]s\):([0-9]+[.][0-9]+)
2021-01-11T11:54:30.3048801Z AT-0472.3: Exception caught: 60
4 years ago
Peter Barker
3a264e0a76
autotest: use LOG_STRUCTURE_FROM as key string (don't need library name)
4 years ago
Josh Henderson
0052e4d528
Tools: auotest add LOG_STRUCTURE_FROM_AHRS
4 years ago
Peter Barker
4d19ff6b26
autotest: prompt ArduPilot for SYSTEM_TIME message during reboot
...
This helps us actually execute the timeouts appropriately and thus
re-fetch the STAT_BOOTCNT parameter we use for detecting the reboot
Eliminates annoying pauses during testing.
4 years ago
Peter Barker
5120ebf2f6
autotest: add a set_parameters method
4 years ago
Andy Piper
f702288ad2
autotest: correct number of logs
4 years ago
Peter Barker
38ea62c5d7
autotest: send mode change messages directly rather than via MAVProxy
4 years ago
Peter Barker
d31f676c33
autotest: don't use MAVProxy for uploading using fencepoint protocol
4 years ago
Peter Barker
2b06ae9aa0
autotest: create and use a wait_sensor_state method
4 years ago
Peter Barker
7c7fb67829
autotest: fixes for AFS test
4 years ago
Peter Barker
7f79ddf3ff
autotest: CRSF: remove pointless wait-ready-to-arm
4 years ago
Peter Barker
6c48a38497
autotest: avoid zero-byte-read on log download
4 years ago
Peter Barker
b53b30ea51
autotest: split out a get_rc_channel_value()
4 years ago
Peter Barker
0a5eedb05a
autotest: wipe and reinitialise parameters when resetting SITL commandline
...
Should fix this scenario:
- Plane soaring test uses different defaults file
- soaring test sets a parameter away from default value
- context pop sets it back to the value in the defaults file
- it is now in permanent storage with the default found in the
different defaults file used by the soaring test
- we finish running the soaring test an reset the SITL command line
back to default, with the old defaults file
- we go on to running the next test. At this point the value for that
parameter is the default in the defaults file used by the soaring test.
Something similar applies in the Callisto test.
4 years ago
Peter Barker
0788b46374
autotest: add trivial test for Callisto
4 years ago
Peter Barker
5d23dc2314
autotest: avoid replicating enumeration value names from pymavlink
4 years ago
Pierre Kancir
06d6526ba6
Autotest: correct wait_distance_to_home comment
4 years ago