Pierre Kancir
b655197c95
Tools: common: unload dataflash_logger module after use
6 years ago
Pierre Kancir
98d897e790
Tools: common: implement do_set_relay and do_set_relay_mavproxy
6 years ago
Peter Barker
bd50f288a1
Tools: autotest: get mavproxy to heartbeat at speedup rate
...
This should resolve a race condition we have with guided position modes.
MAVProxy's heartbeat rate defaults to 1Hz.
When GCS failsafe is active on Copter because we're in GUIDED (or
GUIDED_NOGPS mode) we require a heartbeat every 5 seconds. At speedup
8, we can only expect a heartbeat every 8 seconds of sim time.
We also only check for this heartbeat every 3 seconds - leading to this
awesome race condition.
6 years ago
Peter Barker
87e43d6e44
Tools: autotest: add option to disable breakpoints at sim startup
6 years ago
Pierre Kancir
12cb09a3f4
Tools: factorize sitl rangefinder setup
6 years ago
Pierre Kancir
daaf769055
Tools: add arm/disarm testing on all modes
6 years ago
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
6 years ago
Peter Barker
899db3d3ac
Tools: autotest: add test for sensor config error loop
...
Tools: autotest: exempt failing vehicles from SensorConfigError test
6 years ago
Peter Barker
6332d2e729
Tools: autotest: fix race condition with getting parameters
6 years ago
SergeyBokhantsev
c9447776b2
Tools: autotest: correct debounce tests under Rover
...
Channel 8 is the mode channel under Rover
6 years ago
Peter Barker
98cb68157f
Tools: autotest: add a test for Copter surface tracking
6 years ago
Peter Barker
5992cc8782
Tools: autotest: clear mission between tests
6 years ago
Peter Barker
d8278335a1
Tools: autotest: move upload_using_mission_protocol up to common.py
6 years ago
Peter Barker
c8a4af76fe
Tools: autotest: add tests for Plane fence
6 years ago
Peter Barker
6047ef105e
Tools: autotest: correct text MAVProxy-dedupe check in mission load
...
This failed to protect against multiple rapid calls to load_mission
6 years ago
Peter Barker
e9552ec4e1
Tools: autotest: more efficient set_rc_from_map
6 years ago
Peter Barker
3ed55ea3c5
Tools: autotest: add drain_mav_unparsed and use it
6 years ago
Peter Barker
8d90b09829
Tools: autotest: add tests for upload/download rally using mission protocol
...
Tools: autotest: add tests for mission clearing
Tools: autotest: add tests for out-of-range mission counts
Tools: autotest: add test for Plane DO_CHANGE_SPEED
6 years ago
Francisco Ferreira
4f153f06b3
Tools: autotest: increase timeout for arming param check
6 years ago
Francisco Ferreira
e95d603a73
Tools: autotest: parse all heartbeats when looking for mode change
6 years ago
Peter Barker
d76894d883
Tools: autotest: drain mav before getting message rates, improve debug
6 years ago
Peter Barker
a2105e1f81
Tools: autotest: correct statustext sending under Python3
6 years ago
Peter Barker
18391d8a9a
Tools: autotest: produce stacktraces under Python3
6 years ago
Peter Barker
4a237af093
Tools: autotest: ensure reboot if dataflash-over-mavlink test fails
...
Will stop cascading failures from occuring
6 years ago
Peter Barker
0cd5d66e3a
Tools: autotest: increase epsilon
...
our round-trips etc cost precision
6 years ago
Peter Barker
2cb69366c8
Tools: autotest: facilitate changing mode by number
6 years ago
Peter Barker
5e69758661
Tools: autotest: factor out a start_mavproxy method
6 years ago
Peter Barker
b2acd15a55
Tools: autotest: encode string to bytes before passing to statustext_send
6 years ago
Peter Barker
b7eca63073
Tools: autotest: send statustext with test name to autopilot
...
This gets logged into the dataflash so you can quickly find relevant
logs
6 years ago
Peter Barker
696de42eea
Tools: autotest: check we're seeing PL messages in the log during
...
precland
6 years ago
Peter Barker
4eaee039f0
Tools: autotest: avoid touch RC*_OPTION on sub
6 years ago
Peter Barker
6f52fa5622
Tools: autotest: do not set ARMING_RUDDER on sub and tracker
6 years ago
Peter Barker
ffccd6f263
Tools: autotest: stop using mav.location() for Tracker test
...
Turns out that since we don't stream vfr_hud mav.location won't ever
work
6 years ago
Peter Barker
9a16b40a73
Tools: autotest: rename get_rudder_channel to get_stick_arming_channel
...
... as some of these aren't actually rudder inputs...
6 years ago
Peter Barker
265d8d62cd
Tools: autotest: add timeout to wait_ekf_flags waiting for EKF_STATUS_REPORT
6 years ago
Peter Barker
6fe7db2f43
Tools: autotest: add test for REQUEST_MESSAGE
6 years ago
Peter Barker
c6b8335392
Tools: autotest: improve debug for lack of mode map
6 years ago
Peter Barker
16476332b2
Tools: autotest: fix no-gps switch-to-location test
6 years ago
Peter Barker
1e2cf4bb60
Tools: autotest: fix sethome test under Python3
6 years ago
Peter Barker
935840ebb0
Tools: autotest: add test for setting home to current location
6 years ago
Peter Barker
6bf600c587
Tools: autotest: cope with being unable to reboot while armed
6 years ago
Peter Barker
873096f791
Tools: autotest: add test for Rover offboard-in-auto function
6 years ago
Peter Barker
9ca2c9d692
Tools: autotest: python3 fixes
...
Tools: autotest: use inbuilt zip on Python3
6 years ago
Peter Barker
841c222a12
Tools: autotest: add check that GPS is good before arming
6 years ago
Peter Barker
0aeb6c0e26
Tools: autotest: ensure initial home position is similar to sitl start pos
6 years ago
Peter Barker
d53f787a14
Tools: factor init up into parent class
...
Tools: autotest: use speedup 8 for all suites
for reliability
6 years ago
Peter Barker
844999c458
Tools: autotest: get accuracy before doing RTL
...
It can take a very long time to get our parameter value, so get it while
we're NOT moving away from the RTL location!
6 years ago
Peter Barker
65d0443c26
Tools: autotest: drain mav either side of initialising-after-reboot
6 years ago
Peter Barker
f71f100d6a
Tools: autotest: make drain_mav truly drain the mavlink connection
6 years ago
Peter Barker
b47b97a981
Tools: autotest: add test for QuadPlane controller pre-arm checks
6 years ago