Pierre Kancir
752f78c80e
Tools: test ARMING_RUDDER restrictions
...
Co-authored-by: bnsgeyer <bnsgeyer@aol.com>
7 years ago
Pierre Kancir
31d4f1b065
Tools: test that copter cannot arm with throttle too high
...
Co-authored-by: bnsgeyer <bnsgeyer@aol.com>
7 years ago
Pierre Kancir
553874f14a
Tools: add arm/disarm with switch tests
...
Co-authored-by: bnsgeyer <bnsgeyer@aol.com>
7 years ago
Pierre Kancir
d37a74f46a
Tools: fix arm_motors_with_rc_input and disarm_motors_with_rc_input
7 years ago
Pierre Kancir
9b7e406a55
Tools: fix use of unassign variable
7 years ago
Pierre Kancir
55f4be0515
Tools: make do_set_mode function more generic
7 years ago
Pierre Kancir
b80937cbd4
Tools: add timout to arm/disarm functions
7 years ago
Peter Barker
a7042e3847
Tools: autotest: tweak output messages, loosen camera trigger timeout
7 years ago
Peter Barker
6e44ea13d4
Tools: autotest: do not arm vehicle before flaps test
7 years ago
Pierre Kancir
d8c53bbd9c
Tools: remove dependency on mavproxy for cmd_long based functions
7 years ago
Pierre Kancir
87a7fd0fbb
Tools: remove dependency on mavproxy for arming/disarm
7 years ago
Pierre Kancir
e278a09668
Tools: don't use strict comparison for param fetch all to cope with TYPE one's
7 years ago
Peter Barker
5d317a8ef7
Tools: autotest: clear Rover waypoints before toggling them in
7 years ago
Peter Barker
f1a0ebfd10
Tools: autotest: reduce verbosity of wait-for-heading
7 years ago
Peter Barker
5c7e21d38f
Tools: autotest: add test for clearing waypoints
7 years ago
Pierre Kancir
36d8ef1971
Tools: auto fetch parameter if in fetch_all list
7 years ago
Pierre Kancir
f6cc934678
Tools: pep8 corrections + correct variable shadowing
7 years ago
Pierre Kancir
7f601db05b
Tools: add gripper tests
7 years ago
Peter Barker
a80d27eeff
Tools: autotest: fetch parameters after applying parameter file
7 years ago
Pierre Kancir
9c6e75f45b
Tools: allow to retry to get parameters before timeout
7 years ago
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
7 years ago
Peter Barker
2a174a5dac
Tools: add test for Sprayer-on-Rover
7 years ago
Pierre Kancir
2f9f793ccf
Tools: add arm and disarm tests
7 years ago
Peter Barker
6e7e24ac91
Tools: autotest: raise exception, don't return it
...
Spotted by @khancyr
7 years ago
Peter Barker
e932f873cc
Tools: autotest: use component id 250 so we have something different to mavproxy
7 years ago
Peter Barker
81b1270db9
Tools: autotest: use tcp for mavproxy-to-autotest mavlink
7 years ago
Peter Barker
af37e10126
Tools: autotest: factor out starting of our our mavlink connection
7 years ago
Pierre Kancir
a930822d9d
Tools: unify exception on os.link
7 years ago
Pierre Kancir
d507805891
Tools: move guided_achieve_heading to common
7 years ago
Pierre Kancir
ef6db4da4a
Tools: correct run_cmd
7 years ago
Pierre Kancir
facc254138
Tools: move run_cmd to common
7 years ago
Peter Barker
b8030816b8
Tools: autotest: add tests for mode changes for Copter and Rover
7 years ago
Peter Barker
baf869f8d6
Tools: autotest: add test for autotune
7 years ago
Peter Barker
20c1c4c684
Tools: autotest: add test for guided changing submode after takeoff
7 years ago
Andrew Tridgell
037d7d2e74
autotest: raised timeout on set_rc()
...
when under load at high speedup the msgs can take a while to get
through
7 years ago
Ebin
9c3b7e7c7d
Tools: Autotest for balance bot
7 years ago
Peter Barker
8c44a0d8c8
Tools: autotest: add contexts to ease reverting parameter values
7 years ago
Peter Barker
b47c63c7bd
Tools: autotest: wait_ekf_happy checks status bits rather than value
...
Based on discussions prompted by @khancyr's PR
https://github.com/ArduPilot/ardupilot/pull/8022
Check that we have bits set we want set and that bits we don't want set
aren't set. In the future we might take these bit sets as parameters.
7 years ago
Pierre Kancir
0af97529ba
Tools: common.py : fix empty returned_value variable
7 years ago
Pierre Kancir
065a459df8
Tools: common.py : make some method statics
7 years ago
Pierre Kancir
6c43ab27c1
Tools: remove trailling semilocons
7 years ago
Peter Barker
b23ea9a47b
Tools: autotest: fix race condition on parameter values
7 years ago
Peter Barker
38898dc793
Tools: autotest: add test for vision position estimate
7 years ago
Peter Barker
b197d05476
Tools: autotest: allow for return of negative values in parameters
7 years ago
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.
7 years ago
Peter Barker
0b8b23baf6
Tools: adjust tests for vfr_hud getting absolute altitude
7 years ago
Peter Barker
fd4463de68
Tools: add more information on test failure
7 years ago
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".
7 years ago
Peter Barker
513865ae4d
Tools: autotest: flake8 compliance
7 years ago
Karthik Desai
7a20dd8b73
Tools: autotest: Added a generic run_test.
...
This function is called from every vehicle to run a test. If any of the tests throws an exception, it will be caught here, and the name of the test and the exception that got raised will be added to the fail_list
7 years ago