Peter Barker
29fda1681b
Tools: add test for mount targetting
2019-11-12 07:52:22 +08:00
Peter Barker
48657dd2c9
autotest: replace setHeartbeat(bool) with setHeartbeat(float)
...
We don't do heartbeats at 1Hz - we do them at the speedup rate.
2019-11-08 19:49:46 +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
2dd47e54e7
autotest: remove default True parameter to setHeartbeat
2019-11-08 19:49:46 +11:00
Peter Barker
74eb6760ea
autotest: correct setHeatbeat -> setHeartbeat
2019-11-08 19:49:46 +11:00
Peter Barker
9605639070
autotest: loosen check on follow-mode check
2019-11-05 19:55:45 +11:00
Peter Barker
f177679e61
autotest: add more tests for mount behaviour
2019-11-05 19:55:45 +11:00
Matt Lawrence
8d2a624fcc
Autotest: Refactor failsafe tests
2019-11-03 07:07:34 +08:00
Peter Barker
ec9eaeab10
autotest: increase allowed time for receiving ack to compass-cal cmd
...
Saw an instance of this timeout happening on the server
2019-10-18 12:24:40 +11:00
Andy Piper
f02d21811d
Tools: autotest dynamic notches
2019-10-10 20:26:02 +09:00
Peter Barker
c5f52a8355
Tools: autotest: tests for new fence code
...
Tools: autotest: move clear_mission up, use it before running each test
Also have it understand MAV_MISSION_TYPE_ALL
Tools: autotest: add tests for polyfence
Tools: autotest: add tests for multiple inclusion polyfences
Tools: autotest: ensure we can't arm inside a circle exclusion zone
Tools: autotest: add test for arming outside an inclusion zone
Tools: autotest: add tests for upload timeout
Tools: autotest: add tests for not arming due to polygon zones
Tools: autotest: add test for fence point reboot survivability
Tools: autotest: add test for moving fence point
Tools: autotest: add some tests via MAVProxy
Tools: autotest: add test for avoiding polygonal exclusion zones
Tools: autotest: add test for object avoidance
Currently disabled as it doesn't pass where it seemingly should.
Tools: autotest: skip MAVProxy tests on older MAVProxy versions
Tools: autotest: adjust fence loading for lack of string back from MAVProxy
Tools: autotest: create a do_RTL function
Tools: autotest: cope with loading QGC-style fence files
Tools: autotest: add test for object-avoidance in guided mode
Tools: autotest: add OA test for auto mode
Tools: autotest: add test for bendy ruler in guided mode
Tools: autotest: adjust for new MAVProxy fence module not emitting old strings
Tools: autotest: add tests for prearming due to bad parameter values
2019-09-28 07:58:48 +09:00
Peter Barker
a386048be7
Tools: autotest: add two basic tests for radio failsafe
2019-09-26 15:19:10 +10:00
Peter Barker
642935fd43
Tools: random Python cleanups based on lgtm analysis
2019-09-21 22:26:03 +10:00
Peter Barker
de3c9340cb
Tools: autotest: correct timeout on heli spline mission
2019-09-19 22:39:10 +10:00
Peter Barker
1a7284ca73
Tools: autotest: add test for spline-as-last-waypoint
2019-09-17 09:05:23 +09:00
Peter Barker
36ba3a6e4c
Tools: autotest: add test for follow mode
2019-09-16 12:00:11 +10:00
Peter Barker
479b2c5e11
Tools: autotest: allow nav-delay-abstime to delay arbitrary time
2019-08-21 16:08:24 +10:00
Peter Barker
bf0a947317
Tools: autotest: improve test diagnostics
2019-08-08 08:35:52 +10:00
Peter Barker
acf6cb8d75
Tools: autotest: rename clear_mission to clear_mission_using_mavproxy
2019-08-06 17:05:57 +10:00
Peter Barker
bca35ac469
Tools: autotest: stop trying to arm Heli in throw mode
2019-08-06 17:05:41 +10:00
Peter Barker
12b9928a56
Tools: autotest: break out a load_fence function
2019-08-05 16:37:08 +10:00
Andrew Tridgell
cee7cce1ca
autotest: update vision position test for new msg
2019-08-05 13:58:08 +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
Pierre Kancir
9850d1afec
Tools: update with flake8
...
W605 invalid escape sequence '\s'
F402 import 'time' from line 10 shadowed by loop variable
E101 indentation contains mixed spaces and tabs
E703 statement ends with a semicolon
2019-07-09 12:46:39 +10:00
Peter Barker
e36231d547
Tools: autotest: loosen distance check when looking for lower point
2019-07-01 20:08:35 +10:00
Peter Barker
89ef13d32e
Tools: autotest: reference issue in disabled beacon test
2019-07-01 12:12:43 +10:00
Peter Barker
5b14be92e6
Tools: autotest: change beacon test to use EKF3
2019-07-01 07:20:58 +09:00
Peter Barker
b22fccd35d
Tools: autotest: add test for beacon navigation
2019-07-01 07:20:58 +09:00
Peter Barker
6442dd1f2f
Tools: autotest: make vision position test more reliable
2019-06-29 10:49:20 +10:00
Peter Barker
1827d88f9a
Tools: autotest: use set_parameter for setting glitch offsets
...
This state was persistent across tests, which wasn't helping for
consistency.
2019-06-21 13:50:55 +10:00
Peter Barker
98cb68157f
Tools: autotest: add a test for Copter surface tracking
2019-06-21 13:50:55 +10:00
Peter Barker
326e208123
Tools: autotest: allow switch to debounce in aux-switch test
2019-06-14 10:40:52 +10:00
Peter Barker
23f5fabbcf
Tools: autotest: add tests for aux-switch options for mission reset and clear
2019-06-13 19:37:32 +10:00
Peter Barker
10120cee54
Tools: autotest: disable horizontal fence avoidance test showing bugs
2019-06-07 15:26:39 +10:00
Peter Barker
6e13adb43c
Tools: autotest: add test for fence Avoidance
2019-06-07 15:26:39 +10:00
Peter Barker
9ee0befb38
Tools: autotest: Copter: add avoidance test for beacon fence
2019-06-04 09:06:07 +09:00
Peter Barker
3008fe6eb5
Tools: autotest: Copter: add test for fence avoidance sliding
2019-06-04 09:06:07 +09:00
Peter Barker
acdddb8b1f
Copter: autotest: Copter: add test for proximity boundary avoidance
2019-06-04 09:06:07 +09:00
Peter Barker
18391d8a9a
Tools: autotest: produce stacktraces under Python3
2019-05-02 13:15:37 +10:00
Peter Barker
68769e24c1
Tools: autotest: add timeout for problematic spline test
2019-04-29 10:02:09 +10:00
Peter Barker
b207c2607e
Tools: autotest: correct spline waypoint arming sequence
2019-04-25 13:05:46 +10:00
Peter Barker
27f642014c
Tools: autotest: add test for Copter onboard mag calibration
2019-04-23 10:06:17 +10:00
CAO MUQING
07747c5c09
Tools: autotest: add and update zigzag flight mode test for copter
...
Tools: autotest: add copter zigzag mode
Tools: autotest: update copter zigzag flight test
2019-04-19 07:51:49 +09:00
Peter Barker
18ed422a97
Tools: autotest: add test for flying spline waypoints
2019-04-16 21:41:58 +10:00
Peter Barker
119c5fe835
Tools: autotest: do not navigate to 0,0,0
...
This falls afould of the uninitialised-location check
2019-04-10 11:24:55 +10:00
Peter Barker
601504e685
Tools: autotest: ensure RNFD messages emitted
2019-04-09 22:17:58 +10:00
Peter Barker
7034ef2df7
Tools: autotest: raise throttle in loiter mode
...
This avoids the vehicle hitting the ground while we're looking for
messages.
2019-04-09 19:30:41 +10:00
Peter Barker
92970cf4ed
Tools: autotest: add test for Copter poshold user takeoff
2019-04-09 08:15:39 +10:00
Peter Barker
83f6bed1dc
Tools: autotest: add test for taking off in poshold in heli
2019-04-08 15:31:41 +10:00
Randy Mackay
0daed8c793
Tools: update autotest to use FLOW_TYPE
2019-04-08 11:26:59 +09:00
Rajat Singhal
a87d388a6c
Tools: autotest: Added tests for checking POSITION_TARGET messages for Copter
...
Tools: autotest: Added timeout, mavutil const in test_guided_local_target()
Tools: autotest: Corrected mesage checking in test_guided_local_target()
Tools: autotest: Fixed comments in test_guided_local_target()
Tools: autotest: Added test for checking whether correct local target is
received by Copter
Tools: autotest: added error tolerance, divided check into xyz components
Tools: autotest: Added test for correct local velocity target for Copter
Tools: autotest: Added test for checking if POSITION_TARGET_LOCAL messages are sent only in Guided Mode for Copter
2019-04-05 21:04:10 +11:00
Andrew Tridgell
84d5d4c933
autotest: fixed precision landing test for copter
...
make sure the target is away from the current location
2019-04-05 15:13:30 +11:00
Peter Barker
696de42eea
Tools: autotest: check we're seeing PL messages in the log during
...
precland
2019-04-04 11:54:58 +11:00
Peter Barker
b1119589e7
Tools: autotest: move AVC test into Copter-specific block
2019-04-01 11:35:59 +11:00
Peter Barker
74e4a7047f
Tools: autotest: add simple test for Copter flying with MANUAL_CONTROL
2019-03-27 16:12:10 +11: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
25e5243b63
Tools: autotest: include drift in Copter ManualThrottle tests
2019-03-26 20:57:15 +11:00
Peter Barker
e155ddbeba
Tools: autotest: add yaw test for motor fail test
2019-03-25 16:57:41 +11:00
Peter Barker
f19b831bc3
Tools: autotest: add brake mode test
2019-03-24 10:32:26 +11:00
Peter Barker
16476332b2
Tools: autotest: fix no-gps switch-to-location test
2019-03-22 08:19:42 +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
9ca2c9d692
Tools: autotest: python3 fixes
...
Tools: autotest: use inbuilt zip on Python3
2019-03-13 20:26:24 +11:00
Peter Barker
72aeb26e86
Tools: autotest: allow more time for gps-glitch-in-auto test to run
2019-03-13 16:03:30 +11:00
Peter Barker
3a6298db9b
Tools: autotest: loosen maximum distance allowed on loiter-to-ne
2019-03-13 14:51:04 +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
f7ecba1a36
Tools: autotest: shove resets shove-time to zero; eliminate race condition
2019-03-12 16:09:03 +11:00
Peter Barker
e045f61473
Tools: autotest: add test for throw mode
2019-03-12 11:09:37 +11:00
Peter Barker
b47b97a981
Tools: autotest: add test for QuadPlane controller pre-arm checks
2019-03-12 10:14:14 +11:00
Peter Barker
b450355ff6
Tools: autotest: remove needless wrappers, initialisation etc around guided-submode test
...
Also disable disarm delay due to autotest mavlink traffic issues
2019-03-11 16:19:30 +11:00
Peter Barker
28e27b4120
Tools: autotest: improve test reliability
...
Also remove redundant reset code
Tools: autotest: drain mav and all pexexpects before running each test
Tools: autotest: increase some timeouts for failures when running under GDB
Tools: autotest: correct ordering of operations in mount test
2019-03-11 13:59:51 +11:00
Peter Barker
9f80e5b5f5
Tools: autotest: fix horizontal fence test
...
We do not receive position updates fast enough to reliably detect the
vehicle to be within 10m of home, so increase that radius
2019-03-11 11:25:04 +11:00
Peter Barker
c5c67362fa
Tools: autotest: do not test Copter for loiter-requires-position
2019-03-11 11:03:03 +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
01440f2587
Tools: autotest: increase debug on precland
2019-03-10 20:09:27 +11:00
Peter Barker
a504f9ac8d
Tools: autotest: add option to use cached home for distance_to_home
2019-03-09 12:44:06 +11:00
Peter Barker
529903622d
Tools: autotest: reduce output lines in NavDelay test
...
Also remove pointless (unclosed) contexts and try blocks
2019-03-09 10:03:10 +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
194142b343
Tools: autotest: add simple test for fence prearms
2019-03-08 08:57:27 +09:00
Peter Barker
91436c5314
Tools: autotest: add test for high-throttle-at-mode-change
2019-03-07 11:33:20 +11:00
Peter Barker
0cdb1c9d1e
Tools: autotest: remove redundant wait-ready-to arm output
2019-03-07 08:36:35 +11:00
Peter Barker
e800ae21ed
Tools: autotest: add simple test that althold works
2019-03-06 18:15:13 +11:00
Peter Barker
d3b8504757
Tools: autotest: improve debug output
2019-03-06 15:59:32 +11:00
Peter Barker
b40f03dfbe
Tools: autotest: add test for Copter PID parameter checks
2019-03-06 10:36:32 +09:00
Pierre Kancir
b45e2ed6ab
Tools: correct log download for copter
2019-03-01 20:48:39 +11:00
Peter Barker
d43bcf4649
Tools: autotest: add simple mode-requires-position test for Copter
2019-03-01 13:43:20 +09: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
4d0ae8c371
Tools: autotest: add test for MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED
2019-02-26 14:09:21 +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
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
025f007f96
Tools: autotest: simplify mission loading
2019-02-16 10:27:41 +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
fe2f9f1f14
Tools: autotest: improve autotest output
2019-02-07 08:51:13 +11:00
Dmitri Ranfft
4e8f3a7a3a
Autotest: renamed requested RangeFinder parameters to account for the new changes.
2019-02-04 11:08:52 +09:00
Peter Barker
1fcd7fac06
Tools: autotest: add test for flip mode
2019-02-04 11:07:28 +09:00
Peter Barker
e23313e16b
Tools: autotest: ensure RC input is at defaults before each test
2019-02-04 08:00:07 +11:00
Peter Barker
fa37ad344b
Tools: autotest: refactor setting of rc defaults
2019-02-04 08:00:07 +11:00
Peter Barker
2834fd8017
Tools: autotest: add test for channel override cancel
2019-02-01 11:48:01 +11:00
Peter Barker
44ff21479d
Tools: autotest: add a test for RTL speed
2019-01-31 19:34:32 +09:00
Peter Barker
b66f80f452
Tools: autotest: allow heli tests to be run individually
2019-01-16 21:36:13 +11:00
Peter Barker
d0aaf34db5
Tools: autotest: add option to skip tests if they're annoying us in CI
2019-01-14 20:15:47 +11:00
Peter Barker
ecb3cabf72
Tools: add flight test for rangefinder in Copter
2019-01-09 16:55:42 +11:00
Peter Barker
55f751a8f4
Tools: autotest: add some tests for Copter parachute functions
2019-01-09 13:16:03 +11:00
Peter Barker
e93cff6e44
Tools: autotest: add test that rangefinder switch works
2019-01-08 12:39:40 +11:00
Peter Barker
e6bfbe5f07
Tools: autotest: fix initial mode switch position race
...
Solves a race condition where an initial setting of mode via mavlink
could be overwritten by the vehicle polling the RC channels and changing
mode based on the new positions.
This will require each vehicle to specify the mode expected without an
RC inputs present and the expected mode once the RC defaults have been
installed. These two modes will need to be different to eliminate the
race condition.
2018-12-27 15:15:59 +11:00
Peter Barker
69293f46f3
Tools: autotest: convert Heli to new tests framework
2018-12-18 10:06:09 +11:00
Peter Barker
3b57635ec9
Tools: autotest: convert Copter to new tests framework
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
ec288cd867
Tools: autotest: make reboot detection more reliable
2018-12-14 09:48:17 +11:00
Peter Barker
f442a0a1b7
Tools: autotest: remove bad calls to progress
2018-12-11 12:04:24 +11:00
Peter Barker
723ad34dfb
Tools: autotest: disable disarm_delay in case of rc getting stuck
2018-12-10 12:52:41 +09:00
Peter Barker
4ae8595da3
Tools: autotest: make fly_avc_test a little more self-contained
2018-12-06 10:02:03 +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
Peter Barker
8b36565b6c
Tools: autotest: disable terrain in optical flow test
...
It is possible this is the cause of the unreliability of this test; the
rangefinder sees step-jumps in its readings.
2018-11-16 09:02:15 +11:00
Peter Barker
a75d678e7f
Tools: autotest: add tests for precision loiter and landing
2018-11-15 19:03:01 +11:00
Peter Barker
1d2f8555c0
Tools: ardupilotwaf: adjust for new location of uploader.py
2018-11-15 09:55:14 +11:00
Andrew Tridgell
6b5088207b
autotest: upload failed CI logs to autotest server
2018-11-10 21:23:02 +11:00
Peter Barker
c0af0cfe70
Tools: autotest: improve debug on optical limits test
2018-11-09 15:50:07 +11:00
Peter Barker
4e82250055
Tools: autotest: add test for Copter loiter-to-alt
2018-10-30 17:50:46 +09:00
Peter Barker
432b1fda3a
Tools: autotest: add tests for AP_Mount
2018-10-30 17:19:14 +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
Andrew Tridgell
de39318f6d
autotest: increase GPS AUTO glitch timeout
...
this was timing out in CI
2018-10-17 13:56:06 +11:00
Peter Barker
14d2012f54
Tools: autotest: add test for ekf navigation speed limits
2018-10-09 10:47:38 +11:00
Pierre Kancir
3a29379d9e
Tools: run test_arm_feature for heli
2018-10-03 20:10:13 +10:00
Pierre Kancir
f441ab9f2a
Tools: autotest: validate RTL if disarmed close to home
2018-10-03 17:45:54 +10:00
Pierre Kancir
598b487fef
Tools: autotest: adjust start alt for throttle failsafe
2018-10-03 17:45:54 +10:00
Peter Barker
e4738192dd
Tools: autotest: clear mission before toggling it in with ch7
2018-10-03 17:45:54 +10:00
Peter Barker
38ae0765ff
Tools: autotest: increase throttle in stabilize mode to account for pitching
2018-10-03 17:45:54 +10:00
Peter Barker
a7042e3847
Tools: autotest: tweak output messages, loosen camera trigger timeout
2018-09-08 12:56:15 +10:00
Peter Barker
a9621191d8
Tools: autotest: correct descent throttle in copter fence test
...
1500 is sufficient that we may not descend.
2018-09-05 10:42:33 +10:00
Pierre Kancir
f6cc934678
Tools: pep8 corrections + correct variable shadowing
2018-08-27 17:08:47 +10:00
Pierre Kancir
d5c4c32529
Tools: add gripper test for copter
2018-08-27 14:39:49 +10:00
cclauss
da7fe1055a
Tools: add missing import to arducopter.py
...
Fixes undefined names on lines 1406 and 1408
2018-08-27 11:40:47 +10:00
Pierre Kancir
aedd5a9db2
Tools: make takeoff check if it need arming and auto arm
2018-08-25 09:29:24 +09:00
Pierre Kancir
92d06c354e
Tools: rise nav_takeoff_delay_abstime delta to cope with rounding.
2018-08-25 09:28:36 +09: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
ac55fae1c1
Tools: autotest: add test for Copter delayed-takeoff-with-do-set-speed
2018-08-20 14:15:40 +09:00
Peter Barker
680f78869d
Tools: autotest: tidy and fix nav-delay test
2018-08-16 13:33:56 +10:00
Pierre Kancir
303e40f578
Tools: arducopter.py: add tolerance to takeoff alt
2018-08-15 20:06:07 +10:00
Pierre Kancir
2f9f793ccf
Tools: add arm and disarm tests
2018-08-15 16:38:20 +10:00
Pierre Kancir
a8ea84a729
Tools: autotest: clean function arguments
2018-08-15 10:16:13 +10:00
Pierre Kancir
579d471e98
Tools: use set_parameter instead of mavproxy directly
2018-08-15 10:16:13 +10:00
Peter Barker
eba8dee371
Tools: autotest: add test for delay-until-absolute-hour-minute-second
2018-08-08 08:41:22 +10:00
Peter Barker
b8c0199853
Tools: autotest: add test for copter's NAV_DELAY function
2018-08-07 22:37:07 +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
a262099d35
Tools: arducopter.py: set submode change as test
2018-08-03 08:57:50 +10:00
Pierre Kancir
a930822d9d
Tools: unify exception on os.link
2018-08-03 08:40:33 +10:00
Pierre Kancir
d507805891
Tools: move guided_achieve_heading to common
2018-08-01 16:33:55 +10:00
Pierre Kancir
facc254138
Tools: move run_cmd to common
2018-08-01 16:33:04 +10:00
Peter Barker
b8030816b8
Tools: autotest: add tests for mode changes for Copter and Rover
2018-08-01 12:11:30 +09: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
baf869f8d6
Tools: autotest: add test for autotune
2018-07-31 13:37:43 +09:00
Peter Barker
20c1c4c684
Tools: autotest: add test for guided changing submode after takeoff
2018-07-31 10:40:57 +10:00
Peter Barker
56a4cd43d4
Tools: autotest:eliminate parameter restore using contexts
2018-07-31 10:40:57 +10:00
Peter Barker
6dd8dbeb40
Tools: autotest: add ability to add breakpoints in autotest
2018-07-27 09:58:15 +10:00
Pierre Kancir
6c43ab27c1
Tools: remove trailling semilocons
2018-07-12 21:13:02 +10:00
Peter Barker
38898dc793
Tools: autotest: add test for vision position estimate
2018-06-30 10:11:10 +10:00
Peter Barker
975b8c2e5f
Tools: autotest: use reboot to apply parameter changes; avoid sim restart
...
Previously we stopped the simulation to ensure parameter changes are
applied to the simulated vehicle. We can now reboot the simulated
autopilot, so these patches make use of those changes.
One big advantage is that the --gdb option is in play for the applying
of the parameters to the vehicle.
2018-06-29 10:54:27 +10:00
Peter Barker
0b8b23baf6
Tools: adjust tests for vfr_hud getting absolute altitude
2018-06-05 09:38:20 +10:00
Peter Barker
23a2ea4084
Tools: autotest: set rc to 1500 on RTL
2018-05-15 20:06:05 +09:00
Guilherme Sousa
dab3b93dc3
autotest: Improved motor failure test
...
This is based on https://github.com/ArduPilot/ardupilot/pull/6028 by
GuilhermeGSousa
2018-05-15 20:06:05 +09:00
Peter Barker
f3d6d8e236
Tools: autotest: make Copter tests more reliable
...
RTL may disarm the vehicle on completion. We RTL at several times in
the testing, and the subsequent tests were not rearming. This means we
had a race condition.
We now explicitly wait to be disarmed by the RTL mode, and rearm the
vehicle.
This is an interim patch until we decide whether to make each "test"
self-contained, and have a precondition of "on ground and disarmed".
2018-05-11 08:07:21 +09:00
Peter Barker
58f4b4b65d
Tools: autotest: correct copter auto mission test
2018-05-09 14:23:51 +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
75ae59c0c8
Autotest: Remove frame initialisation.
...
This will otherwise override the --frame parameter. The init() function takes care of the initialisation
2018-04-17 23:00:04 +10:00
Michael du Breuil
69cf009898
AutoTest: Update copter battery failsafe test
2018-03-27 22:12:21 +01: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
8511c2c04b
Tools: autotest: factor out apply_parameters_using_sitl
...
Three of our models start a SITL instance to apply parameters
then restart it so that the parameter changes can take effect.
Factor that functionality out.
2018-03-20 08:39:12 +11:00
Peter Barker
fe3b882bea
Tools: autotest: move close method up to common.py
2018-03-20 08:39:12 +11:00
Peter Barker
31ba99e58a
Tools: autotest: use buildlogs_path for all buildlogs
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
Peter Barker
aeb99c675b
Tools: autotest: remove racey mavproxy.expect
...
The autopilot could well have emitted the statustext before we
start to expect() it
2018-02-13 17:15:05 +11:00
Peter Barker
8c516fb29c
Tools: autotest: add max-alt fence
2017-12-13 10:04:50 +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
Andrew Tridgell
776355ef2b
autotest: fixed heli test
...
need to wait for motor runup
2017-09-27 20:54:21 +10: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
Peter Barker
0334cc1c88
Tools: correct copter's fly_throttle_failsafe failure case
2017-08-26 09:36:09 +10:00
Miguel Arroyo
38297c4d19
Tools: Adds GDBServer with screen option for debugging
2017-08-24 21:37:06 +10:00
Peter Barker
2437260f8a
Tools: copter horizontal fence test waits for disarm then rearms
2017-08-04 17:44:43 +01:00
Peter Barker
dd09bb338e
Tools: wait for vehicle to disarm after handling throttle failsafe
2017-08-04 17:44:43 +01:00
Peter Barker
791b1f43e9
Tools: allow heli autotest to use different frame
2017-07-05 17:34:09 +01:00
Peter Barker
59647b3434
Tools: autotest: correct Copter params file handling
2017-07-05 17:29:55 +01:00
Peter Barker
2ddf7f99b5
Tools: autotest: option to run different frame
2017-05-26 16:53:07 +09: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
Randy Mackay
31b5941c45
SITL: revert increase speed of yaw in copter sitl
...
ACRO_Y_EXPO's default has been set to zero so we need to revert the
change to the yaw input in the SITL autotest
2016-11-07 10:34:33 +09:00
Randy Mackay
964ddfb0d2
SITL: increase speed of yaw in copter sitl
...
This should resolve the SITL failures caused by the recent change to add
yaw expo to all manual flight modes
2016-10-27 10:44:44 +09:00
Andrew Tridgell
fcc89a2577
autotest: fixed RC_CHANNELS_RAW -> RC_CHANNELS
2016-10-14 11:40:23 +11:00
Peter Barker
068c310ed5
Tools: remove hard-coded FRAME global, specify same via parameter
2016-10-10 11:09:47 +11: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
Pierre Kancir
07eb170b39
Autotest: correct mavproxy unloaded map error
2016-08-01 10:37:15 -03:00
priseborough
18c4327a2a
autotest: reduce copter test run time
...
Signed-off-by: priseborough <p_riseborough@live.com.au>
2016-07-19 12:16:50 +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
Randy Mackay
a7422153cb
SITL: disable avoidance so we can trigger fence failsafe
2016-06-22 11:38:15 +09:00
Randy Mackay
ed90d00fff
SITL: throttle to 50 percent now that hover throttle automatically updates
2016-06-18 11:55:49 +09: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
480e142cfb
autotest.py: remove TARGET no longer required
2016-05-27 08:07:07 -03: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
Glody Guo
cda21a3d78
Fix argument 'valgrind' issue about fly.CopterAVC test
...
Commit 8774f15
causes fly.CopterAVC test failure.
Here is the failure info below:
>>>> FAILED STEP: fly.CopterAVC at Tue May 17 13:21:56 2016 (fly_CopterAVC() got an unexpected keyword argument 'valgrind')
Traceback (most recent call last):
File "./Tools/autotest/autotest.py", line 406, in run_tests
if not run_step(step):
File "./Tools/autotest/autotest.py", line 232, in run_step
return arducopter.fly_CopterAVC(viewerip=opts.viewerip, map=opts.map, valgrind=opts.valgrind)
TypeError: fly_CopterAVC() got an unexpected keyword argument 'valgrind'
('check step: ', 'fly.CopterAVC')
FAILED 1 tests: ['fly.CopterAVC']
Here is the commit info below:
commit 8774f15b9a
Author: Peter Barker <pbarker@barker.dropbear.id.au>
Date: Mon Apr 11 18:05:39 2016 +1000
Tools: add valgrind option to autotest.py
:040000 040000 a111bc5b18
609503f3b1
M Tools
2016-05-17 21:36:57 +10:00
Francisco Ferreira
ae5fdc2fde
autotest: if auto mission fails, land the copter
2016-05-13 19:06:00 +09:00
Francisco Ferreira
c873524966
autotest: change wait_waypoint mode check
...
If we change mode while waiting for waypoints then we are no longer running the mission and should fail
2016-05-13 19:05:57 +09:00
Peter Barker
8774f15b9a
Tools: add valgrind option to autotest.py
2016-04-22 09:42:33 +10:00
Randy Mackay
a5de231a21
SITL: ease gps_glitch_auto_test
...
shortened glitch duration
extended timeout in gps_glitch_auto_test
2016-04-21 14:52:31 +09:00
Andrew Tridgell
a8ca41abf1
autotest: use 60% engine speed for stability test
...
can't handle 55% in SITL now in quad
2016-04-04 11:28:28 +10:00
Andrew Tridgell
6fdc6074d6
autotest: fixed "Reached command" string
2015-11-29 21:46:31 +11:00
Andrew Tridgell
ffa316c1f3
autotest: fixed copter for new strings for arm/disarm
2015-11-29 18:39:32 +11:00
Andrew Tridgell
084b607862
autotest: updated string for "Flight plan received"
2015-11-26 12:52:19 +11:00
Grant Morphett
fd0a442c92
autotest: added a timeout check
...
There was 1 while loop in the arducopter.py autotest that didn't have
a timeout check and of course we tripped over it.
2015-10-12 14:20:52 +09:00
Andrew Tridgell
717c04d507
autotest: fly CopterAVC mission as a helicopter
...
this ensures heli gets basic testing
2015-09-01 16:34:20 +10:00
Andrew Tridgell
34689cf949
autotest: cope with mavproxy logging msg changes
2015-06-30 14:06:17 +10:00
Randy Mackay
c86a396ca0
SITL: allow easier slowing of copter test
2015-05-13 22:40:03 +09:00
Randy Mackay
2ad5011177
SITL: slow down autotest for slow VMs
2015-05-12 16:31:32 +09:00
Andrew Tridgell
68515d0324
autotest: fixed CopterAVC test
2015-05-11 11:26:54 +10:00
Andrew Tridgell
fe536a4b89
autotest: use internal copter sim for autotest
2015-05-05 16:56:40 +10:00
Andrew Tridgell
d5b51f2129
autotest: use internal simulator for copter test
2015-05-05 16:56:39 +10:00
Andrew Tridgell
d691cfc3d8
autotest: rename sim_multicopter.py to sim_wrapper.py
...
it now supports multiple vehicle types
2015-04-19 12:08:25 +10:00
Randy Mackay
a04bc263f6
SITL: remove redundant takeoff from copter test
2015-04-16 21:00:38 +09:00
Randy Mackay
d0036290c1
SITL: copter test displays which RTL failed
2015-04-16 21:00:17 +09:00
Randy Mackay
90b02a2685
SITL: shorten GPS glitch duration for copter
2015-04-15 17:33:23 +09:00
Andrew Tridgell
7f89f73ad1
autotest: use simulation time for all time delays
2015-04-13 10:08:12 +10:00
Randy Mackay
11d0801c99
SITL: fix copter-avc test
2015-04-08 15:24:48 +09:00
Randy Mackay
8335399525
SITL: fix copter test
...
Allow more time for fly_square
Allow more movement in loiter_glitch test
2015-04-08 12:18:22 +09:00
Randy Mackay
7eb710ed3a
SITL: copter autotest uses sim time
2015-04-08 12:18:20 +09:00
Andrew Tridgell
cf15b4d4fc
autotest: removed use of --nowait option
2015-03-27 18:03:24 -07:00
Andrew Tridgell
97ee7e9fcc
autotest: run copter SITL simulation at 400Hz
...
save a bit of CPU time
2015-03-25 22:30:46 -07:00
Andrew Tridgell
45887a5d28
autotest: run rover and copter with synthetic clock
2015-03-22 18:57:43 -07:00
Randy Mackay
e1abdadc06
AutoTest: allow 10sec for EKF to settle in AVC test
2015-03-21 21:51:41 +09:00
Randy Mackay
74b46818bd
AutoTest: add 10sec before starting copter test
...
We should probably replace this with a check that the EKF has completed
it's initialisation and has not gone into constant position mode.
2015-03-14 11:03:15 +09:00
Randy Mackay
ae487ca88b
AutoTest: remove calibrate level from copter tests
2015-02-03 14:29:11 +09:00
Randy Mackay
2a7f78a2cd
AutoTest: reduce copter throttle when in stabilize
...
Simulated copter is flying too high and causing the land to timeout
2015-01-14 12:41:57 +09:00
Randy Mackay
765fa0e223
AutoTest: higher copter throttle when in stabilize
2014-12-31 15:23:00 +09:00
Randy Mackay
4ea48f8f64
AutoTest: increase throttle for fly_square test
2014-12-30 20:48:12 +09:00
Randy Mackay
95827e59c1
AutoTest: fix fly_mission to recognise end of mission
...
Copter's behaviour after completing a mission has changed so it does not
automatically switch to Loiter mode but rather stays at the last
waypoint. This was confusing the fly_mission function.
2014-11-05 18:03:47 +09:00
Randy Mackay
68be36d4f8
AutoTest: reduce copter throttle when flying square
...
This will keep the copter lower during this test and resolve the timeout
during landing
2014-08-26 12:19:58 +09:00
nwind21
485726258b
autotest: Add code to detect if a hard link is not allowed (for VM's).
2014-07-15 12:22:48 +10:00
Randy Mackay
4f75cbcce0
AutoTest: fix error reporting for copter AVC mission
2014-06-06 11:42:57 +09:00
Randy Mackay
cad1441739
AutoTest: print failed copter test
...
Name of the failed tests appears at the moment it fails and then again
after all tests have been run. This hopefully makes it slightly easier
to know which test has failed
2014-04-30 21:46:15 +09:00
Randy Mackay
028b7d1cce
AutoTest: fix AVC copter test
...
Also incorporate file name changes
2014-04-08 11:00:47 +09:00
Randy Mackay
f54d8b02eb
AutoTest: fix to copter missions
...
Missions were not completing successfully because they were waiting for
the current waypoint number to be 1 higher than was possible
2014-04-07 22:25:38 +09: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
Randy Mackay
46f4368522
AutoTest: adjust copter CIRCLE_RADIUS to 3000
2014-02-15 06:09:08 +11:00
Andrew Tridgell
6121b9c58e
autotest: switched to binary log download over MAVLink
2013-12-28 21:47:12 +11:00
Randy Mackay
9951c50e48
AutoTest: remove unnecessary wait from SaveWP test
2013-11-02 21:35:05 +09:00
Randy Mackay
1951ca1874
AutoTest: slightly shorten copter loiter test
2013-10-09 13:02:38 +09:00
Randy Mackay
4c32f4dbdb
AutoTest: shorten simple and super simple tests
2013-10-05 22:50:47 +09:00
Randy Mackay
01ba5a0e0c
AutoTest: add super simple test
2013-10-05 18:26:59 +09:00
Randy Mackay
5f1ba85ce4
AutoTest: add copter battery failsafe test
2013-10-03 11:16:38 +09:00
Randy Mackay
6f337fe1e8
AutoTest: increase timeout for GPS glitch test
2013-09-26 14:43:04 +09:00
Randy Mackay
62d298e141
AutoTest: add copter gps glitch test in auto mode
2013-09-24 21:41:33 +09:00
Randy Mackay
cc00ac96ca
AutoTest: add copter gps glitch test
2013-09-24 21:41:07 +09:00
Randy Mackay
d9824dc23e
AutoTest: rename and remove copter mission files
2013-07-16 21:41:06 +09:00
Randy Mackay
0ba6bf8721
AutoTest: relax stability patch max distance
2013-07-10 20:54:12 +09:00
Randy Mackay
cf6684ac0c
AutoTest: fix to copter getting stuck in Failsafe test
2013-07-10 13:03:40 +09:00
Randy Mackay
f7f575eb58
AutoTest: reduce time of copter fly_circle
...
Circle_Rate parameter was increased so we can reduce the time of the
test
2013-06-26 21:55:52 -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
Randy Mackay
57f7d5d18f
AutoTest: reduce circle test time
2013-06-01 21:35:04 +09:00
Randy Mackay
da97c991f8
AutoTest: add circle mode test
2013-06-01 18:21:31 +09:00
Andrew Tridgell
d944da39b2
autotest: add sparkfun wicket icons on map
2013-05-29 16:55:23 +10:00
Andrew Tridgell
a900226ff7
autotest: added CopterAVC test
...
this will test the copter code for the AVC2013 mission
2013-05-29 15:33:32 +10:00
Randy Mackay
91b08cdcec
AutoTest: add fence test for Copter
2013-05-19 16:19:59 +09:00
Randy Mackay
7bbee36e89
AutoTest: add copter stability patch test
2013-05-19 15:32:54 +09:00
Randy Mackay
f14284e7a0
AutoTest: reorganise copter tests
2013-05-03 11:22:15 +09: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
Randy Mackay
a57965d15f
AutoTest: reduce copter turn rate in fly square
2013-04-26 22:45:45 +09:00
Randy Mackay
f162713ca8
AutoTest: reduce throttle so it doesn't fly so far
2013-04-18 22:30:41 +09:00
Andrew Tridgell
da90dfa454
autotest: cope with existing auto mode via mode change
2013-01-14 18:03:51 +11:00
Andrew Tridgell
1fcffc6de9
autotest: increase speed in fly square test for ArduCopter
...
should prevent occasional timeouts
2012-12-01 08:08:54 +11:00
Andrew Tridgell
b2c71dac1b
autotest: larger distance error allowed in fly simple test
2012-11-28 11:41:22 +11:00
Andrew Tridgell
a7fa6e7c61
autotest: fixed failsafe test for arducopter
2012-11-28 11:10:18 +11:00
rmackay9
93f918f3e0
AutoTest: reduced descend throttle for arducopter's change_alt test.
2012-08-19 12:33:21 +09:00
rmackay9
c574393995
AutoTest: update failsafe timeout to 180 to give it more time to pass.
2012-08-14 11:25:10 +09:00
Andreas M. Antonopoulos
29338fbf7b
auto est: modular tests and unit testing with Junit.xml output for jenkins
...
autotest: unit testing for jenkins
- parameterized unit testing
- modular python test modules
- test groups by directory
- select tests individual or by group
- skip tests individually or by group
arducopter.py: parameterized several functions to allow throttle settings and timeouts
test modules: extracted and copied 8 tests from Tridge's autotest into modules
junit.xml: xml template for unit test reporting to jenkins
2012-07-05 23:48:50 -07:00
Andrew Tridgell
453cb93c6f
autotest: fixed levelling for ACM with MAVLink 1.0
2012-04-27 15:15:53 +10:00
Andrew Tridgell
67afdc7485
autotest: fixes for MAVLink 1.0 in autotest
2012-04-27 15:15:53 +10:00
Jason Short
c10778d685
Better throttle for tests
2012-02-19 15:06:54 -08:00
Jason Short
11dd9564d9
SIMPLE mode throttle fix
2012-02-19 14:21:27 -08:00
Jason Short
1c9bb25f09
AP TEST fixes for new throttle control
2012-02-19 12:38:57 -08:00
Andrew Tridgell
4a766e1abd
autotest: lower throttle level for lowering altitude in loiter
...
we were not dropping altitude in the change_alt test
2012-02-19 23:21:09 +11:00
Andrew Tridgell
9700afaf10
autotest: fixed failsafe test
...
increased timeout, added check for home location, and fixed failure
testing on timeout
2012-02-19 22:52:09 +11:00
Jason Short
973b0b72c5
Landing now disarms automatically.
2012-01-28 22:52:17 -08:00
Jason Short
d11eaa9265
Tweaks
2012-01-10 23:43:44 -08:00
Andrew Tridgell
861222f81d
autotest: cope with startup messages in a different order
2012-01-09 18:09:04 +11:00
Jason Short
0be68e679b
updated throttle to keep altitude
2012-01-07 22:27:25 -08:00
Jason Short
c1314bc814
Added failsafe test
2012-01-06 10:22:13 -08:00
Jason Short
6d827d0087
Added RTL with Auto_land test
...
Fixed Simple Mode test
2012-01-05 22:13:20 -08:00
Jason Short
193848cea6
thought the commented out function was too cool to loose, but not using it now
...
changed the WP index number
2012-01-04 09:52:25 -08:00
Andrew Tridgell
64b541037e
autotest: change to an octa frame for autotest
...
this will be a useful experiment
2012-01-04 22:03:37 +11:00
Andrew Tridgell
efa649e51a
autotest: fix for new sim_multicopter.py command
2012-01-04 21:49:19 +11:00
Jason Short
986b42a45b
Fixed Loiter Timeout bug, added more wind by default.
2011-12-29 23:02:02 -08:00
Andrew Tridgell
8b9eb0dad1
autotest: fixed arducopter autotest
...
no longer says "Please run setup"
2011-12-26 20:10:10 +11:00
Jason Short
c9b2d1c3c2
Added fix for Takeoff Test
2011-12-23 14:42:49 -08:00
Andrew Tridgell
e4ed3cb583
fixed typo in fly_simple()
2011-12-22 10:25:31 +11:00
Jason Short
6e81b1a6f8
Added new tests
2011-12-15 20:51:41 -08:00
Andrew Tridgell
8847ee518d
autotest: fixed loiter hold time
...
hold time was larger than the timeout
2011-12-13 19:08:47 +11:00
Jason Short
c58e9e9135
more control over loiter time and alt change
2011-12-12 17:47:46 -08:00
Andrew Tridgell
37641d2576
autotest: added a 2m/s wind from east to quadcopter test
2011-12-13 10:36:52 +11:00
Andrew Tridgell
a3403aeb6c
autotest: added logging of what failed
2011-12-12 23:08:20 +11:00
Andrew Tridgell
de1a5ab9ce
autotest: increase stream rate to 5 for ArduCopter test
...
needed to get accurate heading monitoring
2011-12-12 23:07:46 +11:00
Andrew Tridgell
ef8ed6aab2
autotest: calibrate accelerometers at startup
2011-12-12 22:07:53 +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
fb3d4eab90
autotest: fixed sim_quad viewerip handling
2011-12-02 17:37:55 +11:00
Andrew Tridgell
cf7073128d
autotest: adapt test suite to new simulation framework
2011-12-02 17:37:55 +11:00
Jason Short
79945d02b7
made missions work with index of 1
2011-11-28 10:33:05 -08:00
Andrew Tridgell
f30bca01c9
autotest: use idle_hooks to prevent lockup
2011-11-28 13:53:57 +11:00
Andrew Tridgell
c64a5f354e
autotest: enable new SITL emulation code
...
this enables the register level SITL code
2011-11-25 20:00:19 -08:00
Jason Short
9e04d4c45b
longer timeout
2011-11-19 14:59:48 -08:00
Jason Short
2d5ee0f7e2
Switched to Mission 2
2011-11-19 14:03:26 -08:00
Jason Short
31cb62620f
Mission test update
2011-11-13 22:56:33 -08:00
Jason Short
d226b875c8
set first WP in wait_waypoint to 0
2011-11-13 13:42:49 -08:00
Andrew Tridgell
3057ef9fb7
autotest: fixed incorrect altitude wait
2011-11-13 23:59:20 +11:00
Andrew Tridgell
be886ef9bc
autotest: fixed waypoint wait code
...
this allows fly.ArduCopter to pass again
2011-11-13 23:50:29 +11:00
Andrew Tridgell
395ad44dd9
fixed wait_mode()
2011-11-13 23:50:29 +11:00
Andrew Tridgell
91f0722e22
fixed motor arming
2011-11-13 23:50:28 +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
Andrew Tridgell
0f00b4c722
autotest: added wait_mode() helper
2011-11-13 23:50:28 +11:00
Andrew Tridgell
1e22945981
autotest: split out some common functions ready for ArduPlane support
2011-11-13 23:50:28 +11:00
Jason Short
04491d66db
Fixed scaling issue with Circle mode
2011-11-13 00:24:25 -08:00
Andrew Tridgell
dafbdd1f2b
autotest: added --viewerip option
...
this allows you to specify an IP that will receive all MAVLink logs
and fg data for realtime viewing
2011-11-11 08:17:12 +11:00
Andrew Tridgell
2436bff853
autotest: ensure we have a VFR_HUD msgs before getting location
2011-11-10 22:34:54 +11:00
Andrew Tridgell
e7294ee493
autotest: improve error checking
2011-11-10 13:12:43 +11:00
Andrew Tridgell
6263bb8936
autotest: fixed target altitude for RTL mission
2011-11-10 13:00:35 +11:00
Andrew Tridgell
d2a8107b47
autotest: run the sim at 200Hz
2011-11-10 12:47:37 +11:00
Jason Short
b25ad4e61f
new Test mission
2011-11-09 16:33:24 -08:00
Andrew Tridgell
5ed2c02bbd
autotest: fixed mission end handling
2011-11-09 20:27:36 +11:00
Andrew Tridgell
21e7c627af
autotest: improved error checking and child termination
...
we now report pass/fail for each test
2011-11-09 17:21:53 +11:00
Jason Short
b792c130ae
Merge branch 'master' of https://code.google.com/p/ardupilot-mega
2011-11-08 21:43:24 -08:00
Jason Short
4fbd363a8f
New mission test
2011-11-08 21:43:18 -08:00
Andrew Tridgell
6e32905f81
autotest: avoid the need for killall
...
this ensures we cleanup child processes cleanly, so we don't need the
killall any more
2011-11-09 15:46:06 +11:00
Andrew Tridgell
122e09323c
autotest: fixed home altitude for CMAC
2011-11-08 08:14:46 +11:00
Andrew Tridgell
8c5873564b
autotest: dump all GPS points, even if fix==0
...
for some reason HIL gives fix 0 sometimes
2011-11-07 22:57:32 +11:00
Andrew Tridgell
c750f85280
autotest: enable dumping of DataFlash logs at end of test
2011-11-07 22:56:13 +11:00
Andrew Tridgell
3aee902be1
fixed permissions of valgrind log file
2011-11-04 10:05:40 +11:00
Andrew Tridgell
6e72c88a83
autotest: run SIL binary under valgrind
...
this lets us find uninitialised variables in the APM code, and other
common C/C++ errors
2011-11-04 10:00:06 +11:00
Andrew Tridgell
40c87dd295
fixed home location
2011-11-02 10:26:24 +11:00
Andrew Tridgell
b6dcfa416b
autotest: a complete mission now flies
...
with the TCP buffering fixed, the mission flies quite well with standard parameters
2011-11-02 09:38:44 +11:00
Andrew Tridgell
7a0d39c197
autotest: added a mission to ArduCopter testing
...
the mission is not flown well at all, but its a start
2011-11-01 22:44:21 +11:00
Andrew Tridgell
beab1500c1
autotest: ArduCopter test can now fly a square
...
the copter now takes off, yaws to north, flies a 50m square, then
does a loiter test for 10s and lands
2011-10-31 18:31:16 +11:00
Andrew Tridgell
0b484afbbe
First version of APM autotest
...
This does SIL testing of ArduPlane and ArduCopter. For now it just does
a basic LOITER test of ArduCopter. It produces logs and a kml of the
flight on apm.tridgell.net
2011-10-31 13:50:34 +11:00