Peter Barker
d4aef2dba8
autotest: stop using MAVProxy to change mode
2021-02-20 00:03:24 +11:00
Peter Barker
c13d229877
autotest: use self.set_current_waypoint rather than "wp set" to set current wp
2021-02-19 12:25:40 +11:00
Peter Barker
dcc04ccd09
autotest: stop using MAVProxy to change modes
2021-02-18 17:38:52 +11:00
Peter Barker
628a3843b2
autotest: flake8 compliance for arduplane.py
2021-02-18 10:43:05 +11:00
Peter Barker
a292fe1b8b
autotest: use wait_statustext rather than mavproxy.expect
...
This is important when running under Valgrind as the text can be
significantly delayed. wait_statustext times out in simulation time,
whereas mavproxy.expect has a flat 60s timeout
2021-02-17 18:16:04 +11:00
Peter Barker
c00a82868e
autotest: make DLVR sole airspeed sensor in test
...
The test wasn't actually *using* the DLVR...
2021-02-17 14:23:07 +11:00
Peter Barker
ca49f62b6d
autotest: add test for Plane's RTL_CLIMB_MIN parameter
2021-02-13 19:34:52 +11:00
Peter Barker
d60fa86026
autotest: use set_map_from_rc more
2021-02-13 19:34:52 +11:00
Andrew Tridgell
3add045924
autotest: fixed accel/gyro threshold consistency for tempcal
2021-01-21 13:09:21 +11:00
Andrew Tridgell
fe7d933976
autotest: use delay_sim_time() in tempcal test
2021-01-21 13:09:21 +11:00
Andrew Tridgell
58b9cd2c6e
autotest: added assert_reach_imu_temperature() abstraction
2021-01-21 13:09:21 +11:00
Andrew Tridgell
4c315b57ca
autotest: run gyro/accel cal at non-reference temperature
2021-01-21 13:09:21 +11:00
Andrew Tridgell
2cf7e7945c
autotest: make tempcal debug output clearer
2021-01-21 13:09:21 +11:00
Andrew Tridgell
84dda13b42
autotest: use new learn param setup
2021-01-21 13:09:21 +11:00
Andrew Tridgell
30385fb8cb
autotest: use set_parameters() in IMU temp cal test
2021-01-21 13:09:21 +11:00
Andrew Tridgell
327db46c15
autotest: added automatic testing of IMU Temperature calibration
2021-01-21 13:09:21 +11:00
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.
2021-01-20 08:54:43 +11:00
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
2021-01-19 10:34:00 +11:00
Peter Barker
6becd90df0
autotest: increase timeout on DO_CHANGE_SPEED test
2021-01-18 19:08:46 +11:00
Peter Barker
5848ff7512
autotest: eliminate race condition in plane fence static test
2021-01-18 16:32:21 +11:00
Peter Barker
6865649b9b
autotest: tidy and correct ekf lane switching test
2021-01-18 15:19:39 +11:00
Peter Barker
48a38f3ee2
autotest: wait for GPS fix before installing position validation handling
2021-01-18 15:11:19 +11:00
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
2021-01-15 20:56:30 +11:00
Peter Barker
47aea5f44c
autotest: print stack traces for caught exceptions
2021-01-13 19:46:13 +11:00
Andrew Tridgell
b5476c6e5c
autotest: added ExternalAHRS test
2021-01-05 21:13:12 +11:00
Peter Barker
2b06ae9aa0
autotest: create and use a wait_sensor_state method
2020-12-31 17:42:33 +11:00
Peter Barker
26bbedd777
autotest: remove un-needed parameter wipe after soaring test
2020-12-25 12:18:01 +11:00
Peter Barker
69ef0937f4
autotest: add trivial test just to cover the Airspeed_DLVR code
2020-12-22 23:07:24 +11:00
Pierre Kancir
871b9fc12d
Tools: plane : initial_mode_switch_mode
2020-12-16 17:27:07 +09:00
Andrew Tridgell
5fc68a1ce5
autotest: adjust for new baro SITL param names
2020-12-11 15:21:41 +11:00
Peter Barker
813723d0b7
autotest: add test for needing AHRS to be healthy to arm
2020-12-11 09:55:40 +11:00
Tom Pittenger
58c7f8279d
Tools/autotest: fix CI by updating new ADSB_ENABLE->ADSB_TYPE param name
2020-11-30 16:05:17 +11:00
Peter Barker
18330d16de
autotest: add test for MAVlite
2020-10-27 10:17:53 +11:00
Peter Barker
49fd762f26
autotest: fix and re-enable button test
...
A recent commit to fix the setting-of-pullup-resistors in SITL makes it
possible to re-enable this.
Closes #15259
2020-10-15 08:34:08 +11:00
Samuel Tabor
bd28a62155
autotest: Update soaring test for THERMAL mode.
2020-09-25 16:21:15 +10:00
Samuel Tabor
fe6c4d9290
autotest: Update for THERMAL mode.
2020-09-24 07:30:48 +10:00
Harshit Kumar Sankhla
f0c237d88e
autotest: bug fixes for ekf lane switch test
2020-09-11 10:16:20 +10:00
Samuel Tabor
6de4967a3d
autotest: Fix typos and unclear comments in soaring test.
2020-09-10 22:21:41 +10:00
Samuel Tabor
f6017d60bf
autotest: Update for new soaring behaviour.
2020-09-10 22:21:41 +10:00
Peter Barker
51b54d3740
autotest: avoid leaving message hooks around
...
Can lead to some very weird and confusing output
2020-09-09 17:59:17 +10:00
Peter Barker
9228f47dc9
autotest: create collections-on-context to record selected messages
2020-09-08 14:19:08 +10:00
Peter Barker
f3866e5f39
autotest: disable button test
2020-09-08 12:31:15 +10:00
Peter Barker
522c3e6281
autotest: make LogUpload the last test again
...
ATM any logs produced by EKFLaneswitch won't get uploaded in case of
failure
2020-09-01 18:15:37 +10:00
Harshit Kumar Sankhla
464c90a03c
Tools: add an EKF3 lane switching test to plane
2020-08-27 20:20:51 +10:00
Peter Barker
67b71e2b94
autotest: add test for Plane dead-reckoning support
2020-08-21 18:16:40 +10:00
Samuel Tabor
d57b7cad63
autotest: Update soaring test to use RCX_OPTION.
2020-07-21 09:38:04 +10:00
Samuel Tabor
ed14ab84ce
autotest: Add test for terrain following mission.
2020-07-07 11:46:32 +10:00
Samuel Tabor
c3f039a739
autotest: Add timeout to fly_mission.
2020-07-07 11:46:32 +10:00
Peter Barker
4e216f976f
autotest: assert that Plane doesn't support fence-via-mission-item-protocol
...
Hopefully this starts to fail at some stage!
2020-06-02 19:00:32 +10:00
Peter Barker
b0916231b2
autotest: add tests for log download
2020-05-26 19:32:49 +10:00
Samuel Tabor
913e5a23fe
autotest: Add method to get default params for model.
2020-04-22 10:01:09 +10:00
Peter Barker
e63e5ba130
autotest: correct path to defaults file when customising SITL cmdline
2020-04-19 11:09:16 +10:00
Samuel Tabor
e30f0a9173
autotest: Move soaring test into plane.
2020-04-19 11:09:16 +10:00
Peter Barker
899b98b2f9
Plane: add test for loading/restoring large missions
2020-04-15 16:24:40 +10:00
Peter Barker
10e8f3f3d7
autotest: canonicalise on defaults_filepath rather than defaults_file
...
This naming better represents the fact this isn't just a filename.
2020-04-14 15:09:17 +10:00
Pierre Kancir
07435cc541
Tools: correct path for soaring mission
2020-04-09 09:01:03 +10:00
Pierre Kancir
bcd15bc6e4
Tools: update path for plane test missions files
2020-04-09 09:01:03 +10:00
Samuel Tabor
a4c5e12fac
Tools: Make soaring test a subclass of plane test.
2020-04-08 09:11:54 +10:00
Pierre Kancir
56298aabda
Tools: update arduplane.py wait function parameters
2020-03-27 22:13:52 +11:00
Peter Barker
403950f61f
autotest: add autotests for CPU failsafe
2020-03-20 12:19:21 +11:00
Peter Barker
92d2186b95
autotest: don't use self.mav.motors_disarmed_wait as it blocks forever
2020-03-17 16:31:29 +11:00
Peter Barker
b0aceaea70
autotest: add tests for LTM telemetry output
2020-02-08 10:38:34 +11:00
Peter Barker
71a129d685
autotest: add test for Plane LOITER
2020-02-07 15:02:35 +11:00
Peter Barker
9192cb7b41
autotest: add tests for parameter download
2020-01-15 13:54:23 +11:00
Peter Barker
ba13f0bb29
autotest: add test for Frsky SPort
2020-01-13 16:03:12 +11:00
Peter Barker
cefd991fb0
autotest: add test for frsky passthrough
2020-01-11 22:43:36 +11:00
Peter Barker
1cfb4e4a49
autotest: test FRSky serial output by taking output via TCP
2020-01-09 12:24:11 +11:00
Peter Hall
2518328801
Tools: autotest: update flap test
2020-01-01 08:11:01 +11:00
Peter Barker
5b45931728
autotest: test buttons on Plane and Copter as well as Rover
2019-12-10 09:29:52 +09:00
Peter Barker
fc98b7d9e8
autotest: add test for fence surviving a bind-values receiver failure
2019-11-19 10:59:02 +11:00
Peter Barker
d8322500c1
autotest: augment ADSB test for RC_Channel enable/disable
2019-11-12 13:48:09 +11:00
Peter Barker
f8d10ebc0f
autotest: add test for GuidedRequest handling in Plane
2019-11-11 14:07:37 +11:00
Peter Barker
ece59f8233
autotest: replace wait_seconds with delay_sim_time
...
These did exactly the same thing
2019-11-08 19:49:46 +11:00
Peter Barker
2daccf0ef0
autotest: add test for deepstall with relative LAND item
2019-10-18 20:13:18 +11:00
Peter Barker
8cfe181604
autotest: increase timeouts on collision test
...
Azuer seems to have some issue with this test. Make it a little more
lenient
2019-10-18 20:12:44 +11:00
Peter Barker
1f7a3d0e16
autotest: add deepstall test
2019-10-18 09:26:12 +11:00
Peter Barker
1af76bbf60
Tools: autotest: make plane receiver-healthy check more reliable
2019-10-09 10:30:18 +11:00
Peter Barker
92160b454a
Tools: autotest: remove switch position assumption from takeoff
2019-09-25 13:42:21 +10:00
Peter Barker
642935fd43
Tools: random Python cleanups based on lgtm analysis
2019-09-21 22:26:03 +10:00
Peter Barker
8736a13a87
Tools: autotest: fix for Plane receiver health test
...
Won't be healthy until SITL is repolled for RC input
2019-09-17 13:31:06 +10:00
Peter Barker
bba019abc2
Tools: autotest: add basic tests for AP_AdvancedFailsafe
2019-09-17 09:13:43 +10:00
Peter Barker
36ba3a6e4c
Tools: autotest: add test for follow mode
2019-09-16 12:00:11 +10:00
Peter Barker
fba072e5fc
Tools: autotest; python3 fixes
2019-08-29 08:43:45 +10:00
Peter Barker
4954c190da
Tools: autotest: add test for short failsafe triggering via low-throttle
2019-08-26 19:56:54 +10:00
Andrew Tridgell
6de85c4627
Tools: fixed autotest for throttle failsafe
2019-08-26 17:20:24 +10:00
Peter Barker
a8a5ccf51b
Tools: autotest: test that long fs triggers even if short fs disabled
2019-08-15 12:07:30 +10:00
Peter Barker
bf0a947317
Tools: autotest: improve test diagnostics
2019-08-08 08:35:52 +10:00
Peter Barker
16503f7f25
Tools: autotest: add test for Plane reposition
2019-08-06 12:52:09 +10:00
Peter Barker
12b9928a56
Tools: autotest: break out a load_fence function
2019-08-05 16:37:08 +10:00
Peter Barker
6fc22cd5a3
Tools: autotest: make rangefinder test more reliable
2019-07-23 17:08:02 +10:00
Peter Barker
b208b76884
Tools: autotest: add trivial test for receiving COLLISION message
2019-07-16 09:52:54 +10:00
Pierre Kancir
12cb09a3f4
Tools: factorize sitl rangefinder setup
2019-07-11 11:52:44 +10:00
Pierre Kancir
daaf769055
Tools: add arm/disarm testing on all modes
2019-07-11 11:42:45 +10:00
Peter Barker
5b5f582307
Tools: autotest: present stack traces on exceptions
2019-07-08 16:51:25 +10:00
Peter Barker
dc75f382b8
Tools: autotest: loosen check for wait_circling_point_with_radius
...
Also add a timeout
2019-06-25 19:59:14 +10:00
Peter Barker
fec3dc4f70
Tools: autotest: add tests for Plane AuxSwitch mode changes
2019-06-18 10:48:47 +10:00
Peter Barker
553037c117
Tools: autotest: disable fence when RTLing to home
...
Otherwise we breach the fence while loitering...
2019-06-14 18:23:27 +10:00
Peter Barker
c8a4af76fe
Tools: autotest: add tests for Plane fence
2019-06-07 16:29:37 +10:00
Peter Barker
9e8e48c9c6
Tools: autotest: add test for Plane DO_CHANGE_SPEED
2019-05-21 13:06:07 +10:00
Peter Barker
d05a4a04c5
Tools: autotest: add autotest for sink-rate triggering
2019-04-30 13:04:02 +10:00
Peter Barker
601504e685
Tools: autotest: ensure RNFD messages emitted
2019-04-09 22:17:58 +10:00
Peter Barker
9a16b40a73
Tools: autotest: rename get_rudder_channel to get_stick_arming_channel
...
... as some of these aren't actually rudder inputs...
2019-03-27 11:29:53 +11:00
Peter Barker
6bf600c587
Tools: autotest: cope with being unable to reboot while armed
2019-03-19 10:53:37 +11:00
Peter Barker
d53f787a14
Tools: factor init up into parent class
...
Tools: autotest: use speedup 8 for all suites
for reliability
2019-03-13 08:20:20 +11:00
Peter Barker
6418226106
Tools: autotest: increase test diagnostics
...
Tools: autotest: improve wait_distance_home_gt output
Tools: autotest: emit progress for parameter sets
Tools: autotest: add progress for RC health checks
Tools: autotest: remove pointless context
2019-03-11 11:25:04 +11:00
Peter Barker
d48eab893a
Tools: autotest: stop swallowing critical messages with get_sim_time()
2019-03-10 21:55:51 +11:00
Peter Barker
c464da69f1
Tools: autotest: fix Plane guided test
...
70 degrees is past LIM_ROLL_CD!
2019-03-10 20:33:38 +11:00
Peter Barker
19f51813f2
Tools: autotest: include mavproxy output in all vehicle test log files
2019-03-08 23:21:27 +11:00
Peter Barker
0efb404ff6
Tools: autotest: add simple test for AIRSPEED_AUTOCAL
2019-03-06 11:32:52 +11:00
Peter Barker
8c35ddc0eb
Tools: autotest: add PID_TUNING test
2019-03-05 10:41:56 +11:00
Peter Barker
50687c9add
Tools: autotest: ArmFeatures is common to all vehicles; use inheritted tests
2019-02-28 12:53:07 +11:00
Peter Barker
e9fc158c8a
Tools: autotest: eliminate use of recv_match with condition
...
We have functions for achieving this
Also, a lot of these places were missing timeouts, so any failure would
cause the entire suite to stop running
2019-02-22 16:30:05 +11:00
Francisco Ferreira
b2523021fb
Tools: autotest: increase Plane log download timeout
2019-02-22 08:27:08 +11:00
Pierre Kancir
7e12f16be6
Tools: fix lambda test
2019-02-22 08:04:03 +11:00
Peter Barker
c0394e9577
Tools: autotest: tidy handling of SITL start position
2019-02-16 19:14:48 +11:00
Peter Barker
effeebfeb8
Tools: autotest: skip failing RC test until code is fixed
2019-02-14 11:49:59 +11:00
Peter Barker
e3368e193d
Tools: autotest: add test for throttle failsafe
2019-02-14 11:49:59 +11:00
Peter Barker
a1aefaff27
Tools: autotest: add parachute tests
...
Tools: autotest: add test for triggering parachute via mavlink
Tools: autotest: add Copter mission test for parachute release
Tools: autotest: add Plane test for parachute deployment in auto
2019-02-13 09:25:27 +09:00
Peter Barker
6f1f98dc3c
Tools: autotest: add assumption run_tests is only called once - remove hasInit
2019-02-09 11:31:17 +11:00
Pierre Kancir
8a7555bf56
Tools: autotest: fix up the arming tests
...
Tools: unify arm function failure message
Tools: get autodisarm time from parameter for autodisarm test
Tools: disable autodisarm for arm/disarm tests.
Tools: fix interlock channel for heli
Tools: simplify arming_test sub exclusion
Tools: fix empty string in progress
Tools: add back arming test to plane
Tools: allow single test run on Sub
Tools: remove old comments on autotest common
Tools: add vehicle type getter function
Tools: make get_rudder_channel abstract method
Tools: common make get_disarm_delay abstract method
Tools: make set_autodisarm_delay abstract method
Tools: rename set_throttle_zero to zero_throttle and use it
Tools: common.py remove unnecessary exception
Tools: subclass vehicle type
2019-02-09 10:04:57 +11:00
Peter Barker
fa37ad344b
Tools: autotest: refactor setting of rc defaults
2019-02-04 08:00:07 +11:00
Peter Barker
55f751a8f4
Tools: autotest: add some tests for Copter parachute functions
2019-01-09 13:16:03 +11:00
Peter Barker
622549456c
Tools: autotest: convert plane over to new tests structure
2018-12-18 10:06:09 +11:00
Peter Barker
a320a54f66
Tools: autotest: new wait_heartbeat raises exception if none received
2018-12-14 11:10:41 +11:00
Peter Barker
dd88e6e85c
Tools: autotest: correct wait_servo_channel_value error path
...
Also make flaps test a little more verbose
2018-11-29 09:48:31 +11:00
Peter Barker
88a003edd9
Tools: autotest: flake8 compliance
2018-11-24 08:30:02 +11:00
Peter Barker
f84370bb04
Tools: autotest: consolidate mission-loading functions
...
Also add sanity checks for mission loading
Tools: autotest: add missing import for arduplane.py
2018-11-16 10:06:25 +11:00
Andrew Tridgell
6b5088207b
autotest: upload failed CI logs to autotest server
2018-11-10 21:23:02 +11:00
Peter Barker
dc6a03f5e0
Plane: mission library handles gripper
2018-10-30 15:37:18 +11:00
Peter Barker
2157999307
Tools: autotest: add tests for gripper mission items
2018-10-30 15:37:18 +11:00
Peter Barker
a66cc52573
Tools: autotest: provide description of exceptions in constructors
2018-10-19 08:52:44 +11:00
Peter Barker
40ac2e493d
Tools: add a test for Plane's SET_ATTITUDE_TARGET support
2018-10-16 13:39:26 +11:00
Peter Barker
a7042e3847
Tools: autotest: tweak output messages, loosen camera trigger timeout
2018-09-08 12:56:15 +10:00
Peter Barker
6e44ea13d4
Tools: autotest: do not arm vehicle before flaps test
2018-09-07 23:18:43 +10:00
Peter Barker
56646651c6
Tools: autotest: add test for RCn_OPTION - camera trigger
2018-09-05 13:47:19 +10:00
Peter Barker
f47823f4e4
Tools: autotest: add test for RCn_OPTION - toggling relays
2018-09-05 13:47:19 +10:00
Pierre Kancir
f6cc934678
Tools: pep8 corrections + correct variable shadowing
2018-08-27 17:08:47 +10:00
Pierre Kancir
cc8aca1619
Tools: various fixes for Copter tests
...
Tools: correct altitude check
Tools: correct tests syntax
Tools: add autotest syntax check on common
Tools: search for syntax mistake on autotest lambda
Tools: put copter in hover trottle to prevent crash
Tools: reboot after baterry failsafe test
Tools: copter takeoff wait_ready_to_arm before arming
Tools: arm copter after land on RTL
Tools: reset copter battery voltage after battery failsafe
2018-08-21 20:41:09 +10:00
Peter Barker
2a174a5dac
Tools: add test for Sprayer-on-Rover
2018-08-17 15:33:35 +09:00
Pierre Kancir
2f9f793ccf
Tools: add arm and disarm tests
2018-08-15 16:38:20 +10:00
Peter Barker
8e3b69bca0
Tools: autotest: add flaps test
2018-08-15 10:16:13 +10:00
Pierre Kancir
a8ea84a729
Tools: autotest: clean function arguments
2018-08-15 10:16:13 +10:00
Peter Barker
af37e10126
Tools: autotest: factor out starting of our our mavlink connection
2018-08-04 10:07:22 +10:00
Pierre Kancir
a930822d9d
Tools: unify exception on os.link
2018-08-03 08:40:33 +10:00
Michael du Breuil
90216f7cb6
Tools: Slow rover test down for CI, remove unneeded variable
2018-08-01 09:19:20 +10:00
Peter Barker
6dd8dbeb40
Tools: autotest: add ability to add breakpoints in autotest
2018-07-27 09:58:15 +10:00
Peter Barker
513865ae4d
Tools: autotest: flake8 compliance
2018-05-09 14:23:51 +10:00
Karthik Desai
40cd0cd17f
Tools: autotest: Use the generic run_test.
...
If any of the tests throws an exception, it will be caught by the generic test function
that collects all errors and displays them before passing the result to the vehicle testcode.
Hence the name of the test and the exception that got raised get printed in a single
location. This nicely reduces code duplication.
2018-05-09 14:23:45 +10:00
Karthik Desai
9de1813ae6
Autotest: Fix a race condition on the regression tests on Windows
2018-03-23 09:13:37 +09:00
Peter Barker
fe3b882bea
Tools: autotest: move close method up to common.py
2018-03-20 08:39:12 +11:00
Peter Barker
b2cb6e196c
Tools: autotest: pull common MAVProxy options into common.py
2018-03-20 08:39:12 +11:00
Peter Barker
b348cfa985
Tools: autotest: flake8 compliance
...
Taking the opportunity to make massive changes while we're destroying
history anyway.
2018-03-15 07:54:21 +09:00
Pierre Kancir
259dda810d
Tools: use base class to share code between vehicle tests
...
Autotest: common.py add new base class and test
Autotest : Common add heartbeat handling on wait_mode timeout
Autotest: common.py add reach_heading_manual and reach_distance_manual
Autotest: new autotest implementation for Rover
Autotest : rover add drive_square test
Autotest: new autotest implementation for Copter
Autotest: new autotest implementation for Plane
Autotest: new autotest implementation for Sub
Autotest: new autotest implementation
Autotest: new autotest implementation for QuadPlane
Autotest : Sub disable GCS_Failsafe on autotest to prevent timeout. The failsafe aren't currently tested on Sub
2018-03-15 07:54:21 +09:00
khancyr
fac89ed437
Tools: autotest: move common functionality to common.py
...
Tools: don't need to pass option on first mavproxy
Tools: reformat common.py and add commun function
Tools: use new common functions
Tools: move functions from rover to commun and reorder
Tools: add and use set_rc function with timeout
Tools: fix style for pep8
2017-12-02 22:28:22 +11:00
Dr.-Ing. Amilcar Do Carmo Lucas
5c07a44a6d
Tools: Fix a race condition on the regression tests on Windows
...
Added \r\n to the expect() string as recomended at:
http://pexpect.readthedocs.io/en/stable/overview.html#find-the-end-of-line-cr-lf-conventions
this should work on both windows and linux systems
pexpect says it will always do a minimal (non greedy) matching and docs explicitly say that a .+ expression will always return only one character. These lines in autotest are looking for \S+, which, believing the documentation, would only return one character of the log file path.
Now we know that's not true, neither for Linux or for Windows (given the logs from @karthikdesai), so I can only assume that it does a greedy match but only for the characters it has received at the time expect is called.
Apparently, in the machines we are using autotest, it isn't a problem since MAVProxy is likely fast to give its output to pexpect before the expect method is called. On @karthikdesai's machine that wasn't happening since his machine was more or less loaded.
Concluding, this looks like a correct fix in the sense that it extends the regex pattern to wait for the end of line (and probably other places could benefit from it too).
2017-11-22 17:01:05 +09:00
Peter Barker
2f76f83ab7
Tools: autotest: add and use progress function
...
Based on work done by khancir
(https://github.com/ArduPilot/ardupilot/pull/6360 )
Tools: arduplane.py change print to progress function
Tools: quadplane.py change print to progress function
Tools: ardusub.py change print to progress function
2017-11-14 16:02:05 +11:00
Pierre Kancir
76bb081d60
Tools: autotest: add python headers to scripts
...
Tools: arduplane.py add python header
Tools: apmrover2.py add python header
Tools: arducopter.py add python header
Tools: ardusub.py add python header
Tools: quadplane.py add python header
2017-11-14 14:47:32 +11:00
Peter Barker
78a0298af0
Tools: autotest.py: look at EKF flags to determine armability
2017-09-15 15:57:11 +01:00
Peter Barker
1b7122d733
Tools: add a --speedup parameter to autotest to control speed of all sims
2017-08-29 22:49:40 +01:00
Miguel Arroyo
38297c4d19
Tools: Adds GDBServer with screen option for debugging
2017-08-24 21:37:06 +10:00
Peter Barker
34e611be59
Tools: autotest: wait for plane to disarm before downloading logs
2017-06-27 03:10:43 +01:00
Peter Barker
817efe9b6d
Tools: expect message for EKF readiness rather than sleeping
...
This solves a problem for me when running Valgrind as
30s was not sufficient
2017-01-26 16:53:13 +11:00
Pierre Kancir
bec09b9a57
autotest: python3 support
2016-11-09 11:48:22 -03:00
Pierre Kancir
5786d66ea1
autotest: simplify start_sitl
2016-11-09 11:48:22 -03:00
Pierre Kancir
9e1ffcae5d
Tools: update python coding style
...
Tools: update PrintVersion.py coding style
autotest: update python coding style
pysim: update python coding style
jsb_sim: update Python coding style
param_metadata: update Python coding style
2016-09-01 13:05:11 +10:00
Lucas De Marchi
f0590581e4
autotest: standardize name of param files
...
Try to make the various param files to follow similar namings:
- Lowercase the few ones using uppercase
- Use dash to separate name components
- Start with "copter", "plane", "rover", etc instead of the mix we
had
- Remove "params" from the filename since it's redundant with the
extension
2016-08-08 10:12:14 -03:00
Pierre Kancir
19d94737a0
autotest: move all default params to default_params directory
2016-08-03 17:44:37 -03:00
Andrew Tridgell
3489f7b576
autotest: use builtin plane sim for autotest
...
and simplify startup using defaults file
2016-07-22 16:42:46 +10:00
priseborough
e0d87bf529
autotest: Increase startup wait time to allow EKF and GPS checks to pass
2016-07-19 12:16:48 +10:00
Peter Barker
b23f983459
autotest: add --gdb option to autotest.py
2016-06-27 18:14:55 -03:00
Andrew Tridgell
084a37d4fa
autotest: enable LOG_REPLAY and LOG_DISARMED in autotest
...
this will give us the ability to analyse any EKF errors
2016-05-27 21:23:39 +10:00
Peter Barker
3548f90d3a
autotest: create SIL object to hold valgrind logpath
2016-05-27 08:07:07 -03:00
Peter Barker
7b86a05722
Tools: convert autotest build.X and fly.X to use waf build system
2016-05-27 08:07:07 -03:00
Peter Barker
8774f15b9a
Tools: add valgrind option to autotest.py
2016-04-22 09:42:33 +10:00
Andrew Tridgell
084b607862
autotest: updated string for "Flight plan received"
2015-11-26 12:52:19 +11:00
Andrew Tridgell
34689cf949
autotest: cope with mavproxy logging msg changes
2015-06-30 14:06:17 +10:00
Andrew Tridgell
aaff670ec4
autotest: use builtin JSBSim support for plane testing
2015-05-11 08:06:31 +10:00
Andrew Tridgell
d4e9418ad4
autotest: rename jsmsim folder to jsb_sim
...
this prevents problems on windows with virtualbox. It tries to run
JSBSim as the directory 'jsbsim' and fails
2015-04-14 09:04:11 +10:00
Andrew Tridgell
7f89f73ad1
autotest: use simulation time for all time delays
2015-04-13 10:08:12 +10:00
Andrew Tridgell
d2a188c55d
autotest: run plane test at maximum speed
2015-04-13 10:08:12 +10:00
Andrew Tridgell
0ea0b51ccd
autotest: start plane sim during initial parameter load
...
this is now needed to get timestamps from JSBSim
2015-03-24 08:06:50 -07:00
Andrew Tridgell
b4ce3e0ba5
autotest: lock in the altitude before the FBWB test
2015-01-22 11:33:25 +11:00
Andrew Tridgell
c1f9be75fe
autotest: fly the cruise rudder circuit a bit faster
2014-02-24 12:08:33 +11:00
Andrew Tridgell
ccc449db19
autotest: removed the set of SYSID_THISMAV
...
this led to a race condition where some parameters were not loaded as
they were being sent with the wrong system ID
2014-02-18 15:51:25 +11:00
Andrew Tridgell
29c818ec6f
autotest: re-fetch parms after loading
...
trying to debug an autotest issue
2014-02-17 13:58:11 +11:00
Andrew Tridgell
0d6e8e9c0d
autotest: fixed timeout waiting for LOITER
2014-02-17 13:58:11 +11:00
Andrew Tridgell
6121b9c58e
autotest: switched to binary log download over MAVLink
2013-12-28 21:47:12 +11:00
Andrew Tridgell
c6cbfdce9a
autotest: report initial and final altitude in alt hold tests
2013-10-17 17:22:19 +11:00
Andrew Tridgell
8f558609a9
autotest: tweak plane autotest debugging
2013-10-10 09:54:20 +11:00
Andrew Tridgell
ef104b6629
autotest: wait for a higher altitude on takeoff
...
otherwise left circuit can crash
2013-07-22 13:27:06 +10:00
Andrew Tridgell
81bb4f26a1
autotest: update plane test with more modes
...
added tests for FBWB, STABILIZE, CRUISE, ACRO and CIRCLE
2013-07-16 13:23:48 +10:00
Andrew Tridgell
2802814a66
autotest: cope with slower updating roll in MAVLink for plane
...
need less precision in horizontal roll test
2013-07-15 13:11:41 +10:00
Andrew Tridgell
93db4a4a5b
autotest: consider lack of symlinks to be a soft error
...
some people use VMWare shared drives, which don't do hard links
2013-06-24 13:06:54 +10:00
Andrew Tridgell
21436dc1a6
autotest: fixed import of mavwp
2013-06-18 17:02:00 +10:00
Andrew Tridgell
2cb28076c8
autotest: tweak plane autotest mission and parameters
...
a bit better with the new controllers
2013-05-31 15:31:59 +10:00
Andrew Tridgell
168f76e76c
autotest: added --map option to autotest.py
2013-05-02 20:07:04 +10:00
Andrew Tridgell
9904bcd9aa
autotest: changed mavlink log names to *.tlog
...
easier to view in MP
2013-04-28 15:01:31 +10:00
Andrew Tridgell
843692ee5d
autotest: more tweaks to Rascal parameters
2013-01-16 15:16:26 +11:00
Andrew Tridgell
71f8166818
autotest: fix a race condition with baro noise on startup
...
we need to wait for a full GPS fix
2012-11-19 11:56:46 +11:00
Andrew Tridgell
a9af6e95cb
APM: higher throttle on takeoff in ArduPlane autotest
2012-08-30 07:37:26 +10:00
Andrew Tridgell
681e67201d
APM: fixed orientation on runway in autotest
2012-08-29 17:17:38 +10:00
Andrew Tridgell
51247ad6c1
autotest: loiter can be a bit slow to circle sometimes
2012-08-27 13:19:21 +10:00
Andrew Tridgell
c1405bddb3
APM-autotest: fixed inside loop test
...
pitch 80 may not be reached due to granularity of the MAVLink logging
2012-08-27 11:45:07 +10:00
Andrew Tridgell
c8f5aeb7ba
autotest: change loiter heading accuracy to 10
2012-07-04 15:59:35 +10:00
Andrew Tridgell
70669434a2
autotest: wait for VFR_HUD to be non-zero on startup
2012-06-04 14:55:40 +10:00
Andrew Tridgell
34af851b20
autotest: forced loiter via 2nd method
2012-05-03 15:40:13 +10:00
Andrew Tridgell
67afdc7485
autotest: fixes for MAVLink 1.0 in autotest
2012-04-27 15:15:53 +10:00
Andrew Tridgell
d60126fc1f
autotest: fixed overshoot due to low resolution log timing
2012-04-03 10:43:05 +10:00
Andrew Tridgell
abd33dd914
autotest: fixed order of startup messages
2012-04-03 09:53:26 +10:00
Andrew Tridgell
8f18d08eb5
autotest: added a lot more interal checking
...
check each of the sub-tests pass for overall pass
2012-02-14 11:26:42 +11:00
Andrew Tridgell
86b86c1bdf
autotest: bit more throttle on takeoff
...
needed for increased rolling friction
2011-12-19 11:25:59 +11:00
Andrew Tridgell
345093e982
autotest: make the Rascal a tail dragger again
...
good for testing wheeled takeoff
2011-12-18 18:57:20 +11:00
Andrew Tridgell
42d7bf7fce
autotest: added automated landing test for ArduPlane
2011-12-18 17:31:46 +11:00
Andrew Tridgell
d68abb99a8
loosen RTL criterion (wind affected)
2011-12-13 20:05:39 +11:00
Andrew Tridgell
bb50154f1c
autotest: fixed wind specification for arduplane test
2011-12-13 19:04:00 +11:00
Andrew Tridgell
2cc67d0a61
autotest: added a 5m/s wind blowing south in plane test
2011-12-13 15:29:13 +11:00
Andrew Tridgell
0a7f2bcc44
autotest: use random MAVLink system IDs
...
this allows more than one test to be viewed at the same time in
qgroundcontrol
2011-12-03 07:55:03 +11:00
Andrew Tridgell
cf7073128d
autotest: adapt test suite to new simulation framework
2011-12-02 17:37:55 +11:00
Andrew Tridgell
12025c8b54
autotest: added idle hooks for ArduPlane testing too
2011-11-28 16:22:33 +11:00
Andrew Tridgell
f737d22026
autotest: added a loop to ArduPlane test
2011-11-18 17:50:12 +11:00
Andrew Tridgell
fdaa760aec
autotest: use FG_SCENERY for fgear scenery path
2011-11-18 17:50:12 +11:00
Andrew Tridgell
dd8593273f
autotest: make log messages on failure clearer
2011-11-18 17:50:12 +11:00
Andrew Tridgell
00374bea0a
autotest: fixed killing of Xvfb
...
this should make fly.ArduPlane more reliable
2011-11-18 17:50:12 +11:00
Andrew Tridgell
147dc2529f
autotest: added initial implementation of flying of ArduPlane
...
takeoff, circuit, roll, RTL, mission
2011-11-13 23:50:28 +11:00