Iampete1
6cac879bae
Tools: FilterTool: hide disabled params
2022-08-03 17:24:41 +10:00
Iampete1
f1c4797ef4
Tools: autotest: copter: rangefinder mavlink enable landing gear
2022-08-02 10:48:19 +10:00
Andrew Tridgell
1d34ac4e05
Tools: adjust Dalby mission for VTOL_LAND distance
2022-08-02 07:49:34 +10:00
Peter Barker
f57e3668e3
autotest: do no drain mav (i.e. pause sitl) while delaying for sim time
2022-07-29 11:15:59 +10:00
Peter Barker
1c78baac72
autotest: fix Copter PrecisionLoiterCompanion
2022-07-28 21:06:18 +10:00
Peter Barker
35d60d8025
autotest: augment PayLoadPlaceMission test to check drop distance
2022-07-28 21:06:18 +10:00
Peter Barker
f67877655b
autotest: tidy payload place test
2022-07-28 21:06:18 +10:00
Peter Barker
82bc2a7d85
autotest: adjust Plane EKF check for new configured-backend check
2022-07-28 15:53:13 +10:00
Andy Piper
022ae00199
autotest: att attempts to DataFlashErase test
2022-07-28 08:55:01 +10:00
Iampete1
955f1fd1cd
Tools: change AC_FENCE to AP_FENCE_ENABLED
2022-07-27 19:04:56 +10:00
bugobliterator
2375564bb2
autotest: add test for CAN node health pre arm check
2022-07-27 18:18:03 +10:00
Iampete1
002b1e1c44
Tools: FilterTool: add app.py local lanucher for testing
2022-07-27 17:14:31 +10:00
Iampete1
1127ad2397
Tools: FilterTool: update phase and intergration caculation and plot
2022-07-27 17:14:31 +10:00
Peter Barker
e6a9dcc25f
autotest: add --extra_hwdef option to test_build_options.py
2022-07-26 17:08:41 +10:00
Peter Barker
ccc25cb8d7
autotest: increase time allowed for mission download
...
we don't need to be particularly tight on timing here
2022-07-23 18:36:10 +10:00
Peter Barker
b69a75098f
autotest: avoid draining mav while waiting for motors-armed heartbeat
2022-07-23 10:56:52 +10:00
Peter Barker
82337c9058
autotest: make search of dflog for required messages faster
...
Doing these in parallel means we don't need to parse the large file multiple times
2022-07-22 09:13:25 +10:00
Peter Barker
e9507fc47d
autotest: add --board option to test_build_options.py
...
Also change to DevEBox as default build target as the BeastHyv2 sprouted a baro
2022-07-22 08:48:16 +10:00
Peter Barker
a306c4c506
autotest: increase timeout allowed for mavlite parameter test
...
the FRSky thread isn't any faster, but ArduPlane's speedup was increased. So allow more simulated time to get the data
2022-07-21 14:31:32 +10:00
Peter Barker
3c700bdf44
autotest: disable terrain during frsky passthrough test
...
If terrain isn't available then our expected statustext gets blatted with one which RCTelemetry library emits
2022-07-21 14:31:32 +10:00
Peter Barker
aa7987a4fb
autotest: correct upload/download-mission timeouts
2022-07-21 14:31:32 +10:00
Peter Barker
e27b98f47e
autotest: wait for Plane to slow down after frsky test
...
disarming via mavlink can fail if we think we're still moving
2022-07-21 14:31:32 +10:00
Peter Barker
3e89e32d8a
autotest: comment out unused context_start_custom_binary method
...
Broken under Python2.
Also fix some flake8 problems under flake8 under Python2
2022-07-21 09:59:40 +10:00
Peter Barker
515b79a6ca
autotest: remove un-needed calls to drain_mav_unparsed
...
these calls are generally bad now, given we have context_collect things going on which always want to see messages coming in
2022-07-20 15:17:25 +10:00
Peter Barker
a8357531d1
autotest: pause SITL process while draining mav unparsed
2022-07-20 15:17:25 +10:00
Peter Barker
d2caebf39c
autotest: increase time allowed for getting statustexts
...
frsky is run i9n a thread - and signficiant speedsup seem to adversely affect it
2022-07-19 11:00:27 +10:00
Peter Barker
84adb059ed
autotest: correct frsky text comparison bug
...
reusing the variable "text" here crewed up subsequent receiving of messages as it could reset the text from empty to the most recently received text.
2022-07-19 11:00:27 +10:00
Peter Barker
271b4d7d3c
autotest: disable mavutil autoreconnect in drain_mav
...
The process may not be available
2022-07-19 11:00:27 +10:00
Peter Barker
acd9fb9c0a
autotest: pause/unpause SITL while draining mav
...
If Python can't keep up with the message volume coming from the autopilot we never manage to drain all messages from the vehicle.
So try pausing/unpausing the simulation so we can drain the link...
AT-1968.6: AP: PreArm: Radio failsafe on
AT-1969.9: AP: PreArm: Radio failsafe on
AT-1971.2: AP: PreArm: Radio failsafe on
AT-1972.4: AP: PreArm: Radio failsafe on
AT-1973.7: AP: PreArm: Radio failsafe on
AT-1974.9: AP: PreArm: Radio failsafe on
AT-1975.3: Drained 2000283 messages from mav (7218.974791/s)
AT-1975.3: Exception caught: Traceback (most recent call last):
File "/mnt/volume_nyc3_01/autotest/APM/APM/Tools/autotest/common.py", line 699
8, in run_one_test_attempt
self.context_pop()
File "/mnt/volume_nyc3_01/autotest/APM/APM/Tools/autotest/common.py", line 499
3, in context_pop
self.set_parameters(dead_parameters_dict, add_to_context=False)
2022-07-19 11:00:27 +10:00
Peter Barker
e38adc7d14
autotest: pause/unpause SITL while draining mav
...
If Python can't keep up with the message volume coming from the autopilot we never manage to drain all messages from the vehicle.
So try pausing/unpausing the simulation so we can drain the link...
AT-1968.6: AP: PreArm: Radio failsafe on
AT-1969.9: AP: PreArm: Radio failsafe on
AT-1971.2: AP: PreArm: Radio failsafe on
AT-1972.4: AP: PreArm: Radio failsafe on
AT-1973.7: AP: PreArm: Radio failsafe on
AT-1974.9: AP: PreArm: Radio failsafe on
AT-1975.3: Drained 2000283 messages from mav (7218.974791/s)
AT-1975.3: Exception caught: Traceback (most recent call last):
File "/mnt/volume_nyc3_01/autotest/APM/APM/Tools/autotest/common.py", line 699
8, in run_one_test_attempt
self.context_pop()
File "/mnt/volume_nyc3_01/autotest/APM/APM/Tools/autotest/common.py", line 499
3, in context_pop
self.set_parameters(dead_parameters_dict, add_to_context=False)
2022-07-19 11:00:27 +10:00
Peter Barker
0677965524
autotest: adjust PAUSE_CONTINUE_GUIDED to use globalframe for navigation
...
Co-author: Leonard Hall <leonardthall@gmail.com>
This test was failing when the yaw control on the simulated vehicle was cleaned up. Navigating in body frame meant that the vehicle was told to go to a different position than we were actually expecting.
2022-07-19 09:24:45 +10:00
Peter Barker
28ed2e3cd5
autotest: add support for building alternate binaries
...
e.g. adding features ordinarily compiled out
2022-07-19 09:09:05 +10:00
Leonard Hall
0405451463
SITL: Fix BaroWindCorrection Test
2022-07-15 09:59:44 +09:00
Leonard Hall
7a5c71d8a4
Tools: Update Callisto Model
2022-07-15 09:59:44 +09:00
Peter Barker
bceaa10794
autotest: add a test for rally point altitudes
2022-07-14 11:49:53 +10:00
Randy Mackay
67520c55d5
Tools: move Karuizawa location
2022-07-12 21:29:24 +09:00
TunaLobster
670378dc73
Tools: rstemit.py: Change Range to be clearer meaning
2022-07-12 12:58:39 +10:00
Andrew Tridgell
2f7a8769c0
autotest: added --ubsan and --ubsan-abort to sim_vehicle.py and autotest.py
...
allows for undefined behaviour checking in SITL
2022-07-12 11:00:08 +10:00
Peter Barker
2ca68da77a
autotest: correct setting mode by number
2022-07-12 08:51:21 +10:00
Peter Barker
a672c7df97
autotest: add test for changing modes by mode number
...
Useful for when you don't have a mapping entry for the mode number yet
2022-07-12 08:51:21 +10:00
Peter Barker
72734d38de
autotest: add test for AUTO_LAND_TO_BRAKE
...
Having some terrain-based issues with BRAKE mode
2022-07-10 20:59:52 +10:00
Peter Barker
7647e38f3f
autotest: create get_home_tuple_from_mission method
...
Useful if you want to start a mission where a saved waypoint file's home location is
2022-07-10 20:59:52 +10:00
Peter Barker
86096261d0
autotest: add new wait_and_maintain_range method
2022-07-07 21:29:43 +10:00
Peter Barker
e77d0ce1a4
autotest: rewrite speedtofly test using wait_airspeed
2022-07-07 21:29:43 +10:00
Andrew Tridgell
53eb0191b1
Tools: fixed typo
2022-07-06 16:54:48 +10:00
Andrew Tridgell
003fef229c
Tools: disable convertgpx step in autotest
...
this is taking 5 hours to run. It just isn't worth it
2022-07-04 20:05:06 +10:00
Andrew Tridgell
6eb406b2d6
Tools: support triple notch in FilterTool
2022-07-03 20:36:16 +10:00
Andy Piper
8799b3839a
autotest: add triple notch test.
2022-07-03 18:21:41 +10:00
Andy Piper
f2aa6e99c3
autotest: test pre and post filter logging in FFT test
2022-07-03 18:19:55 +10:00
Peter Barker
215842fe82
Tools: add tests for ICE Planes
2022-07-01 19:33:51 +10:00
Ryan Beall
592201d831
CI fix Soaring channel 3 check timeout
2022-06-30 20:06:33 +10:00
Ryan Beall
5a26635aca
CI fix Climb before turn Timeout again 2
2022-06-30 20:06:33 +10:00
Ryan Beall
69ffac890f
CI fix Climb before turn Timeout again
2022-06-30 20:06:33 +10:00
Ryan Beall
2b9d116274
CI fix Climb before turn Timeout
2022-06-30 20:06:33 +10:00
Ryan Beall
ae6295e11c
CI fix RTL Timeout
2022-06-30 20:06:33 +10:00
Peter Barker
043764fbf9
autotest: use set_parameters in rover; fixup tests to use context
2022-06-30 11:55:19 +10:00
Peter Barker
bc12a61c9a
autotest: use slightly faster recv_msg call in drain_mav
...
Cuts out some code in pymavlink's recv_match which we don't need here. We even explicitly don't run the idle hooks which pymavlink supplied when we're running under drain_mav
2022-06-30 09:46:13 +10:00
Peter Barker
208554d402
autotest: correct diagnostic message
2022-06-29 21:03:42 +10:00
Peter Barker
f6816f38dc
autotest: add timeout in drain_mav
...
At large speedups we can create more telemetry than we can consume. Detect that and raise an exception, assuming we should be able to drain anything within 2 minutes
2022-06-29 21:03:42 +10:00
Peter Barker
ef0f5110cb
autotest: set Rover speedup to 30
...
This is closer to what's achieved on modern CPUs.
Running at 100 can lead to very rapid RC inputs which can cause issues.
2022-06-29 21:02:27 +10:00
Peter Barker
b6f7887182
Tools: remove non-functional FRSKY_TELEM_ENABLED define
2022-06-29 10:59:50 +09:00
Andrew Tridgell
a554ac3500
Tools: added log scale option to FilterTool
2022-06-26 18:08:32 +10:00
Andrew Tridgell
7b8da9385d
Tools: load FLTD from RLL_FLTD in FilterTool
2022-06-26 18:08:32 +10:00
Randy Mackay
66f1603aea
Tools: autotest default params for sub use MNT_RC_RATE
2022-06-21 13:37:11 +09:00
Randy Mackay
1a5216aaee
Tools: autotest for mount sets MNT_RC_RATE
2022-06-21 13:37:11 +09:00
Andrew Tridgell
3a6b153d55
Tools: added filter tool to web-firmware
...
makes it easier others to PR changes to improve the tool
2022-06-18 09:34:50 +10:00
Peter Barker
08ae4f050c
autotest: fix race condition in button test
...
The subsequent test could end up arming the vehicle based on this left-over state.
2022-06-16 21:24:31 +10:00
Peter Barker
4a015bd479
autotest: fix race condition in mission-end-behaviour test
2022-06-16 21:24:31 +10:00
Peter Barker
57b0d7f235
autotest: change rover default speedup time to 100
2022-06-16 21:24:31 +10:00
Peter Barker
b150c48b5c
Tools: add --no-run-with-defaults option to test-build-options script
2022-06-16 17:20:06 +10:00
Peter Barker
7120d4f750
autotest: fix race condition in need-ekf-to-arm check
...
At extreme speedups we may not detect the reboot in the Python before the autopilot is ready to arm...
2022-06-16 14:53:21 +10:00
Peter Barker
39a0ecbb4b
autotest: check rate is configured after we do the rate check
...
This is just to make sure that the autopilot isn't losing the configuration somehow.
2022-06-16 10:04:08 +10:00
Peter Barker
6fcdea67c3
autotest: tidy hover_and_check_matched_frequency method
...
- remove pointless elses
- clarify why a test is failing in exception messages
- move variable definitions closer to their use
2022-06-15 19:07:34 +10:00
Peter Barker
0697ce19d2
autotest: tidy wait_disarmed
2022-06-15 09:11:51 +10:00
Peter Barker
b18c597f0b
autotest: fix race condition in arduplane.py fly_mission
...
We can lose the final message when we get_sim_time and wait_heartbeats and similar
2022-06-15 09:11:51 +10:00
Peter Barker
1b22de0dd9
autotest: fix race condition in deepstall tests
2022-06-14 08:16:03 +10:00
Peter Barker
b550949766
autotest: scale SITL RC input according to speedup
...
Too slow when running at 100 times speedup
2022-06-13 21:41:41 +10:00
Peter Barker
abc1b7b644
autotest: factor out extract_median_FTN1_PkAvg_from_current_onboard_log
2022-06-13 21:21:30 +10:00
Peter Barker
d6dc0464dd
autotest: tidy extraction of FTN1 data from dflogs in fft tests
2022-06-13 21:21:30 +10:00
Peter Barker
1a9470d635
autotest: return hover throttle from hover_for_interval
2022-06-13 21:21:30 +10:00
Peter Barker
ef29350a72
autotest: tidy hovering in fft tests
2022-06-13 12:01:13 +10:00
Peter Barker
fc2c3604e8
autotest: change plane default speedup time to 100
2022-06-12 15:56:53 +10:00
Peter Barker
171bdd9e5b
autotest: better diagnostics for mission transfer
2022-06-12 15:56:53 +10:00
Peter Barker
e02d50d0e8
autotest: increase allowed time for mission item download
...
Because we're involving round-trip times to the Python and back, we need to allow more time to pass on the autopilot when downloading very large missions. Add a factor based on speedup
2022-06-12 15:56:53 +10:00
Peter Barker
ad4fc316ec
autotest: increase sample period for HIGH_LATENCY2 test
...
Should be useful at higher speedups
2022-06-12 15:56:53 +10:00
Peter Barker
2e0653ef71
autotest: be more lenient with terrain report fetching
2022-06-12 15:56:53 +10:00
Peter Barker
09ab90b8be
autotest: fix flapping AirspeedDrivers test
2022-06-12 15:56:53 +10:00
Peter Barker
bb36cedee3
autotest: correct message hook handling
...
Fun with closures, and not removing hooks soon enough when popping contexts.
2022-06-12 15:56:53 +10:00
Andrew Tridgell
8441f4a130
autotest: fixed FETTec bad mask test
...
can support up to 15 outputs with FETTec now
2022-06-10 13:46:43 +10:00
Pierre Kancir
e2ce9b388c
Tools: fix rstemit.py permission
2022-06-08 08:16:42 +09:00
Pierre Kancir
9f1784a264
Tools: remove old iris_ros.py files
2022-06-08 08:16:42 +09:00
Pierre Kancir
4b67ed808f
Tools: logger_metadata: remove useless shebang
2022-06-08 08:16:42 +09:00
Pierre Kancir
5bdc77a5b9
Tools: param_metadata: remove useless shebang
2022-06-08 08:16:42 +09:00
Pierre Kancir
4e2e4fa4d4
Tools: autotest: remove useless shebang
2022-06-08 08:16:42 +09:00
Pierre Kancir
5628b8d230
Tools: fix executable permission and trailing whitespace
2022-06-08 08:16:42 +09:00
Andy Piper
f244866329
autotest: add test for FFT continuous averaging
2022-06-01 15:49:32 +01:00
Peter Barker
069fdfae60
autotest: test SITL airspeed sensor backend
2022-05-25 17:52:44 +10:00
Peter Barker
973b2d11a2
Tools: add parameters to test_build_options.py script
...
filtering by define name is the most useful bit
2022-05-22 12:11:45 +10:00
Iampete1
d5e282c5a1
Tools: allow FBWB alt control option in LOITER
2022-05-22 12:09:43 +10:00
Peter Barker
24771ab2a4
autotest: fix DO_CHANGE_SPEED autotest
...
Recent airspeed fixes means we need to give the vehicle more time to achieve the initial airspeed
2022-05-20 09:56:31 +10:00
Peter Barker
d6504bcaa8
autotest: remove hack to get dual-airspeed-autocal passing
2022-05-18 18:06:18 +10:00
Peter Barker
4240ad7ae9
autotest: update test for which entry is last in tasks table
2022-05-18 12:25:26 +09:00
Andrew Tridgell
985e24275a
autotest: don't try to arm in RTL mode for quadplanes
2022-05-18 06:43:16 +10:00
Andrew Tridgell
895c57562c
autotest: adjust DO_CHANGE_SPEED test for EAS2TAS corrections
2022-05-17 19:34:32 +10:00
Andrew Tridgell
7fb38f8b22
autotest: removed SIM_WIND_DELAY
2022-05-17 19:34:32 +10:00
Peter Barker
cebb57266d
autotest: calibrate two airspeed sensors in-flight
2022-05-16 09:50:52 +10:00
Peter Barker
b8407a4bec
autotest: adjust current wp reset
2022-05-15 21:17:50 +10:00
Andrew Tridgell
151f17d563
autotest: reset mission on takeoff for quadplanes
2022-05-15 21:17:50 +10:00
Peter Barker
287573fff7
autotest: add test for large circle radii in NAV_LOITER_TURNS
2022-05-11 17:40:35 +10:00
Peter Barker
336079ddfa
autotest: add test for compass error state logging
2022-05-10 19:46:40 +10:00
Peter Barker
b659360d64
autotest: test DO_CHANGE_SPEED mission item for Plane
2022-05-05 10:48:35 +10:00
Andy Piper
0fa0a27c77
autotest: add FFT averaging test.
...
add harmonic test for FFT averaging
reduce configuration for averaged FFT test
enable harmonic notch in-flight
2022-05-04 17:05:51 +10:00
Peter Barker
b2d811a444
autotest: add test for sensor health logging
2022-05-03 17:38:09 +10:00
Iampete1
73dfcfb7d9
Tools: autotest: models: Callisto.json: add number of motors
2022-05-03 10:03:07 +10:00
Andy Piper
67aecea4c1
autotest: remove fast_loop tasks test
2022-05-03 08:20:13 +09:00
Rhys Mainwaring
6d7086a8ad
Tools: change terminal to current dir if using osascript in run_in_terminal_window.sh
...
- Ensure the spawned terminal has the same pwd as the calling script to allow SITL to resolve relative paths
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2022-05-02 11:28:12 +10:00
Mirko Denecke
4c727eca60
Tools: fix auxiliary typo
2022-05-02 10:55:08 +10:00
Peter Barker
876cc77808
autotest: fix Rover syntax for Python2
...
Apparently ** is Python3-only
2022-04-24 14:21:45 +09:00
Peter Barker
43b5f22c1a
autotest: add test for avoidance resume-auto-or-loiter action
2022-04-21 06:59:39 +10:00
Peter Barker
1340132f6f
autotest: add rangefinder test
2022-04-19 10:26:10 +10:00
Peter Barker
ecd5cb21fc
autotest: tidy richenpower test using new methods
2022-04-18 12:41:45 +10:00
Andrew Tridgell
db9d796dd4
Tools: update for changed INS_NOTCH parameter name
2022-04-16 08:14:06 +10:00
Peter Barker
fe740681af
autotest: test_build_options.py: undef variables before setting them
2022-04-15 12:37:26 +10:00
Willian Galvani
cb4f5ac578
Autotest: Sub: tweak params
2022-04-13 16:23:55 -03:00
Willian Galvani
c63d12b6c9
Autotest: Sub: fix sub tests for new althold implementation
...
With this implementation (same as copter's) 1450 is within the pilot deadzone,
which breaks the test.
2022-04-13 16:23:55 -03:00
Willian Galvani
81cd49213a
Autotest: Sub: tighten default watch_altitude_maintened delta
2022-04-13 16:23:55 -03:00
Willian Galvani
e23e2cb63f
Autotest: Sub: Add depth hold cases of large buoyancies and small inputs
2022-04-13 16:23:55 -03:00
Peter Barker
c33f6f3a8d
autotest: add tests to ensure we get BCN, RPM and PRX/PRXR log msgs
2022-04-13 16:22:19 +10:00
Henry Wurzburg
98aec61899
Tools: add airspeed defaults to vehicle defaults files
2022-04-12 09:53:01 +10:00
Andrew Tridgell
2b2cac3f19
autotest: fixed annoying gdb pagination on reboot
2022-04-08 09:00:22 +10:00
Peter Barker
7c526d52fe
autotest: correct streaming-boolean bug for parsing of log structures from code
2022-04-06 21:54:15 +10:00
Peter Barker
55d0cf4b03
autotest: add diagnostics for log parse issues
2022-04-06 21:54:15 +10:00
Peter Barker
9f7ae1ee96
autotest: extract ids and message infos per-file, not on aggregate
...
Will allow for better diagnostics when something goes wrong
2022-04-06 21:54:15 +10:00
Peter Barker
582eed12bf
autotest: correct extraction of fields from LogWrite messages
2022-04-05 17:57:40 +10:00
Peter Barker
2fb1bde457
autotest: add test for earth-frame-accel
2022-04-03 11:41:09 +10:00
Peter Barker
62fe90caa1
autotest: add more convenience methods for checking received data
2022-04-03 09:35:09 +10:00
Henry Wurzburg
3cc75ecd38
Tools: add blimp as vehicle option in sim_vehicle
2022-04-02 14:58:53 +11:00
Randy Mackay
b6af126514
Tools: relax rover sprayer test
...
vehicle's speed is slightly lower when using SCurve navigation
2022-03-30 15:34:14 +09:00
Randy Mackay
ea5e3a8ae0
Tools: rover autotests send position-target-global-int more slowly
...
SCurves do not work with very fast changes of target
2022-03-30 15:34:14 +09:00
Randy Mackay
8ff6972b7e
Tools: rover autotest DriveRTL timeout increased by 10sec
2022-03-30 15:34:14 +09:00
Peter Barker
05be2ac8c9
autotest: print mag cal progress messages when testing mag cal
2022-03-26 11:17:14 +11:00
Peter Barker
79098d1d10
autotest: correct diagnostic message symlink->link
2022-03-26 11:16:55 +11:00
Peter Barker
7a62b5429b
autotest: add test for landing speed
2022-03-23 21:07:05 +11:00
Andrew Tridgell
3f865ba102
web: changed from '3DR' to 'SiK'
...
these radios have not been sold by 3DR for a long time
2022-03-23 19:23:17 +11:00
Joshua Henderson
fcb0538fef
autotest: common check_mission_items_same loosen z to 1E-3
2022-03-16 18:41:52 +11:00
Peter Barker
a19fa24ccd
Tools: test_build_options.py: add bin mappings for all vehicles
2022-03-15 11:44:45 +11:00
Peter Barker
573cb0494d
autotest: set RL_AUTOLAND=1 for more tests
2022-03-14 09:52:41 +11:00
Andrew Tridgell
46a7f2cc4b
autotest: adjust for RTL_AUTOLAND failure
2022-03-14 09:52:41 +11:00
Andrew Tridgell
431330c651
Tools: added SFO_Bay location
2022-03-10 07:34:20 +11:00
Andrew Tridgell
6fcf85edb8
autotest: more changes for plane disarm disallow
2022-03-09 17:13:45 +11:00
Andrew Tridgell
a98e913a2a
autotest: flake8 warning fixes
2022-03-09 17:13:45 +11:00
Andrew Tridgell
e6bbd7f548
autotest: adjust for arming change in plane
...
expect disarm to fail when airmode on
2022-03-09 17:13:45 +11:00
Willian Galvani
1ab7eeb25f
Tools: util.py: fix comment for reltopdir()
2022-03-08 14:29:29 -08:00
m
37abfb98dc
autotest: Copter Pause/Continue in AUTO and GUIDED modes with SCurves
2022-03-08 13:12:36 +09:00
Peter Barker
f2fe55b5da
autotest: correct exception handling for Python 3.10
2022-03-07 19:36:05 +11:00
Peter Barker
c27e3f0c35
test_build_options.py: emit size savings from disabling features
2022-03-05 21:27:25 +11:00
Peter Barker
3ad10d7077
Tools: convert test_build_options to an object
2022-03-05 21:27:25 +11:00
Peter Barker
3fa12152f6
autotest: add tests for high latency control protocol
2022-03-05 11:08:30 +11:00
Henry Wurzburg
b3af8221be
Tools: clarify and simplify RC failsafe messages
2022-03-01 11:05:15 +11:00
Peter Barker
850227ffdb
autotest: add test for THR_FAILSAFE==2 and throttle output
2022-03-01 10:29:37 +11:00
Peter Barker
122d97ece7
autotest: add comment clarifying what an error actually means
2022-02-28 12:47:57 +11:00
Peter Barker
7bb13e934d
autotest: add support for multi-line log formats
2022-02-28 12:47:57 +11:00
Peter Barker
e6c1bc2402
autotest: fix MAVFTP test
2022-02-26 10:11:19 +11:00
Peter Barker
3f7e120a67
autotest: add test for terrain_check
2022-02-25 09:28:04 +11:00
Peter Barker
62efb470f6
autotest: change fly_terrain_mission test name
2022-02-25 09:28:04 +11:00
Peter Barker
f199f8be10
autotest: add more parachute tests
2022-02-24 09:20:31 +11:00
Peter Barker
69e0e544d1
autotest: loosen constraints on AccelCal test
2022-02-23 18:50:28 +11:00
Peter Barker
50c7576506
autotest: add log download tests for dataflash-over-mavlink
...
You can't download logs - but we should make sure that the codepaths are
at least crossed
2022-02-20 15:39:24 +11:00
Peter Barker
001a06d17d
autotest: add tests to a pair of lua scripts
2022-02-18 21:23:06 +11:00
Bob Long
bb30bb7b46
SITL: add locations of RealFlight airports
2022-02-17 10:12:50 +11:00
Peter Barker
17915faa98
autotest: add test for proximity sensors
2022-02-17 09:23:29 +11:00
Peter Barker
376d7ade50
autotest: use assert_receive_message to remove redundant code
2022-02-15 11:06:10 +11:00
Peter Barker
0cd5bdebfb
autotest: reduce Copter speed requirement in DO_CHANGE_SPEED
2022-02-15 08:29:10 +09:00
Peter Barker
fdae5f3ccc
autotest: correct wait_groundspeed method
2022-02-14 14:07:47 +11:00
Peter Barker
dc312260de
autotest: add test for DO_CHANGE_SPEED
2022-02-14 14:07:47 +11:00
Randy Mackay
61871b1d7b
Tools: disable Plane Landing-Drift test
2022-02-12 08:28:44 +09:00
Randy Mackay
10f4500584
Tools: remove SPORT from autotests
2022-02-11 16:11:39 +09:00
Andy Piper
46ae9d2c34
autotest: TasksV1 -> TasksV2
2022-02-09 12:47:55 +00:00
Peter Barker
a7d3324759
autotest: increase timeout while under Valgrind
2022-02-09 22:20:31 +11:00
Peter Barker
e3631aca91
autotest: print distance remaining while waiting for current wp
2022-02-09 19:27:21 +11:00
Peter Barker
13d5b00a22
autotest: increase timeout in Baro-Drift test
...
timeout was being hit on the autotest server
Also wait_disarmed isntead of wait for statustext You get a bit more information about what's going on this way
2022-02-09 19:27:21 +11:00
Peter Barker
a897fbc6db
locations.txt: add KalaupapaCliffs and LakeGeorgeLookout
...
good for large differences in terrain vs home alt
2022-02-09 17:01:07 +11:00
Peter Barker
c12e0fa3af
autotest: reset rather than reboot if required on test fail
2022-02-09 17:01:07 +11:00
Samuel Tabor
dbc63f7b0d
autotest: Improve Landing-Drift
2022-02-08 13:25:17 +11:00
Peter Barker
a81a1fb19f
Tools: build ArduPilot against all.xml not ardupilotmega.xml
2022-02-08 11:00:41 +11:00
Peter Barker
d086b5e9fc
autotest: add test for DO_CHANGE_ALTITUDE
2022-02-08 10:59:13 +11:00
Gone4Dirt
a11634e1e8
Tools: autotest: quadplane: add weathervane test
2022-02-08 10:38:16 +11:00
RuffaloVM
0a98561a9d
Autotest : correct spelling on ardupilot
2022-02-07 21:20:48 +11:00
Peter Barker
6eba851b00
Revert "Tools: update reltopdir function to use relpath()"
...
This reverts commit 392911fc62
.
2022-02-07 14:13:08 +11:00
Bill Geyer
12210f9066
Tools: tradheli-change param name from _VFF to _FF
2022-02-04 08:03:38 +09:00
Tatsuya Yamaguchi
08438c30a6
Tools: autotest for takeoff altitude
2022-02-03 21:33:05 +11:00
Willian Galvani
5cb1444b1d
Tools: use path relative to current directory to load parameters
2022-02-02 08:37:17 -08:00
Willian Galvani
6e91ae554a
Tools: use relative paths for parameter files
2022-02-01 17:35:26 +11:00
Willian Galvani
392911fc62
Tools: update reltopdir function to use relpath()
2022-02-01 17:35:26 +11:00
Marek Šuppa
49e88b7aea
Tools: add missing comma to sim_vehicle.py
...
* Add missing comma in `sim_vehicle.py`.
Signed-off-by: mr.Shu <mr@shu.io>
2022-01-31 08:54:01 +09:00
Randy Mackay
d1bf4f1c1e
Tools: autotest for OpticalFlowCalibration
2022-01-29 08:26:12 +09:00
Bill Geyer
2d81e01b10
Tools: improve tradheli sitl default params
2022-01-26 22:15:09 -05:00
VMsunghwan
5d29d945e0
autotest : Update receive
...
recieve -> receive
2022-01-24 18:34:21 +11:00
Peter Barker
0af97b5bdb
Tools: test_build_options.py: test disabling all options
2022-01-19 18:33:07 +11:00
Josh Henderson
a60c1168ef
Autotest: Helicopter add airspeed driver test
2022-01-19 18:21:32 +11:00
Joshua Henderson
8580a0e661
Autotest: Copter test_mount correct set_attitude use
2022-01-19 18:03:17 +11:00
VMsunghwan
105fc36da5
autotest : correct in typos line 8549 Receving -> Receiving
2022-01-15 13:11:58 +11:00
Dr.-Ing. Amilcar do Carmo Lucas
84e10f035d
autotest: correct typos in callisto.json comments
2022-01-12 16:47:42 +09:00
Iampete1
00eca20cf4
Tools: logger metadata: emit rst discription on new line
2022-01-12 18:17:58 +11:00
Joshua Henderson
7cb88554da
Autotest: copter add test for mount_mode
2022-01-12 18:03:27 +11:00
Pierre Kancir
78c4918b32
Tools: expose coverage parameter on sim_vehicle.py
2022-01-12 12:31:56 +11:00
Peter Barker
7bb36a5630
autotest: correct path to source build_sizes.py script
...
This script is run on the build server from the APM root directory; this
bit copies it there before we change branches in the repo
2022-01-12 10:28:17 +11:00
Peter Barker
50d30ae045
autotest: reformat things-to-copy list
2022-01-12 10:28:17 +11:00
Andrew Tridgell
fbc7962723
autotest: fixed GripperMission test in rover
...
the Mission Complete was coming too quickly after the gripper release
2022-01-12 07:54:46 +11:00
Andrew Tridgell
2193f18ad7
autotest: fixed DCM fallback test
...
give equivalent lag to old test
2022-01-12 07:54:46 +11:00
Andrew Tridgell
0ae04ba9dc
autotest: updated frame params for SIM_GPS_LAG_MS
2022-01-12 07:54:46 +11:00
Peter Barker
29b8b12538
autotest: add test_build_options to test each entry in build_options.py
2022-01-11 13:24:25 +11:00
Peter Barker
8fb28ac906
autotest: build-with-disabled-features.py: flake8-clean
2022-01-10 21:21:52 +11:00
Hwurzburg
a774745a2f
Tools: Add OSP field location
2022-01-09 10:51:39 +11:00
Peter Barker
c8780792d4
autotest: loosen position constraint on SET_POSITION_TARGET_LOCAL_NED test
2022-01-08 13:59:19 +11:00
Michelle Rossouw
7f2d95900d
Tools: Add blimp link to firmware homepage
2022-01-07 22:54:13 +11:00
Michelle Rossouw
b58ecff90e
Tools: Add blimp log message documentation to be built
2022-01-07 22:54:13 +11:00
Peter Barker
62df8facd9
autotest: fix rover POSITION_TARGET_LOCAL test
2022-01-07 22:47:19 +11:00
khanasif786
6095992f14
Autotest:Copter test fix for tri
...
fixed excessive yaw rate for 'tri' frame
2022-01-06 19:04:50 +11:00
Peter Barker
a58e808af8
autotest: fix Rover gripper mission test
...
We can lose the statustext when getting current time
2022-01-06 17:48:30 +11:00
Peter Barker
427c08db26
autotest: add methods for asserting received mavlink data
2022-01-04 14:37:18 +11:00
Joshua Henderson
e610acf998
Tools: SITL Copter-heli.parm remove WP_YAW_BEHAVIOR
2022-01-01 23:22:15 -05:00
Andrew Tridgell
e5888d42d9
Tools: update build_sizes.py from master
2021-12-31 11:11:34 +11:00
Samuel Tabor
71596c2c9f
autotest: Add a test for GLIDE_SLOPE_THR
2021-12-27 11:27:52 +11:00
Shiv Tyagi
442e783214
Tools: fix DataFlashSITL autotest
...
Co-Authored-By: Peter Barker <7077857+peterbarker@users.noreply.github.com>
2021-12-25 09:14:31 +11:00
Andy Piper
dbcc8215fa
autotest: setup FFT harmonics correctly for dynamic harmonics.
...
octacopter notches test
2021-12-22 18:13:38 +11:00
Peter Barker
dfa373c1d7
autotest: param_parse.py: correct JSON output
2021-12-21 11:55:51 +11:00
Peter Barker
8527fd42d1
autotest: sim_vehicle.py: accept lower-case plane etc for --vehicle
2021-12-19 14:50:09 +11:00
Peter Barker
2cdb082139
autotest: add test for estop-on-rc-switch
2021-12-17 09:58:37 +11:00
Peter Barker
c9cc97edbd
autotest: augment estop test with post-reboot component
2021-12-17 09:58:37 +11:00
Peter Barker
474c42f9d3
autotest: move assert_prearm_failure up
2021-12-17 09:58:37 +11:00
Samuel Tabor
75ee4b07fe
autotest: Add test for soaring speed-to-fly feature
2021-12-16 07:12:24 +11:00
Peter Barker
ff77a17fdd
autotest: param_parse.py: allow CopyValuesFrom in vehicle directories
2021-12-16 07:11:33 +11:00
Peter Barker
7eb6fdbecd
Tools: param_metadata: add support from CopyValuesFrom
2021-12-15 09:54:06 +11:00
Peter Barker
8e3265d1f6
autotest: add a test for dataflash log message rates
2021-12-07 09:39:51 +11:00
Andrew Tridgell
9ee140cbbf
Tools: revert compass parameter changes
2021-12-04 16:51:53 +11:00
Peter Barker
66395ce195
autotest: add tests for AVD_F_ALT_MIN
2021-12-04 11:35:13 +11:00
Shiv Tyagi
181eff46ac
Tools: fix autotest for devo telemetry
...
We should pass(skip) the autotest when devo telemetry is compiled out
2021-12-01 19:16:44 +11:00
Peter Barker
b75f8211d2
autotest: comment out probably-defunct test
2021-11-30 20:50:32 +11:00
Peter Barker
6e4aa2264f
autotest: add test for uploading big fence then small fence
2021-11-30 20:50:32 +11:00
Peter Barker
5d811bf57e
autotest: disable flightgear output
...
burning CPU for no good reason
2021-11-30 11:03:05 +11:00
Peter Barker
d84808b434
autotest: improve diagnostic output from Replay test
2021-11-30 10:19:20 +11:00
Iampete1
f52fb3148b
Tools: autotest: common and arducopter: use new compass params
2021-11-30 08:14:43 +09:00
Iampete1
bf335b11ed
Tools: autotest: defaults: use new compass params
2021-11-30 08:14:43 +09:00
Peter Barker
746d9fda8d
autotest: add --callgrind option
2021-11-29 20:46:02 +11:00
Peter Barker
ad4b934b3c
autotest: correct MAVFTP test for autotest server
...
The autotest server runs autotest.py from a directory one-up from the
ArduPilot root directory, whereas most people run it from the root
directory. The test wasn't taking that into account, looking for a
directory which doesn't necessarily exist.
Changed to os.listdir() to find a directory to look for in the MAVFTP
output.
2021-11-29 20:44:47 +11:00
Peter Barker
7afb472244
autotest: reboot after resetting parameters for ekf lane switchtest
2021-11-29 15:30:00 +11:00
Peter Barker
b4b267be67
autotest: clarify parameter download test output
2021-11-29 15:10:10 +11:00
Peter Barker
0c0c70d50e
autotest: wait a long time for GPS health in HIGH_LATENCY2
...
We're assuming this is healthy before running the tests. Most of the time it was, but running under Valgrind it wasn't
2021-11-29 15:10:10 +11:00
Peter Barker
48c6239851
autotest: correct resetting of commandline under Valgrind
2021-11-29 15:10:10 +11:00
Peter Barker
b2f00d469e
autotest: use set_parameters some more
2021-11-26 18:30:13 +11:00
Peter Barker
09f06be17e
autotest: add an autotest for DO_PAUSE_CONTINUE
2021-11-25 08:18:27 +09:00
Samuel Tabor
7931b10baf
autotest: Fix rangefinder in Landing-Drift test.
2021-11-24 18:14:26 +11:00
Peter Barker
a7aa74ab20
autotest: add rangefinder convenience functions, fix wait_alt handling
...
autotest: add test for rangefinders outside their maxalt
2021-11-23 18:20:58 +11:00
Peter Barker
2904036013
autotest: fetch tasks.txt twice
...
Collection isn't instantaneous
2021-11-23 18:17:42 +11:00
Shiv Tyagi
7237e346d8
Tools: autotest: add defaults file for broken copter frames
...
This adds default files for copter frames which were broken because of missing defaults
2021-11-23 15:52:25 +09:00
Peter Barker
c99a49eeb9
autotest: add test that we continue to get simulated vehicles from SIM_ADSB
2021-11-23 11:09:29 +11:00
Randy Mackay
b9099f7b88
Tools: sim_vehicle supports motorboat frame
...
also add motorboat param file to enable waves and tide
2021-11-20 08:58:12 +09:00
Peter Barker
5025056f4e
autotest: fix MSP_DJI test for Py2
2021-11-20 09:37:02 +11:00
Peter Barker
9a47a85c0d
autotest: augment PerfInfo test
2021-11-17 19:00:04 +11:00
Peter Barker
b42432ea3e
autotest: add trivial test for MSP
2021-11-17 12:06:07 +11:00
Shiv Tyagi
5811a62bc6
Tools: add autotest for DEVO telemetry
...
This adds an autotest to test if we receive data with devo telemetry correctly.
2021-11-16 11:37:10 +11:00
Peter Barker
873e04195f
autotest: add test for QuadPlane transition states
2021-11-15 07:21:27 +11:00
Peter Barker
75b9a3ff77
autotest: add test for PerfInfo tasks.txt info
2021-11-14 20:43:30 +11:00
Peter Barker
ad32f8d6d2
autotest: allow building of blimp in autotest
2021-11-14 18:35:06 +11:00
Shiv Tyagi
0cae113521
autotest: reset RNGFNDx_TYPE in rangefinder driver test
...
We should reset RNGFNDx_TYPE after we finish testing a set of rangefinder drivers to avoid failing successive tests.
Also, we now fail prearm checks if we receive no data from RF, we need to continuously send DISTANCE_SENSOR messages through mavlink to pass those checks while trying to arm.
Co-Authored-By: Peter Barker <7077857+peterbarker@users.noreply.github.com>
2021-11-13 09:47:39 +09:00
Andy Piper
9da11cd31d
autotest: set SMAX during autotune test
2021-11-11 08:13:23 +09:00
Peter Barker
756e45cda2
autotest: add get_stacktrace method
2021-11-11 10:06:47 +11:00
Bill Geyer
4f053bb7d5
Tools: set new parameters for autotest
2021-11-10 16:45:17 -05:00
Peter Barker
69d86e6896
autotest: turn draining_mav off when doing early-exit for being quiet
2021-11-11 07:23:09 +11:00
andypnz
e929561635
Tools: added my locations to locations.txt
2021-11-10 08:45:18 +11:00
Peter Barker
2dd392ec4b
autotest: read pexpects while waiting for sim time
...
If we do not drain pexpects regularly the ardupilot process can become blocked on terminal IO
2021-11-07 09:59:12 +11:00
Peter Barker
bb973ac913
autotest: print content of sitl /proc/PID/status on death
...
Mysterious death ofi Copter in CI - add more debug
2021-11-06 17:22:52 +11:00
Peter Barker
f86b2c1051
autotest: add sanity check that sim time is updating
2021-11-06 17:22:52 +11:00
Peter Barker
b6293acbce
autotest: tweak how we make gps bad in fallback test
2021-11-05 23:18:11 +11:00
Peter Barker
8de7261c67
autotest: sim_vehicle.py: add --auto-offset-line
...
Simplifies spawning multiple instances.
2021-11-04 17:01:09 -07:00
Peter Barker
e7b30a0085
sim_vehicle.py: correct setting of udpclient ports
2021-11-04 17:01:09 -07:00
Peter Barker
856fe6a1fb
autotest: sim_vehicle: neaten sanity check for sysid
2021-11-04 17:01:09 -07:00
Peter Barker
4d5411b42f
autotest: sim_vehicle: correct AP commandline for multicast/udpclient
2021-11-04 17:01:09 -07:00
Michael Day
93e6c1a920
Tools: sysid cannot be run together with auto-sysid
...
Added per @peterbarker suggestion
Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
2021-11-04 17:01:09 -07:00
Arash Negahdar
d065515b2a
Tools: Use a single MAVProxy instance in sim_vehicle
...
With the implementation of the 'alllinks' command in MAVProxy, and the
exposure of the SYSID parameter this becomes feasible
Tools: Fix mcast handling
2021-11-04 17:01:09 -07:00
Arash Negahdar
49af90a70e
Tools: Set SYSID based on instance number in sim_vehicle.py
2021-11-04 17:01:09 -07:00
Peter Barker
56dda4c07f
autotest: fix race condition in Rover gcs mission test
2021-11-05 09:07:19 +11:00
Peter Barker
d0872abdf9
autotest: FETtec tests: give vehicle a chance to realise ESCs are dead
...
Should remove the race condition where we disable an ESC but the vehicle
doesn't realise and lets the vehicle arm.
Also, waiting this long causes the ESCs to just go missing, not give a
telemetry failure
2021-11-02 09:39:17 +11:00
Andrew Tridgell
e94fdac91f
Tools: rename uLanding simulation to USD1
2021-10-26 15:31:12 +11:00
Iampete1
bc7c5c24da
Tools: autotest: quadplane: reboot for tailsitters and allow longer time for disarm
2021-10-26 10:03:00 +11:00
IamPete1
1e09e79617
Tools: autotest: add copter tailsitter and params
2021-10-26 10:03:00 +11:00
Peter Barker
7f125312f3
autotest: disable flapping GroundEffectCompensation_takeOffExpected test
...
This test is flapping. More often now.
2021-10-25 14:09:22 +11:00
Peter Barker
754192ff26
autotest: improve gps-for-yaw test
...
There are flag values in the mavlink definitions for this message, so
make sure we get something approaching the right number.
2021-10-21 12:09:21 +11:00
Peter Barker
5cf62e8fb3
autotest: tweak soaring test SOAR_VSPEED
...
This is right on the edge on master
2021-10-21 12:09:21 +11:00
Peter Barker
b9a4902aa6
autotest: let system settle before annoying
...
Also fly in circles to avoid long flight home
2021-10-21 12:09:21 +11:00
Peter Barker
fda0d16475
autotest: correct loiter-requires-position test for new SIM_GPS simulation
...
sitl_gps was sending out ubx packets even if the device was supposed to
be absent, allowing the EKF to get a lag and thus allocate its buffers.
The new sim doesn't do that, so we do need to direct the EKF to not use
the GPS.
2021-10-21 12:09:21 +11:00
Peter Barker
99126d3cc7
autotest: add autotest for getting yaw from moving-baseline GPS setup
2021-10-21 08:34:36 +11:00
Peter Barker
2f90abd7ea
autotest: raise an exception in the case we don't load a parameters file
2021-10-21 08:34:36 +11:00
Peter Barker
0e6b0cbf35
autotest: add trivial test for MegaSquirt EFI system
2021-10-17 10:00:08 +11:00
Davis Schenkenberger
3e748d77c9
Tools: autotest: add test for LORD EAHRS
2021-10-17 08:55:03 +11:00
Josh Henderson
a06a192255
Autotest: Rover add test for multiple depth finders
2021-10-15 13:08:17 +11:00
Josh Henderson
f67a4ec025
Tools: High_Latency2 Test Fix Location Distance Test
2021-10-13 19:40:45 +11:00
Josh Henderson
941cd6ebc2
Tools: arduplane.py add HIGH_LATENCY2 tests and Check Air_Temperature
2021-10-13 19:40:45 +11:00
Peter Barker
5125874681
autotest: add some tests for running multiple GPSs
2021-10-13 18:02:16 +11:00
Peter Barker
265616b582
autotest: tidy use of dump_message_verbose
2021-10-13 18:02:16 +11:00
Peter Barker
7446a28c45
autotest: augment simulated GPS tests
2021-10-13 18:02:16 +11:00
Peter Barker
87df943f99
autotest: add option to use simulated FRAM for storage
2021-10-12 20:01:49 +11:00
Peter Barker
00c6308b25
autotest: add test for FRAMStorage
2021-10-12 20:01:49 +11:00
Iampete1
67abf23077
Tool: autotest: defaults: remove MOT_PWM_MIN and _MAX
2021-10-11 22:19:17 -04:00
Iampete1
59b40a3845
Tools: autotest: copter: remove check for PWM min/max zero
2021-10-11 22:19:17 -04:00
Iampete1
a69f40b7fb
Tools: autotest: update quadplane throttle min param name
2021-10-11 22:19:17 -04:00
Peter Barker
5f32fb82e8
autotest: add basic test that Plane autotune completes
2021-10-10 18:18:44 +11:00
Peter Barker
dd49d79798
autotest: add test for Plane flying with a very slow GPS
2021-10-05 21:40:45 +11:00
Peter Barker
abd5daccbb
autotest: augment HIGH_LATENCY2 test with location test
2021-10-05 10:20:44 +11:00
Peter Barker
b2a7841672
Tools: allow for selection of Storage backend type at runtime
2021-10-05 10:16:54 +11:00
Peter Barker
d7f037e548
autotest: add test for setting streamrates from files
2021-09-30 10:31:03 +10:00
Peter Barker
a55bd3955a
autotest: ensure camera feedback messages at correct altitude
2021-09-30 08:50:47 +10:00
Peter Barker
b52b381673
Tools: remove mtk GPSs
...
These are ancient and of very poor quality.
2021-09-29 17:28:59 +10:00
Peter Barker
c372189a9d
autotest: add test for EKF losing then refinding a GPS
2021-09-29 15:51:50 +10:00
Peter Barker
89c884e8f1
autotest: add test for HIGH_LATENCY2
2021-09-29 15:51:30 +10:00
Peter Barker
40a463f60c
autotest: simplify camera mission item test
...
Rename for the modern style of keeping method name same as test name.
Remove pointless try/except block as it wasn't doing anything useful.
2021-09-29 11:38:18 +10:00
Peter Barker
5ec82851d0
autotest: add test for Sub entering circle twice
2021-09-28 19:11:43 +10:00
Peter Barker
dd36908ba4
autotest: include SBP file in those that contain log messages
2021-09-28 10:45:51 +10:00
Peter Barker
e906cdf1e4
Tools: move SBP logging structures into AP_GPS
2021-09-28 10:45:51 +10:00
Josh Henderson
27bb200644
Tools: add sitl_32bit board type for sim_vehicle & autotests
2021-09-28 09:15:11 +10:00
Josh Henderson
b42a95eb20
Tools: autotest.py enable unit testing for SITL
2021-09-28 09:11:48 +10:00
Randy Mackay
f606fe727a
Tools: conditional-yaw test timeout increased
...
the request is to rotate 360deg at 10deg/sec but the timeout is only 30sec. We need at least 36
2021-09-28 00:17:25 +09:00
Peter Barker
93e6cfef35
autotest: move helicopter tests to own file
2021-09-27 11:58:39 +10:00
Peter Barker
bc664d77b7
autotest: add trivial test for MAVFTP using MAVProxy
2021-09-27 11:42:47 +10:00
Peter Barker
b82b6f1e50
autotest: add test which force-switches to DCM and watches plane land
2021-09-26 17:35:46 +10:00
Peter Barker
ba5e94ad9a
autotest: add load_generic_mission
2021-09-26 17:35:46 +10:00
Peter Barker
6ae280a5d7
autotest: test GPS input using different simulated GPSs
2021-09-25 20:48:41 +10:00
Paul Riseborough
74a7e3b64a
Tools: Rework copter vibration failsafe autotest
...
Allow more time for descent when vibration affected.
2021-09-23 18:55:28 +10:00
Iampete1
52a805e978
Tools: autotest: update arming swich option number
2021-09-21 09:36:24 +10:00
Peter Barker
1e1e8010e3
autotest: remove APM references
2021-09-18 10:45:39 -05:00
Michelle Rossouw
9eb3a063d8
autotest: Add usable default parameters for Blimp's position and velocity PIDs
2021-09-18 08:26:23 +10:00
Andrew Tridgell
aa643e5637
autotest: Fixed blimp default params
2021-09-18 08:26:23 +10:00
Peter Barker
0c84c50d70
autotest: exempt HAL_QUADPLANE_ENABLED line in log metadata gen
2021-09-14 13:55:01 +10:00
arikrupnik
64ed31abc9
Add Santa Clara County Model Aircraft Skypark--a real field and a photo field in RF
2021-09-14 07:54:24 +10:00
Iampete1
b2a871acb3
Tools: autotest: defualts: remove AUTO_FBW_STEER
2021-09-12 22:12:32 -05:00
Randy Mackay
fe9d655cc2
Tools: improved tune for sitl copter y6
2021-09-13 07:51:56 +09:00
Iampete1
b617f19e6d
Tools: autotest: defualt_params: remove ALT_CTRL_ALG
2021-09-09 11:07:07 +01:00
Peter Barker
d7a5e460cc
autotest: add tests for changing WPNAV_SPEED_{UP,DN}
...
and slight augment for WPNAV_SPEED
2021-09-08 21:29:38 +10:00
Samuel Tabor
a44b81f97d
Tools: autotest: Add KHA locations.
2021-09-08 19:37:49 +09:00
Peter Barker
d1d03319ac
Tools: make heli-blade simulation work
2021-09-08 14:33:19 +10:00
Bill Geyer
a2932e8f36
Tools: add blade 360 helicopter default params
2021-09-08 14:33:19 +10:00
Peter Barker
d94191b8d8
autotest: ensure WPNAV_SPEED changes speed in flight
2021-09-07 10:04:07 +09:00
Josh Henderson
9d32e481c2
Tools: locations.txt move Grand Canyon to better defined terrain data
2021-09-04 17:00:10 +10:00
Pierre Kancir
575c608688
Tools: allow to use sim_vehicle.py without pymavlink installed
2021-09-04 07:49:42 +10:00
Peter Barker
e5c35d399c
autotest: re-enable Heli spline waypoint test
...
position controller has been completely rewritten, so the bug should be
gone now....
2021-09-03 12:46:33 +10:00
Peter Barker
b9d62e7ff2
autotest: add test for setting multiple messages to same rate
2021-09-02 09:24:11 +10:00
Peter Barker
42c2f8d9f3
Revert "Tools: comment out the FETtecESC_safety_switch() function for now because it is failing"
...
This reverts commit d53299ecb0
.
2021-09-01 18:25:51 +10:00
TunaLobster
1df66731c8
Tools: Add rstlatexpdf emitter
2021-08-31 09:28:03 +10:00
Iampete1
dd031dd43e
Tools: autotest: default_params: tri: set MOT_YAW_SV_ANGLE to 60
2021-08-28 10:32:59 +09:00
Iampete1
2fa24fa7da
Tools: autotest: enable tailsitter for tailsitter test
2021-08-25 14:34:50 +01:00
yaapu
17cdb07bd5
Tools:autotest: added test for FRSky PassThrough WIND frame 0x500C
2021-08-25 17:13:16 +10:00
Gone4Dirt
b4346ba5a3
Autotest: Update RPM in default params
2021-08-25 09:36:58 +10:00
Gone4Dirt
fba15f3035
Autotest: Update RPM param.
2021-08-25 09:36:58 +10:00
Josh Henderson
695ad5b4f6
Autotest: BaroDrivers tighten leeway for pressure and temp deltas
2021-08-24 09:55:01 +10:00
TunaLobster
7d92ab1fb0
Tools: Fix emit.py regex
2021-08-23 14:44:27 +10:00
TunaLobster
6381297215
Tools: Move reboot required from table to note
2021-08-20 11:23:21 +10:00
Peter Barker
c443a93b15
autotest: add grand-canyon location
2021-08-20 10:51:03 +10:00
Samuel Tabor
9f77d5ac9d
autotest: fly_mission should respect mission_timeout when waiting for wps.
2021-08-19 17:59:33 +10:00
Samuel Tabor
3a185e7533
autotest: Add plane test for landing with barometer drift.
2021-08-19 17:59:33 +10:00
TunaLobster
b5f7fca254
Tools: parameter emitter spelling pass
2021-08-19 10:00:16 +10:00
Josh Henderson
70166c8173
autotest: add battery_charge_state ok & low tests
2021-08-18 15:32:28 +10:00
Peter Barker
12ac5174d7
autotest: check battery_status.charge_state is critical on failsafe
2021-08-17 14:40:55 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
d53299ecb0
Tools: comment out the FETtecESC_safety_switch() function for now because it is failing
...
I do not understand why it is failing, and failed at fixing it.
2021-08-13 16:22:37 +10:00
Peter Barker
20f58afa93
Tools: complete rewrite of the ESC-configuration state machine
...
Co-authored-by: Dr.-Ing. Amilcar do Carmo Lucas <amilcar.lucas@iav.de>
tidy message sending using templates
Calculate and enforce the minimum update period.
Disable unused features to save flash
forced time gaps between all transmits
correct ESC reset functionality
Avoid re-initialization repeatition
Make sure we stop FETtec if safety is on (ignore reverse) this reduces duplicated code
Error count calculation changed
as the telemetry error count is absolute only the overflow status can be safed and used for the percentage calculation
Update the README to add autotests information
FETtec needs a time gap between frames
This allows running at high fast_loop_rates
do not send fast_throttle data if a configuration command just got sent
Example parameter configuration file is for a Quadcopter with ESCs connected to Telem2
remove two FIXME
fix compilation in master
Fix the ESC not re-initializing issue.
Now we re-init whenever we loose connection
RVMASK parameter changes only take effect when not armed
Improve documentation
Always use the same wording when referring to fast-throttle commands
fix pre-arm check message
assure the length of the memmove is positive
Set HAL_AP_FETTEC_CONFIGURE_ESCS to 0 when no ESC hardware is available and you want to test the UART send function
2021-08-13 16:22:37 +10:00
Peter Barker
e263063600
autotest: a gap in the beginning of the SERVO_FTW_MASK is now allowed, test it
...
make sure the SERVO_FWT_MASK is valid:
- it can have bit gaps between active channels, but channels higher than 12 are not allowed (AP_EST_TELEM limitation)
- Explain that the FETtec ESC IDs inside the FETtec Firmware need to be contiguous and start at 1.
add tests for ESC power outages
add test that safety switch zeroes PWM for FETtec ESC
2021-08-13 16:22:37 +10:00
Peter Barker
3bc4cf710f
autotest: add test for FETtecESC
2021-08-13 16:22:37 +10:00
Peter Barker
0d4bee8f7b
autotest: except QRTL/QLAND from airmode tests due to non-armability
...
The test wasn't checking the return value for arming, so of course the
motors weren't spinning.... now we've fixed the checked-for-arming thing
these two modes were failing.
2021-08-13 13:40:28 +10:00
Peter Barker
8fc6e98900
autotest: raise exception for arm/disarm failures on switch/rc
...
Users were calling these without checking the return values. Make that
a non-issue
2021-08-13 13:40:28 +10:00
Peter Barker
5e81026e78
autotest: add option to hard-reset after every test
2021-08-13 08:01:20 +10:00
Peter Barker
013bee99f4
autotest: rover: wait ready to arm before running motor test
2021-08-13 08:00:52 +10:00
Peter Barker
d03cfb8615
autotest: Plane: wait for origin before enabling fence
...
we load into memory as origin-relative positions
2021-08-12 20:34:36 +10:00
Peter Barker
cccec5c21c
autotest: add test for FRSkyD battery
2021-08-11 15:17:43 +10:00
Peter Barker
abb6521127
Revert "autotest: use SIM_STATE (common.xml) instead of SIMSTATE (ardupilotmega.xml)"
...
This reverts commit 540a56adb8
.
Polling this message caused issues on reboot - shouldn't be a problem
but is.
Retrying that showed that the Tracker GUIDED test failed reliably due to
a yaw problem.
2021-08-07 16:18:05 +10:00
Peter Barker
44d5885d99
autotest: augment blending test to ensure GPS switch events make log
2021-08-06 15:30:18 +10:00
Andrew Tridgell
2b1e80c70d
Tools: copy board_list.py for build_binaries.py
2021-08-06 10:00:08 +10:00
Peter Barker
540a56adb8
autotest: use SIM_STATE (common.xml) instead of SIMSTATE (ardupilotmega.xml)
...
It is a useful superset
2021-08-05 18:35:11 +10:00
Peter Barker
27fcb3a100
autotest: fix simstate error message
2021-08-05 18:35:11 +10:00
Peter Barker
ca35d01baa
autotest: move upload_simple_relhome_mission up
2021-08-05 10:38:03 +10:00
Josh Henderson
162b3b70cf
Autotest: use MAV_POS_TARGET_TYPE_MASK, remove POS_TYPE_MASK_FORCE
2021-08-03 12:48:38 +10:00
Peter Barker
8e72dc32d1
autotest: add test home is restored persistently on wdog reset
2021-08-03 10:36:50 +10:00
Andrew Tridgell
e6f15ed6c0
autotest: cope with WriteStreaming() in doc tests
2021-08-03 10:23:36 +10:00
Josh Henderson
1cb11a5ff2
Tools: autotest change smartbatt param names
2021-08-03 09:36:26 +10:00
Iampete1
27b324742e
Tools: sim_vehicle: pass on slave comandline CMD
2021-08-03 09:22:19 +10:00
Andrew Tridgell
a0da76243d
autotest: reboot after AHRS_ORIENTATION test
...
the EKF can be left very unhappy by this test
2021-07-31 10:01:14 +10:00
Braedon O'Meara
de91058b1a
Tools: Add tmux support to run_in_terminal_window.sh
...
Added in an option so that if running SITL in a tmux session it will open a new window in tmux.
More or less an alternate option to screen.
It will detect if its running in a tmux session by checking the $TMUX and $TERM env variables.
I put it before other options because when I am running a tmux session even in a GUI environment
I would prefer a new Tmux window compared to a new terminal.
This will only run if youre already in a tmux session it will not launch a new session.
2021-07-30 12:05:15 +10:00
Peter Barker
2ae483cee0
autotest: stop uploading artifacts to autotest server
...
github action's CI is good at this
2021-07-30 11:32:59 +10:00
Peter Barker
7929122f49
autotest: improve AHRS trim test
2021-07-28 17:20:28 +10:00
Peter Barker
909decc5be
autotest: move wait_attitude up to common.py
2021-07-28 17:20:28 +10:00
Peter Barker
da3ff2c142
autotest: add test for live change of AHRS orientation
2021-07-27 17:28:09 +10:00
Peter Barker
04ddc9de03
autotest: correct order of progress vs action in set-param
2021-07-27 16:51:48 +10:00
Peter Barker
e1884bcd6e
autotest: run dumpstack/dumpcore on stuck SITL process
2021-07-27 16:51:48 +10:00
Paul Riseborough
9207744152
Tools: Rework Plane.EKFlaneswitch autotest
2021-07-22 18:20:45 +10:00
Paul Riseborough
7f3980c1f4
Tools: Rework Copter VibrationFailsafe test to use commanded land
2021-07-22 18:20:45 +10:00
Paul Riseborough
ef1dda005f
Tool: Allow more time for quadplane autotest to land and disarm
2021-07-22 18:20:45 +10:00
Paul Riseborough
ff1c465a17
Tools: relax navigation test accuracy
2021-07-22 18:20:45 +10:00
Paul Riseborough
a0ae998a4d
Tools: Fix AIRSPEED_AUTOCAL test failure
...
The mission plan for this test causes a lot of overshoot when turning onto final approach with the result that there is still some lateral offset when passing the landing waypoint that is not a measure of estimator accuracy.
2021-07-22 18:20:45 +10:00
Peter Barker
eff4bc4cfb
autotest: drain pexpects in set_parameters loop
...
This loop doesn't self.mav.recv(), so the idle loop isn't called, so the
pexpects aren't drained. That can cause ArduPilot to block on stderr if
it is trying to print a stacktrace, for example
2021-07-21 17:05:17 +10:00
Peter Barker
27de0a3d23
autotest: add new Copter yaw tests
2021-07-21 17:05:01 +10:00
Peter Barker
43a4ea734f
autotest: add some diagnostics for missing processes
2021-07-21 15:50:50 +10:00
Peter Barker
571ae46b0f
Tools: split yaw-vehicle-for-mount-roi test out
2021-07-19 18:16:13 +10:00
Andrew Tridgell
618fa156c7
autotest: added --replay option to autotest
...
make for easy creation of EKF replay logs
2021-07-16 21:13:53 +10:00
Andrew Tridgell
e52b9f78c2
autotest: fixed tuning of tilthvec quadplane model
2021-07-16 08:41:47 +10:00
Peter Barker
2ae6030f0c
autotest: add baro i2c drivers autotest
2021-07-14 17:46:15 +10:00
Peter Barker
14d271776e
autotest: break out a fly_mission method
2021-07-14 17:46:15 +10:00
Peter Barker
53e980bada
autotest: add test for two consecutive drops with no reboot
2021-07-14 16:38:36 +09:00
Peter Barker
9fb7ef915e
Tools: add support for ms5525 i2c sensor
2021-07-13 12:00:37 +10:00
Pierre Kancir
8234fd4c39
Tools: autotest: add IRLock SITL test
2021-07-12 17:50:31 +10:00
Peter Barker
9ff77d8f1c
Tools: remove AC_TERRAIN compilation option
...
Use AP_TERRAIN_AVAILABLE instead
2021-07-12 17:34:44 +10:00
Leonard Hall
33ec8b965b
Tools: Autotest update guided bitbask to include acceleration
2021-07-10 20:25:05 +09:00
DaijiroYamazaki
1e545052f4
Tools: autotest: add 2 locations in Japan
2021-07-10 09:24:32 +09:00
Andrew Tridgell
a6a01cf432
autotest: added --ekf-single and --postype-single options to autotest
2021-07-10 07:20:41 +10:00
Andrew Tridgell
5a5018cda2
autotest: adjust test_altitude_types for small change in longitude_scale
2021-07-10 07:20:41 +10:00
Andrew Tridgell
4f7630e29c
Tools: allow for double EKF build
2021-07-10 07:20:41 +10:00
Andrew Tridgell
b8e934ccf1
autotest: added --udp option to sim_vehicle.py
...
this makes running with high speedups easier
2021-07-09 19:19:24 +10:00
Peter Barker
aa27479e95
autotest: show output from Replay run
2021-07-08 16:20:12 +10:00
Peter Barker
743ed05367
autotest: detect ap-*.core as we do core.* files
2021-07-08 15:46:07 +10:00
Peter Barker
fd803ddafc
autotest: remove stray diagnostic files before run
2021-07-08 15:46:07 +10:00
Andrew Tridgell
3a7075fc65
autotest: fixed config error loop test
2021-07-08 07:56:51 +10:00
bugobliterator
236eecc494
autotest: add option for running sim with ONVIF camera
2021-07-07 18:57:25 +10:00
Siddharth Purohit
2750b361aa
autotest: move to using tool instead of tools program group
2021-07-07 17:31:09 +10:00
Peter Barker
70a161a583
autotest: create SITL debug binaries by default
2021-07-07 17:11:27 +10:00
Peter Barker
df02289493
autotest: add test for two consecutive drops with no reboot
2021-07-07 12:01:07 +10:00
Michelle Rossouw
8017e528c8
Tools: Add Blimp to param_parse.py
2021-07-06 14:56:02 +10:00
Peter Barker
c1a5ca6060
autotest: add test to ensure we get a log if arming is forced
2021-07-04 08:54:54 +10:00
Peter Barker
85f36f957d
autotest: add force option to arm_vehicle
2021-07-04 08:54:54 +10:00
Andrew Tridgell
d81b758d77
autotest: support using geocoder for -L location
...
this allows for location names from OSM, for example:
sim_vehicle.py -L '26 Carstensz St Griffith' --console --map
2021-06-29 15:41:26 +10:00
Peter Barker
99a0f5a86a
autotest: disable quadplane ConfigErrorLoop test
...
failing on the autotest server (and locally).
AT-1474.6: RC values bad: (ch=1 want=1500 got=0)
AT-1474.6: AP: Config error: Baro: unable to initialise driver
AT-1474.6: AP: Config Error: fix problem then reboot
AT-1474.6: RC values bad: (ch=1 want=1500 got=0)
AT-1474.6: RC values bad: (ch=1 want=1500 got=0)
AT-1474.6: RC values bad: (ch=1 want=1500 got=0)
2021-06-27 11:09:39 +10:00
Randy Mackay
5ec75578ab
Tools: add copter gps_glitch_loiter_test2
...
checks for twitches in Loiter after GPS glitch
2021-06-25 16:52:57 +09:00
Andrew Tridgell
220107b2a6
Tools: added boat circuit for Rabi
2021-06-25 15:33:55 +10:00
Andrew Tridgell
396094a82c
Tools: added a mission around Rabi, close to -180 degrees lon
2021-06-25 15:33:55 +10:00
Andrew Tridgell
75ae2548a7
Tools: added some locations close to the date line
2021-06-25 15:33:55 +10:00
Andrew Tridgell
3204ce4bf1
Tools: added --postype-single for sim_vehicle.py
2021-06-24 21:34:30 +10:00
Peter Barker
4c173e01ef
autotest: increase number of parameter retries
...
sets were failing just after we uploaded very large numbers of
parameters. I'm guessing the parameter queue in ArduPilot is still
full.
2021-06-24 17:58:31 +10:00
Peter Barker
4bb91d1ec1
autotest: shift where we print which attempt we are doing
2021-06-24 17:58:31 +10:00
Randy Mackay
f3c96b438b
Tools: autotest of vibration failsafe
2021-06-24 08:34:56 +10:00
Peter Barker
b58e7bedaa
autotest: correct placement of not-alive-after-test message
...
This was misplaced with bad conflict resolution
2021-06-24 08:34:06 +10:00
Peter Barker
d6f619fb1a
autotest: emit 'attempt 1/3' when retrying set_parameter
...
Also reterm things in terms of attempts rather than retries
2021-06-24 08:30:03 +10:00
Peter Barker
99c7d3aabc
autotest: ensure no stray message listeners after test
2021-06-23 21:55:32 +10:00
Peter Barker
6a8ca9e45b
autotest: timeout in wallclock time in config error loop test
...
SYSTEM_TIME is not sent in config error loop
2021-06-23 21:55:32 +10:00
Peter Barker
b6d5569244
Tools: param_metadata: disallow @Values and @Bitmask at same time
2021-06-23 18:37:34 +10:00
Peter Barker
7842f55a3b
Tools: add rc channel option to disable all airspeed sensors
2021-06-23 15:13:13 +10:00
Peter Barker
d82a229584
autotest: revert to subprocess.check_call
...
.run is only Python3
2021-06-22 20:24:07 +10:00
Peter Barker
8395bf617f
autotest: disable autotesting of tri frame as it is still busted
2021-06-21 21:17:10 +10:00
Peter Barker
697fbb0db0
autotest: verify roll/pitch are not adversely affected by yaw inputs
2021-06-21 21:17:10 +10:00
Peter Barker
4c20bc2d9d
autotest: ensure reasonable yawrate on takeoff in FlyEachFrame
2021-06-21 21:17:10 +10:00
Peter Barker
d3f90bde7f
autotest: add FlyEachFrame test for Plane
2021-06-21 14:13:18 +10:00
Pierre Kancir
39c96f63c8
Tools: autotest.py: total flake8 compliance.
2021-06-18 16:03:51 +10:00
Pierre Kancir
7ddb4d681d
Tools: autotest: correct exception handling on unit test run.
2021-06-18 16:03:51 +10:00
Peter Barker
723d2dee00
autotest: improve diagnostics around touchdown/takeoff expected tests
...
Also looks at last result as we don't appear to have a consistent number
in our tests
2021-06-18 09:03:34 +09:00
Peter Barker
210818cd6e
autotest: let arming failure messages get spit out
2021-06-17 21:01:23 +10:00
Peter Barker
47a778d033
Tools: remove HIL support
2021-06-15 09:47:31 +10:00
Peter Barker
61fda691f2
autotest: add trivial test for smart battery logging
2021-06-15 09:46:26 +10:00
Peter Barker
cea0d7c971
autotest: move autotest tlog files into buildlogs directory
2021-06-11 22:14:11 +10:00
Peter Barker
e77512ba08
autotest: add method to create simple relative-to-home mission
2021-06-11 16:59:51 +10:00
Peter Barker
14b2af84ab
autotest: break out a home_relative_loc_ne for getting a home-rel loc
2021-06-11 16:59:51 +10:00
Peter Barker
96e14d470a
autotest: retry SITL connect many times while running under GDB
...
Allows for easier debugging under gdb when checking startup code
2021-06-11 11:15:58 +10:00
Peter Barker
0b517cfc57
autotest: start GDB in tui mode by default
2021-06-10 20:52:48 +10:00
Peter Barker
fd792bebf8
autotest: wipe SITL state after temperature cal test
...
ArduPilot internals are fiddling state that the autotest suite is
unaware of, so wipe the eeprom after the test
2021-06-09 14:14:06 +10:00
Peter Barker
79de738266
autotest: wait for a few seconds for arm-failure messages to appear
...
If prearms never come true then we try to arm the vehicle so it tells us
what is wrong. Since we no longer push statustexts hard, we have to
wait for the reasons to come out at normal clocked rates.
2021-06-09 14:13:54 +10:00
Peter Barker
6af6d2fc2a
autotest: add a progress message for looking for a message in a log
2021-06-09 14:13:31 +10:00
Peter Barker
6944ef6af1
autotest: fly each working Helicopter frame
2021-06-09 12:15:42 +10:00
Randy Mackay
058d4299ad
Tools: update SITL tri and hexa gains
2021-06-08 19:11:32 +10:00
Andrew Tridgell
3be7f1ae23
autotest: removed tri from doesn't fly list
2021-06-08 19:11:32 +10:00
Andrew Tridgell
0876cb9cd6
autotest: fixed defaults for tricopter
2021-06-08 19:11:32 +10:00
arsh
45f1d03bda
autotest:Copter test fix for some frames
...
removed some lines
Whitespace messages removal
2021-06-08 16:50:37 +10:00
Peter Barker
0bd9610687
autotest: add trivial test for BodyFrameOdom
2021-06-04 15:09:51 +10:00
Randy Mackay
e8947dfb47
Tools: reduce copter autotest rate yaw P and I gains
...
affects quad, hexa, octa, octa-quad, deca, tri, y6, dodeca-hexa
2021-06-03 12:20:43 +09:00
yaapu
b14dcf1df5
Tools:autotest: updated FRSky SPort test to use new 2 byte data IDs
2021-06-02 17:33:15 +10:00
Pierre Kancir
cf350a52e9
Tools: Autotest: add --coverage option
2021-06-02 14:42:59 +10:00
Peter Barker
2439587c5a
autotest: add tests for ground effect compensation active in EKF
2021-06-02 11:13:16 +09:00
Peter Barker
8925c2830b
autotest: check fence upload/download when creating from locs
2021-06-01 15:54:59 +10:00
Peter Barker
c1a20ceab4
autotest: add test to catch bug with opticalflow if no rangefinder
2021-06-01 11:31:42 +10:00
Randy Mackay
26ea80fc62
Tools: update default params for copter-optflow.parm
2021-06-01 09:57:16 +10:00
Pierre Kancir
7e389afbec
Tools: allow to build examples and tests with debug
2021-05-26 18:46:03 +10:00
Pierre Kancir
58358d9f97
Tools: correct arguments passing on autotest.py
2021-05-26 18:46:03 +10:00
Leonard Hall
1326dbe2ee
AutoTest: Sub: Add appropriate pid parameters for highly damped system
2021-05-24 20:13:37 +10:00
Leonard Hall
41c437b768
AutoTest: Copter: fly_poshold_takeoff increase acceptable range
2021-05-24 20:13:37 +10:00
Pierre Kancir
458b6084fa
Tools: don't make report test failure on coverage
2021-05-20 14:54:47 +10:00
Peter Barker
c7a9fb3c9c
autotest: retry dynamic notches 8 times before failing
...
This test is flapping.
This is a poor - but serviceable - workaround.
2021-05-18 11:13:10 +10:00
Peter Barker
0a06a9e446
param_metadata: reinstance @Values/@Bitmask magic for excluding params from vehicle output
2021-05-17 10:18:35 +10:00
Peter Barker
eb2b1b3231
Tools: param_meteadata: correct @Values{Plane} etc handling
2021-05-17 10:18:35 +10:00
Peter Barker
3eb164fb6a
autotest: move script helper functions from rover to common
2021-05-14 13:21:36 +10:00
Peter Barker
3d562046da
autotest: add accuracy option to guided_achieve_heading
2021-05-14 13:21:36 +10:00
Peter Barker
c18c4ad6ec
Tools: param_metadata: remove use of dirname when creating Vehicle
...
So a Vehicle object takes a truename - i.e. Copter, not ArduCopter, but
can also take a "reference", which is used for e.g. constructing RST
tags.
2021-05-13 21:09:45 +10:00
Peter Barker
3ea9307419
Tools: param_metadata: flake8 cleanliness
2021-05-13 21:09:45 +10:00
Peter Barker
1123de112c
Tools: param_metadata: tidy finding of Vehicle parameter file
2021-05-13 21:09:45 +10:00
Peter Barker
97e57932c4
Tools: param_metadata: remove more multi-vehicle support
...
This script hasn't supported emitting multiple vehicles for a very long
time, but this was enforced using a check and we kept a list of vehicles
around for no very good reason.
2021-05-13 21:09:45 +10:00
Andy Piper
2df7b5453e
autotest: add test for ESC telemetry driven notches.
2021-05-12 17:01:11 +10:00
Peter Barker
d2f78c69be
autotest: add a simple test for SMART_RTL
2021-05-12 13:01:50 +10:00
Peter Barker
9965f1a31d
autotest: add some helpers for local-position movement
2021-05-12 13:01:50 +10:00
Peter Barker
7ab094f3a1
autotest: tidy fly_guided_move_local
2021-05-12 13:01:50 +10:00
Peter Barker
1d6efbd56f
autotest: fix loiter_to_ne
...
Co-Authored-By: leonardthall@gmail.com
2021-05-11 14:51:28 +10:00
Peter Barker
04aed49572
autotest: adjust GyroFFT threshold to make it pass
...
From Andy:
Can you make this 0. The test should then pass. I'm not terribly happy about it but its better than disabling the test and I can't tell whether there is actually a problem or not.
2021-05-07 18:30:08 +10:00
Peter Barker
0a235ce094
autotest: remove retry loop from within GyroFFT
...
This effectively removes an infinite loop from the GyroFFT test.
2021-05-07 18:30:08 +10:00
Peter Barker
765889b827
autotest: don't send statustext during exception
...
During an exception we don't want to be trying to print these
2021-05-07 14:21:44 +10:00
Peter Barker
f78cf73726
autotest: don't fail completely if ArduPilot process dies
2021-05-07 12:22:11 +10:00
Peter Barker
b04dfda9fb
autotest: enable deca and dodeca frames in FlyEachFrame test
2021-05-06 16:26:28 +10:00
Peter Barker
cf4acaa2aa
autotest: re-enable quadplane QAutoTune test
2021-05-05 23:43:59 +10:00
James O'Shannessy
bc38d8a78c
AutoTest: Fix autotest from failing due to state from earlier test
...
Autotest was failing because there was an expectation that the plane would fly relatively north from the takeoff point.
This assumption may not be true. We work around it by using a tin can instead of an exclusion polygon so that we breach no matter the direction we fly.
2021-05-05 10:59:10 +10:00
James O'Shannessy
0e656c1504
AutoTest: Ensure Plane uses home as Fence Return Point if one is not present and no exclusion fence is present
2021-05-05 10:59:10 +10:00
Peter Barker
9a13b5c9b6
autotest: add test for auxfunc triggering via script
2021-05-05 07:13:18 +10:00
Iampete1
aa72b7da46
Tools: autotest: Plane: add loiter terrain following test
2021-05-02 18:51:27 +10:00
Peter Barker
57abaf0dec
autotest: remove retry loop from within GyroFFTHarmonic
2021-05-01 21:30:28 +10:00
Peter Barker
4928ec18af
autotest: remove retry loop from within fly_dynamic_notches
...
We retried externally to the test - may as well do so within
2021-05-01 21:30:28 +10:00
Peter Barker
8fdfdebe55
autotest: pass sitl_commandline_customised up the context stack
...
We're running tests on the Callisto frame when we shouldn't in Copter as
the information was lost in nested Contexts.
We can only reset the SITL commandline at an actual Test level - if a
defaults file has been used then it is unclear as to what the state of
any parameter is in storage as we move between contexts
2021-05-01 17:22:36 +10:00
Peter Barker
117a44b589
autotest: remove corefiles at start of run
...
These lead to false-positive failures in the test suite
2021-05-01 17:22:36 +10:00
Peter Barker
2cd0099bbc
autotest: exclude decarotor from fly-each-frame-test
2021-05-01 13:25:13 +10:00
Peter Barker
76678ffaf3
autotest: fix octa-cwx in SITL
2021-05-01 13:25:13 +10:00
Peter Barker
5172e767df
autotest: fix octa-dji in SITL
2021-05-01 13:25:13 +10:00
Peter Barker
c7c4c17c68
autotest: improve change_mode debug
2021-05-01 13:25:13 +10:00
Peter Barker
63ba484087
autotest: add test which flies each frame we can
2021-05-01 13:25:13 +10:00
jbarrozo
3b1f5f0b15
autotest: added Boquig
2021-04-29 13:35:22 +10:00
Peter Barker
e4c405b77b
autotest: add a test for Spline missions showing terrain requirement
2021-04-28 18:40:26 +10:00
Iampete1
3bea2fd89b
Tools: autotest: defualts: setup direct acutated wing servo
2021-04-28 08:22:47 +01:00
Iampete1
0628aa9e29
Tools: autotest: add sailboat autotest
2021-04-28 15:16:35 +10:00
Peter Barker
fc426e01c2
autotest: stop using start_test for things that aren't actually tests
...
start_test should only be used for top-level tests, not parts of
top-level tests
2021-04-28 13:53:46 +10:00
Peter Barker
6af0f460af
autotest: add duplicate-logmessage-field sanity check
2021-04-27 16:38:40 +10:00
Peter Barker
30e8160aa1
autotest: sort logs before moving
...
Makes it easier to find last log in output.
Also removing pointless lamdaing of some functions
2021-04-21 13:16:24 +10:00
Pierre Kancir
927a875133
Tools: param_parse: fix vehicle specific parameter with multiple fields
2021-04-21 11:30:54 +10:00
Peter Barker
0ee0228883
autotest: fix flapping fly-home-land-and-disarm
...
One of the tests just happened to be within acceptance radius of
waypoint 8 - so when we set that as a waypoint we never saw it actually
be our waypoint so the set_waypoint failed
2021-04-20 23:04:24 +10:00
Peter Barker
8643322f06
autotest: correct string we expect from MAVProxy
...
Was APM: now AP:
2021-04-20 14:08:12 +10:00
Peter Barker
c12d1938c2
autotest: add a test for button change for changing modes
2021-04-19 14:27:45 +10:00
Andrew Tridgell
be161744db
autotest: adjust default plane tune
2021-04-15 06:57:16 +10:00
Andrew Tridgell
0be24c4946
Tools: convert old param files to new plane PID params
2021-04-15 06:57:16 +10:00
Andrew Tridgell
0d9d952aea
autotest: added SpringValley2
2021-04-15 06:57:16 +10:00
Peter Barker
31c889f583
autotest: accept Copter/Plane/Sub for sim_vehicle.py
2021-04-12 13:35:16 +10:00
Andrew Tridgell
affff0fc84
Tools: test mission from Leonards S-curve talk
2021-04-11 19:16:09 +10:00
Peter Barker
27b6637c2d
Tools: param_parse.py: add support for generation for AP_Periph
2021-04-11 11:31:41 +10:00
Peter Barker
b107740542
Tools: param_parse: add --sitl to emit only SIM_ parameters
2021-04-10 11:28:22 +10:00
Randy Mackay
0b9753b12f
Tools: autotest add vehicle info for rover-vectored
2021-04-08 08:47:07 +09:00
Randy Mackay
d00e63d14b
Tools: add default params for rover-vectored
...
Co-authored-by: srmainwaring <rhys.mainwaring@me.com>
2021-04-08 08:47:07 +09:00
Peter Barker
b369e86c0c
Tools: param_parse: remove references to APM in parameter generation
2021-04-07 17:08:25 +10:00
Peter Barker
229b25d916
Tools: param_parse: add *args and **kwargs to emitters
2021-04-07 17:08:25 +10:00
Peter Barker
5a927d84c8
Tools: param_parse: rejig selection of emitters
2021-04-07 17:08:25 +10:00
Peter Barker
5ef5fc9d84
Tools: param_parse: stop generating old .wiki format
2021-04-07 17:08:25 +10:00
Peter Barker
c3414a5767
Tools: param_parse: move init of variable lower
2021-04-07 17:08:25 +10:00
Peter Barker
4c6b07e950
Tools: param_parse: remove support for Parameters.pde
2021-04-07 17:08:25 +10:00
Peter Barker
c350268918
autotest: correct compilation of Replay in autotest suite
2021-04-05 16:39:36 +10:00
Peter Barker
ea4bbcf6ee
autotest: add test for copter position reset
2021-04-05 00:02:42 +10:00
Randy Mackay
ab2e429f32
Tools: Copter.fly_square descends more quickly
2021-04-03 12:07:59 +09:00
Randy Mackay
f341429977
Tools: Copter.RTLSpeed gets increased speed tolerance
2021-04-03 12:07:59 +09:00
Randy Mackay
c04f686ce7
Tools: extend copter NavDelay test by 80sec
...
s-curves slows missions slightly
2021-04-03 12:07:59 +09:00
Peter Barker
f0094bac40
autotest: remove copied-in duplicate of pymavlink rotmat
2021-04-03 13:26:06 +11:00
Peter Barker
dfa342a79f
autotest: correct rc-values-good debug
2021-04-03 08:59:14 +11:00
Peter Barker
7d9daccdf7
autotest: fix mavproxy switch test
...
The order in which we fix the environment means that we need to be
listening on the correct port for rc values - so just fix it in the test
2021-04-03 08:58:52 +11:00
Peter Barker
d384ba6585
autotest: increase time permitted for Copter to turn east
...
Sometimes they turn almost 360 which takes a while
2021-04-02 21:29:43 +11:00
Peter Barker
2c6bdd200c
autotest: fix make_safe_filename for Valgrind
...
Valgrind treats this as a format string so the % is bad
2021-04-02 20:51:18 +11:00
Peter Barker
18ded114ae
Tools: param_metadata; stop prettifying XML before emitting
...
indent is not available on our documentation server:
[build_parameters.py]
Traceback (most recent call last):
File "./param_parse.py", line 422, in <module>
do_emit(XmlEmit())
File "./param_parse.py", line 415, in do_emit
emit.close()
File "/home/wiki/build_wiki/ardupilot/Tools/autotest/param_metadata/xmlemit.py
", line 24, in close
etree.indent(self.paramfile)
AttributeError: module 'lxml.etree' has no attribute 'indent'
2021-04-02 14:39:39 +11:00
Peter Barker
cee348d082
Tools: make and declare bisect-helper.py flake8-compliant
2021-04-01 19:11:50 +11:00
Peter Barker
ee79895a4e
Tools: make and declare examples.py flake8-compliant
2021-04-01 19:11:50 +11:00
Peter Barker
fff4aa8bde
autotest: increase allowed time for climb_before_turn to get home
2021-04-01 19:11:31 +11:00
Peter Barker
f988064e48
Tools: add a tool to help determine best speedup for autotest
2021-04-01 11:27:17 +11:00
Peter Barker
d2c00f7b26
autotest: ensure RC thread is killed after each run_test
...
Every run_test starts a thread. del is not being called. So clean it
up in the caller
2021-04-01 11:00:54 +11:00
Peter Barker
500679ec5b
autotest: correct creation of default parameters
...
Simulation won't start if nothing is connected to 5760 - so just connect
mavproxy there
2021-03-31 23:29:47 +11:00
Peter Barker
ba972b6b46
autotest: fix --map option
2021-03-31 16:30:25 +11:00
Peter Barker
d621fe0cde
autotest: correct sub gripper mission
...
Ordinarily not run because gripper is disabled
2021-03-31 13:43:31 +11:00
Peter Barker
e8f96efe72
autotest: wait for stats initialisation before rebooting
...
If the RTC time we reset parameters (STAT_RESET) is zero then we reset all parameters.
In SITL we only set that time if we see a GPS due to the AP_RTC RTC_TYPES parameter default bitmask value of 1
So if you reboot SITL fast enough while STAT_RESET is zero you can see that STAT_BOOTCNT does not increase. Easily reproducible in SITL; start with -w and type reboot in several times before SITL sees the GPS come up and you can see STAT_BOOTCNT doesn't increase.
Fix is to ensure STAT_RESET is non-zero before rebooting.
2021-03-31 13:33:39 +11:00
Michelle Rossouw
cd18e16ffb
autotest: added blimp simulator type
2021-03-31 12:27:07 +11:00
Peter Barker
30ebe6cde9
autotest: augment test DO_AUX_FUNCTIION test for FAILED AND DENIED
2021-03-31 11:36:09 +11:00
Peter Barker
b2f47ba367
autotest: add test for auxilliary functions in missions
2021-03-31 11:36:09 +11:00
Peter Barker
b55094fef4
autotest: Test triggering Auxillary Functions via mavlink
2021-03-31 11:36:09 +11:00
Peter Barker
ef4ebbf126
autotest: add a do-nothing --autotest-server option
...
This option is currently ignored, but if given allows the script to
continue normally.
This allows us to change the autotest server to pass the option in - and
then we can change autotest.py so that unless the option is given we
spit out a help message rather than completely stuff up the user's
development environment
2021-03-26 22:52:35 +11:00
Peter Barker
e2a350f12e
autotest: reduce race condition in fly_square mission
...
We end up where we started, so when we start to play the mission back we
might immediately be at the first waypoint. That's a problem as we may
never see the NAV_CONTROLLER_OUTPUT mention waypoint 1 and thus we
fail the test
2021-03-25 02:13:44 +11:00
Peter Barker
240e2d6b28
autotest: correct pexpect handling of supplementary programs
2021-03-24 23:10:27 +11:00
Peter Barker
ae7b21843e
autotest: remove useless mavproxy set heartbeat directive
...
This has never actually worked:
2021-03-24T04:53:03.7594996Z AT-0040.3: Starting MAVProxy
2021-03-24T04:53:03.7595674Z PYTHONPATH: /__w/ardupilot/ardupilot/Tools/mavproxy_modules
2021-03-24T04:53:05.8106006Z Running: "mavproxy.py" "--master" "tcp:127.0.0.1:5762" "--aircraft" "test.ArduCopter" "--sitl=127.0.0.1:5502" "--streamrate=5" "--cmd="set heartbeat 8"" "--target-system=1" "--target-component=1" "--quadcopter" "--default-modules" "misc,terrain,wp,rally,fence,param,arm,mode,rc,cmdlong,output"
2021-03-24T04:53:05.8108569Z ERROR LOADING MAVNATIVE - falling back to python implementation
2021-03-24T04:53:05.8109340Z Connect tcp:127.0.0.1:5762 source_system=255
2021-03-24T04:53:05.8109962Z no script test.ArduCopter/mavinit.scr
2021-03-24T04:53:05.8110739Z Unknown command '"set heartbeat 8"'
2021-03-24 23:10:06 +11:00
Peter Barker
8bf1ac0347
autotest: fix and tidy the log download test
...
We were requesting past the end of the file
2021-03-24 14:46:48 +11:00
Peter Barker
fdbbcaa506
autotest: bump default speedups for several vehicles
...
These tests seem to run stabley on my box with essentially no speedup
limit
2021-03-24 14:46:48 +11:00
Peter Barker
6f2de67ead
autotest: augment delay_sim_time debug
2021-03-24 14:46:48 +11:00
Peter Barker
d9501766c7
autotest: augment delay_sim_time debug
2021-03-24 08:57:03 +11:00
Peter Barker
9f15689850
autotest: wait longer for prearm failure in IE24 autotest
...
we only emit prearm failures every 30 seconds - we just weren't waiting
long enough here
2021-03-23 20:34:47 +11:00
Peter Barker
073a9e3390
autotest: fix frsky passthrough test
...
Mainly through polling much faster, but also allowing for statustexts in
different orders from frsky/statustext
2021-03-22 18:08:44 +11:00
Peter Barker
e567cca230
autotest: drain mav before receiving system_time in get_sim_time
2021-03-19 09:46:45 +11:00
Peter Barker
8901efd69d
autotest: start and stop MAVProxy for alttype and surface tracking tests
...
autotest doesn't currently supply terrain tiles, so MAVProxy must be
started
2021-03-19 09:46:45 +11:00
Peter Barker
19e5351631
autotest: start and stop mavproxy for setpoint tests
...
These work in terrain frame - but autotest won't satisfy terrain
requests yet
2021-03-19 09:46:45 +11:00
Peter Barker
462ac255a3
autotest: start MAVProxy only as needed for testing
2021-03-19 09:46:45 +11:00
Peter Barker
4269cf52a2
autotest: split application of default parameters and defaultfile parameters
...
ensures all vehicles have LOG_DISARMED
2021-03-19 09:46:45 +11:00
Peter Barker
37efb1cbeb
autotest: Copter sim passes default file instead of setting parms
...
We're now waiting for the vehicle simulation to provide us a heartbeat
for a non-generic frame before considering it good to fly.
Unfortunately, Copter relies on the parameter file to tell it which
frame to use - and we don't apply parameters from parameter files until
after we've checked the heartbeat.
Passing the file into ArduPilot on the commandline means we don't have
this problem.
2021-03-19 09:46:45 +11:00
Peter Barker
dbee2e5d71
autotest: ignore type=0 heartbeat packets on SITL start
...
Until ArduCopter allocates its motors backend we emit a generic type,
for which there is no mode map in pymavlink.
So don't consider the reboot complete until we see a valid heartbeat.
2021-03-19 09:46:45 +11:00
yaapu
ec15614e11
Tools:autotest: added frsky passthrough autotest for terrain message frame 0x500B
2021-03-18 21:43:48 +11:00
Peter Barker
120167f799
autotest: fix fly_square mission
...
waypoint doesn't change until mission is running
2021-03-18 17:02:06 +11:00
Peter Barker
42eec13f5e
autotest: adjust CAN test for lack of MAVProxy
2021-03-18 13:50:57 +11:00
Peter Barker
21c124ab47
autotest: tidy set_parameters
...
Remove commented code, add more to the verbose option
2021-03-18 11:29:45 +11:00
Stavros Korokithakis
f6fc6d22da
autotest: Fix the climb-before-turn test
2021-03-18 07:37:21 +11:00
Samuel Tabor
36428f5074
Tools: Handle repeated add-param-file arguments to sim_vehicle.py.
2021-03-17 19:43:03 +11:00
Pierre Kancir
ebe841ba70
Tools: param_parse: validate empty description and fields
2021-03-17 18:54:53 +11:00
Peter Barker
da52e5d08c
autotest: set SYSID_MYGCS in tests which need it
...
This was still relying on heartbeats coming from MAVProxy. As speedup
increased those heartbeats may not come fast enough - and they really
should be coming from autotest as that's who's doing the commanding.
autotest: set SYSID_MYGCS in AFS test
autotest: set SYSID_MYGCS before setGCSfailsafe
2021-03-17 16:02:45 +11:00
Peter Barker
216140b58d
autotest: remove un-needed portion of reset_delay_item
...
Looks like this function evolved and this appendix remained
2021-03-17 14:17:39 +11:00
Peter Barker
f7d8994ce1
autotest: move assert_mission_count up, use it
2021-03-17 00:23:05 +11:00
Peter Barker
30c9d4bcf4
autotest: remove pointless loiter switch
2021-03-16 23:33:51 +11:00
Peter Barker
0c7f3d20a4
autotest: fix attitude test
...
autotest: add a get_messages_frame method
Attempts to get a set of messages as close as reasonable in time.
2021-03-16 14:19:44 +11:00
Stavros Korokithakis
29043d62e9
Add FLIGHT_OPTION to climb before RTL
2021-03-16 11:58:47 +11:00
Peter Barker
4b3adb806c
autotest: add test for tailsitter throttle
2021-03-16 10:41:44 +11:00
Hwurzburg
d15e01d390
Plane: fix DO_CHANGE_SPEED airspeed to impact only AUTO and GUIDED modes
2021-03-16 10:09:34 +11:00
Peter Barker
eb702b0f82
Tools: add support for ATTITUDE_QUATERNION
2021-03-13 09:44:12 +11:00
Peter Barker
0414929310
autotest: fix Heli spline waypoint test
...
Mission isn't round-tripped so make it non-strict
2021-03-13 09:35:22 +11:00
yaapu
3bfa07d35a
Tools:autotest, frsky passthrough fix for long status text message test
2021-03-13 00:14:27 +11:00
bugobliterator
5074b6d336
autotest: add test case for GPS ordering
...
also fix flake8 issues
2021-03-12 16:32:36 +09:00
bugobliterator
48277b43e4
Tools: add autotest for checking GPS ordering
2021-03-12 16:32:36 +09:00
Peter Barker
f78d7c3b25
autotest: add option to not check current wp after set_current_wp
...
Sometimes a waypoint is set which we'll never emit as our current
waypoint (e.g. a JUMP)
2021-03-10 09:12:39 +11:00
Peter Barker
4a251bebbd
autotest: fix fly_home_land_and_disarm; wp 7 is never current wp
...
This is never a current waypoint, so we can't wait for it
2021-03-10 09:12:39 +11:00
Peter Barker
3ddffdab9b
autotest: correct wait_current_waypoint timeout behaviour
2021-03-10 09:12:39 +11:00
Randy Mackay
78ddd0512c
Tools: autotest for copter spelling fix
2021-03-09 11:49:42 +11:00
Randy Mackay
4abae23306
Tools: disable QuadPlane.GyroFFT autotest
2021-03-08 08:52:05 +09:00
Peter Barker
bdeadce95b
autotest: improve deadreckoning test
...
autotest: use location_offset rather than coordinates in Deadreckoning test
2021-03-05 21:34:58 +11:00
Peter Barker
425ab1358a
autotest: tidy streamrate handling
...
Stop setting MAVProxy stream rates; these are neither here-nor-there now as MAVProxy will only modify its own connection's streamrates now
Stop doing the set-streamrate dance to work around MAVProxy's
set_streamrate algorithms.
Remove useless and misleading set of streamrate in Plane test; we reset
streamrates on the reboot immediately following this set. Considering
the streamrate was never eset this was a good thing.
2021-03-05 21:34:58 +11:00
James O'Shannessy
bcc0da9c47
AutoTest: Adds additional autotests to capture mode change while breached
...
AutoTest: Adds test for fence breach switching to guided mode when no fence return point is present. In upstream, this results in a vehicle fly-away.
2021-03-05 14:52:46 +11:00
James O'Shannessy
269fa5cbe2
AutoTest: Copter remove FENCE_AUTOENABLE tests
...
Addresses comments made in review, removes the FENCE_AUTOENABLE param for copter.
No param means no tests required.
2021-03-05 14:52:46 +11:00
James O'Shannessy
dac5996d93
AutoTest: Fix autotest conflicts after rebase on upstream
2021-03-05 14:52:46 +11:00
James O'Shannessy
e16bbe6e18
AutoTest: Ensure fence state is disabled at end of test
...
This appears to be another case of the fence state carrying over from one test to another. Disabling the fence at the end of the test appears to have fixed this problem
2021-03-05 14:52:46 +11:00
James O'Shannessy
31462418c6
AutoTest: Ensure Copter can RTL and Land even when Fence Floor has not been auto disabled
2021-03-05 14:52:46 +11:00
James O'Shannessy
fa7be629e5
AutoTest: Make fence tests flake8 compliant
2021-03-05 14:52:46 +11:00
James O'Shannessy
01b27bdb61
AutoTest: revert change that breaks quadplane
2021-03-05 14:52:46 +11:00
James O'Shannessy
2353b55452
AutoTest: Address race conditions in changes to fence tests
2021-03-05 14:52:46 +11:00
James O'Shannessy
76a2a76b54
AutotTest: Adds autotests for Plane to test RetRally flag added to AC_Fence
2021-03-05 14:52:46 +11:00
James O'Shannessy
8545715837
AutoTest: Add Static Fence Tests for unallowed arming when breaching geofence
2021-03-05 14:52:46 +11:00
James O'Shannessy
6f7ba3b037
AutoTest: Ensure fence is disabled at end of throttle_failsafe_fence test
2021-03-05 14:52:46 +11:00
James O'Shannessy
6251b6eead
AutoTest: Rebase and carry across changes from autotest
2021-03-05 14:52:46 +11:00
James O'Shannessy
b2346ef6df
AutoTest: Adds additional tests to ArduCopter to test autoenable and floor
...
Adds tests for:
* Testing auto-enable disabled (when no autoenabling of the fence is required)
* Test auto-enabled always after takeoff (when takeoff complete condition met)
* Test auto-enabled disable floor only (when land sequence begins)
* Test auto- on arm/disarm (when vehicle is armed/disarmed)
* Tests ability to land when fence is breached
2021-03-05 14:52:46 +11:00
Dr.-Ing. Amilcar do Carmo Lucas
dd5ede0fe0
autotest: small comment improvements
2021-03-05 14:52:46 +11:00
James O'Shannessy
bbd606b8b5
AutoTest: Corrections to autotests
2021-03-05 14:52:46 +11:00
James O'Shannessy
a3efc9ad98
AutoTest: Fix MAVlite test allowing plane fence to be enabled
2021-03-05 14:52:46 +11:00
James O'Shannessy
47e76a1807
AutoTest: Move fence enable/disable to common location
2021-03-05 14:52:46 +11:00
Dr.-Ing. Amilcar do Carmo Lucas
528defd560
Autotest: activate the fence via a mavlink command
...
This should not be required in the future, please fix this and revert this commit
2021-03-05 14:52:46 +11:00
Dr.-Ing. Amilcar do Carmo Lucas
8d8753b14c
Autotest: fix two copter tests after parameter rename
...
I'm not sure if a better fix would be to remove the set_parameter() call
2021-03-05 14:52:46 +11:00
James O'Shannessy
215901be30
Autotest: Correct the logic for fence based autotest functions
...
Adds corrections to enabling fence using aux function.
Correctly test fences statically. Only uploaded fences can be checked using a fence file, so we check those first. Then we add steps to check tin can, max and minm all set the fence as present, as expected.
Plane will support MAV_PROTOCOL_CAPABILITY_MISSION_FENCE, so we assert that it does support it.
To test ceiling and floor, leverage some existing functions for takeoff, change altitude and land. Check for respective breach.
Add a floor breach check to copter.
2021-03-05 14:52:46 +11:00
James O'Shannessy
1a3e168ced
Autotest: Fence is present, but test looking for not present
...
Autotest: Remove ties to mavlink FENCE_ACTION
Autotest: Add ArduPlane autotest to test ceiling and floor
Adds a test to ensure the vehicle reverts to RTL when breaching a ceiling or floor.
Autotest: Progress the test once we reach takeoff complete and fence enable
Autotest: Use RC_OPTION for Aux Switch functionality
Autotest: Enable fence last
2021-03-05 14:52:46 +11:00
Paul Riseborough
d52594c576
Tools: Fix set_home autotest
...
Don't try to get home until EKF has passed alignment and GPs checks.
Use a more realistic lat/lon offset threshold
2021-03-05 12:10:01 +11:00
Peter Barker
4aed767fe9
autotest: add test for MAV_CMD_DO_SET_MISSION_CURRENT
2021-03-04 11:59:33 +11:00
Peter Barker
a235246628
autotest: correct units in new AHRS2 test
2021-03-03 18:41:14 +11:00
Pierre Kancir
ecc89411f9
Tools: put UART_chargen in skip list
2021-03-03 18:07:38 +11:00
Peter Barker
b3ee5d5f59
autotest: increase verbosity in AHRS2 test
2021-03-03 16:29:33 +11:00
Randy Mackay
a35a7e1523
Tools: autotest manual control test requires 12 deg
...
adjusted down because of lower default angle_max
2021-03-03 08:03:39 +09:00
Peter Barker
317181922c
autotest: ensure we're getting vaguely sane data in AHRS2 message
2021-03-02 20:48:36 +11:00
Peter Barker
cc83562add
autotest: tidy fence handling
2021-03-02 16:54:06 +11:00
Peter Barker
b2d4cefa85
autotest: change heli default RPM type to 10
...
Change default to SITL
2021-03-02 15:41:44 +11:00
Peter Barker
4d2cf8c95b
AP_Frsky_SPort: correct handling of RPM sensor data
...
Nails support down to just two RPM sensors for the time being.
Simplifies things (there was an issue here when I corrected RPM-in-SITL)
2021-03-02 15:41:44 +11:00
Peter Barker
eb499ff731
autotest: improve frsky SPort test
...
- reduces verbosity as we only check the remaining items when new data
received
- reduces repoll interval and explains why we need to re-poll
2021-03-02 15:41:44 +11:00
Peter Barker
7b251b6fd4
autotest: add diagnostics for frsky tests
2021-03-02 15:41:44 +11:00
Peter Barker
2671a2f71f
autotest: fix up FRSky tests for running under Valgrind
2021-03-02 15:41:44 +11:00
Peter Barker
360512f6b0
autotest: preserve commandline customisations on reboot under valgrind
2021-03-02 15:41:44 +11:00
Peter Barker
fc9a93ba67
autotest: stop using mavproxy for clearing missions
2021-03-02 14:24:36 +11:00
Peter Barker
97e2596bf8
autotest: stop clearing mission at start of test
...
These are implicitly cleared by the framework
2021-03-02 14:24:36 +11:00
Peter Barker
973510a4ff
autotest: push context after customising cmdline
...
doing things in the other order causes problems when running the
complete suite
2021-03-02 14:24:36 +11:00
Peter Barker
5d1e105534
autotest: allow more time for mission upload and download
...
We upload some rather large missions....
2021-03-02 14:24:36 +11:00
Peter Barker
10007e2e42
autotest: load missions natively rather than using MAVProxy
2021-03-02 14:24:36 +11:00
Peter Barker
993d87469c
autotest: move mission upload functions from rover to common
2021-03-02 14:24:36 +11:00
Peter Barker
34a52e9cfe
autotest: use wait_statustext in place of mavproxy.expect for autorotate test
2021-03-02 13:34:09 +11:00
Peter Barker
0daa1a63d3
autotest: remove pointless fetch_parameters call
...
And the entire method, replace with equivalent test
2021-03-01 17:27:52 +11:00
nkruzan
3e0f9ab4e7
Tools:autotest\common.py fix text typo
2021-03-01 15:15:38 +11:00
Peter Barker
61138f342a
autotest: do not time out receiving of heartbeat if running gdb
...
pausing indefinitely when running GDB is OK.
2021-03-01 13:44:23 +11:00
Peter Barker
1f47698076
autotest: use change_mode in place of mavproxy.send
2021-03-01 13:10:09 +11:00
Peter Barker
d3b3c443bc
autotest: reset copter completely after autotune test
2021-02-25 10:49:58 +11:00
Peter Barker
013415eb31
autotest: make and mark arducopter.py as flake8-compliant
2021-02-24 15:10:10 +11:00
Peter Barker
79f21ed639
autotest: add test for GSF logging
2021-02-23 12:36:33 +11:00
Peter Barker
9d681eecc4
autotest: move to state outside when we leave log structure
...
No vertical whitespace allowed in the structures...
We concatenate all of the LogStructure files; without this we remain in
state_inside and try to parse every line in the concatenation as if it
were a log structure definition
2021-02-23 12:36:33 +11:00
Peter Barker
44ec74030e
autotest: recover from flip in althold to remove stabilise throttle problem
2021-02-21 23:11:26 +11:00
Peter Barker
a4a5d52c35
autotest: extend time allowed for RTL for simplemode test
2021-02-21 22:45:06 +11:00
Peter Barker
9120882e9e
autotest: print name of open dataflash log when test exception caught
...
The stack trace is already extremely useful... but mapping back to the
relevant dataflash log is a bit of a pain.
Adding more stuff to this method in the future might be good, too.
2021-02-21 21:35:35 +11:00
Peter Barker
adf44f3b2b
autotest: make and declare sim_vehicle.py flake8-clean
2021-02-21 21:35:17 +11:00
Peter Barker
98451e499a
autotest: make and declare balancebot flake8-clean
2021-02-21 21:35:17 +11:00
Peter Barker
b5f490aff4
autotest: make fly_proximity_avoidance_test_alt_no_avoid more reliable
2021-02-21 17:44:10 +11:00
Peter Barker
d4aef2dba8
autotest: stop using MAVProxy to change mode
2021-02-20 00:03:24 +11:00
Peter Barker
05c9b79a5e
autotest: make and declare quadplane.py flake8-clean
2021-02-20 00:02:33 +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
148e2e751f
autotest: add set_current_waypoint
2021-02-19 12:25:40 +11:00
Peter Barker
b7044d3708
autotest: remove use of global expect_list
2021-02-18 18:18:30 +11:00
Peter Barker
2d17f019b6
autotest: remove pointless manipulation of expect list
...
start_sitl and start_mavproxy already do this stuff
2021-02-18 18:18:30 +11:00
Peter Barker
dcc04ccd09
autotest: stop using MAVProxy to change modes
2021-02-18 17:38:52 +11:00
Peter Barker
2c1df16442
autotest: increase button message timeout to allow for Valgrind speed
2021-02-18 17:04:16 +11:00
Peter Barker
ad06a616b8
autotest: adjust for low log transfer rate under valgrind
2021-02-18 17:04:16 +11:00
Peter Barker
bcc1cb9dbb
autotest: use get_parameter in place of mav's param object
...
This is the only place in the code that does this
2021-02-18 15:06:26 +11:00
Peter Barker
b1ccf3b3f8
autotest: add test for rangefinder-based proximity avoidance enablement
2021-02-18 15:05:51 +11:00
Peter Barker
3cf1b9444f
autotest: get_sim_time_cached in NMEA output test to stop losing msgs
2021-02-18 11:26:22 +11:00
Peter Barker
ce61f44505
autotest: reset SITL commandline after fetching unhidden parameters
...
this makes a difference under Valgrind, which has to reboot slightly differently to normal SITL
2021-02-18 11:26:22 +11:00
Peter Barker
e221e6ce45
autotest: flake8 compliance for ardusub.py
2021-02-18 10:43:05 +11:00
Peter Barker
628a3843b2
autotest: flake8 compliance for arduplane.py
2021-02-18 10:43:05 +11:00
Peter Barker
78aa729b90
autotest: flake8 compliance for common.py
2021-02-18 10:43:05 +11:00
Peter Barker
4c56ac7eb3
autotest: flake8 compliance for antennatracker.py
2021-02-18 10:43:05 +11:00
Peter Barker
726f54e37f
autotest: flake8 compliance for rover.py
2021-02-18 10:43:05 +11:00
Peter Barker
e3887c8d93
autotest: make and mark autotest.py flake8-clean
2021-02-18 10:43:05 +11:00
Peter Barker
33fee211a4
autotest: extend pexpect timeouts when running under Valgrind
2021-02-17 18:16:04 +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
dbdda65956
autotest: add basic test for GPS blending
2021-02-17 11:30:01 +11:00
Peter Barker
1ca0998f32
Tools: take MAV_CMD_DO_SPRAYER as a mavlink command
2021-02-16 22:36:43 +11:00
Peter Barker
b14dcf4bae
Tools: add mission command to turn sprayer on and off
2021-02-16 22:36:43 +11:00
Peter Barker
be8f747b7a
autotest: adjust timeout for Valgrind; disable for gdb
2021-02-16 13:18:41 +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
e4d5a92721
autotest: add wait_distance_to_nav_target method
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
Peter Barker
a5706a18af
autotest: handle Py2 not having ConnectionResetError built in
2021-02-12 18:24:18 +11:00
Iampete1
904b493809
Tools: autotest, common.py remove extra comma
2021-02-11 09:20:15 +11:00
Pierre Kancir
8396388af9
Tools: run_examples: add FlashTest to skip list
2021-02-10 18:49:42 +11:00
Peter Barker
4324d66c13
autotest: loosen time constraint on mavlink messages in magcal
...
Saw an error where we didn't get one of these in 5 seconds.
That sounds like too much. But we'll loosen the constrain anyway
2021-02-10 09:28:45 +11:00
Peter Barker
bd8384b322
autotest: break out a get_altitude method
2021-02-10 09:28:25 +11:00
Alessandro Apostoli
e2aaf4c216
Tools: autotest, fix for frsky not defined error ( #4 )
2021-02-10 09:27:58 +11:00
Peter Barker
d9dd93bcdd
autotest: don't run frsky tests armed for the most part
2021-02-10 09:27:58 +11:00
Peter Barker
742d5a9fa0
autotest: add body_frame_velocity
2021-02-08 22:44:32 +11:00
Randy Mackay
f20fc28a85
Tools: param files to ease SITL setup of GPS-for-yaw
2021-02-05 17:22:27 +09:00
Randy Mackay
a09bdcdda1
Tools: default param file to ease using copter SITL with vicon
2021-02-04 20:21:00 +09:00
Peter Barker
567e9733b6
autotest: augment bisect-helper.py to help with flapping tests
...
- option to allow for a string which must be present in the outout
- option for strings which must not be present in the output
- repeat option so test must pass many times
- elaborate diagnostic output
- option to run under Valgrind (to provoke races)
The output from each test run is poked into a directory in /tmp
The number of runs a test took to fail is poked into a different file in /tmp, helping to tune the --autotest-test-passes parameter
2021-02-04 16:22:28 +11:00
Peter Barker
c2e310d75f
autotest: add test for OBSTACLE_DISTANCE_3D message
2021-02-04 15:50:45 +11:00
Peter Barker
393ec5d6f7
autotest: add test for MAVProxy proximity sensor
2021-02-04 12:03:35 +11:00
Peter Barker
cdaff74948
autotest: stop trying to arm in QRTL
2021-02-03 18:22:10 +11:00
Peter Barker
f65bee80dc
autotest: use BATTERY_STATUS to detect sub reboot
...
Sub doesn't implement AP_Stats so we have custom reboot detection for
it.
The current look-for-string strategy is flawed - we're missing the
string on reboot
2021-02-03 13:58:17 +11:00
Pierre Kancir
e13a35abc1
Autotest: check for empty message before trying to use it
2021-02-03 12:56:01 +11:00
yaapu
bb576a49b8
Tools: added autotest for frsky rpm telemetry
2021-02-03 12:49:38 +11:00
Samuel Tabor
d1578e5ba2
autotest: Update soaring default params in line with specified SOAR_THML_BANK.
2021-01-29 11:20:09 -08:00
Pierre Kancir
c02dfd1214
Autotest: add EndMissionBehavior Test for rover
2021-01-27 08:23:52 +09:00
Pierre Kancir
2b71bf8e99
Autotest: fix subtests completion
2021-01-27 08:27:54 +11:00
Andrew Tridgell
d47afb2406
autotest: added AHRSTrim test and add trim to accel cal test
...
this ensures the handling of AHRS trim is correct
2021-01-25 16:24:50 +11:00
Peter Barker
ad2ab333f9
Tools: autotest: allow autotest to connect directly to SITL
2021-01-24 09:25:45 +11:00
Peter Barker
8c7d63433c
autotest: clear mission ourselves rather than with MAVProxy at end of test
2021-01-24 09:25:45 +11:00
Peter Barker
30836535d0
autotest: retry dynamic notch test up to 3 times
2021-01-22 11:17:42 +11:00
Peter Barker
2e2e34d784
autotest: correct run_one_test case (vehicle.testname case)
2021-01-21 22:59:34 +11:00
Peter Barker
1fec88af21
autotest: make arming test a little more verbose
2021-01-21 22:15:16 +11:00
Peter Barker
281296832a
autotest: retry GyroFFTHarmonic test on failure
2021-01-21 16:45:34 +11:00
Peter Barker
3279400e2e
autotest: disarm_with_rc_input shortcuts if it sees rudder-disarm-disabled
2021-01-21 14:25:47 +11:00
Peter Barker
f452c6bb51
autotest: break out a statustext_in_collections method from wait_statustext
2021-01-21 14:25:47 +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
5a5ba26468
autotest: expanded accelcal test to check values
...
this checks the resulting accelcal is correct within 1%
2021-01-21 13:09:21 +11:00
Andrew Tridgell
3e640eed80
autotest: changes for per-IMU biases and scaling
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
0c3655b01f
autotest: fixed epsilon handling in set_parameters
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
Peter Barker
c7a6047904
autotest: add option to retry tests / create and use Test definition object
2021-01-21 10:23:17 +11:00
Peter Barker
03b2473c61
autotest: correct get_parameter_direct attempts decrement
2021-01-20 20:06:46 +11:00
Andrew Tridgell
7e89c05204
autotest: fixed --tracker option to sim_vehicle.py
2021-01-20 11:11:47 +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
04a52835c0
autotest: correct Rover set-position-target-global-int test
...
The vehicles doesn't send us set messages!
2021-01-19 21:16:39 +11:00
Peter Barker
1cb86303b4
Tools: add test for maxbotixi2cxl
2021-01-19 11:20:47 +11:00
Peter Barker
8eb670d685
autotest: trim default values from rover defaults files
2021-01-19 10:34:00 +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
7d86cc08ad
autotest: correct SITL commandline for no default parameter file
2021-01-19 10:34:00 +11:00
Peter Barker
8f9d3909f1
autotest: model_defaults_filepath always returns a list
2021-01-19 10:34:00 +11:00
André
30eed3103b
sim_vehicle fix
2021-01-19 06:30:12 +11:00
Peter Barker
210b0e7c5f
autotest: stop emitting port 14550 all the time
...
this can confuse other things going on on the same machine. It is still
available by specifying --viewerip if desired
2021-01-18 21:46:43 +11:00
Peter Barker
30929e7f1a
autotest: add verbose option to assert_sensor_state
2021-01-18 21:25:58 +11:00
Peter Barker
2c0e3751a9
autotest: reboot after moving from EKF type 10 to EKF type 2
...
Bad things happen with home set but origin not
2021-01-18 20:48:11 +11:00
Peter Barker
662e86780b
autotest: reduce motor vibration for landing
2021-01-18 20:14:08 +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
e9c6c08a97
autotest: remove 'make' compatability from sim_vehicle
2021-01-18 16:24:09 +11:00
Peter Barker
6865649b9b
autotest: tidy and correct ekf lane switching test
2021-01-18 15:19:39 +11:00
Peter Barker
ba1973d343
autotest: parse messages when setting parameters
...
This breaks some tests which are waiting on statustexts while setting
parameters
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
2d62fb99b1
autotest: force-disarm copter before reboot in GCS failsafe tests
2021-01-18 14:17:32 +11:00
Andrew Tridgell
d9de0ef649
autotest: added copter-bfx params
2021-01-17 12:25:47 +11:00
Randy Mackay
b18e5966f7
Tools: fixes from peer review as AHRS default changed to EKF3
2021-01-16 08:24:23 +09:00
Randy Mackay
2f51b59de4
Tools: copter test parameter validation waits 10sec before starting
...
This allows the GPS driver to initialise which avoids an EKF3 source requires GPS failure
2021-01-16 08:24:23 +09:00
Randy Mackay
bb926a2976
Tools: autotest fly_gyro_fft disables EKF2 and EKF3
...
fly_gyro_fft_harmonic also disables EKF2 and EKF3
2021-01-16 08:24:23 +09:00
Randy Mackay
f9e7d59756
Tools: Copter.ArmFeatures fixups for EKF3
...
changed to disable the simulated GPS instead of disabling the driver
expected EKF flags are slightly different
2021-01-16 08:24:23 +09:00
Randy Mackay
9c56b406be
Tools: Copter.AltEstimation fixes
...
disable baro so EKF has no altitude estimate
add check that mode change to ALT_HOLD failed
2021-01-16 08:24:23 +09:00
Randy Mackay
1f8b48e8f7
Tools: common autotest spelling fix
...
reach should be reached
2021-01-16 08:24:23 +09:00
Randy Mackay
f68f26e75d
Tools: Copter.VisionPosition config for EKF3
2021-01-16 08:24:23 +09:00
Randy Mackay
d2bdc949b2
Tools: Copter.OpticalFlowLimits checks altitude
2021-01-16 08:24:23 +09:00
Randy Mackay
0ba696f761
Tools: Copter.OpticalFlowLimits config for EKF2/3
2021-01-16 08:24:23 +09:00
Randy Mackay
d00194c60a
Tools: copter test_rangefinder_switchover config for EKF2/3
2021-01-16 08:24:23 +09:00
Randy Mackay
bd8b85d1e5
Tools: remove ekf2 enable from copter defaults
2021-01-16 08:24:23 +09: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
1dad0ecb46
autotest: disarm vehicle in case vibration test excepts
2021-01-13 19:46:13 +11:00
Peter Barker
47aea5f44c
autotest: print stack traces for caught exceptions
2021-01-13 19:46:13 +11:00
Peter Barker
e85e6d3375
autotest: use new set_parameters in place of many set_parameter calls
...
autotest: use set_parameters for applying from parameter file
autotest: use set_parameters in place of many set_parameter calls
2021-01-13 15:09:29 +11:00
Peter Barker
2917c75f35
autotest: add option to timeout parameter fetching in system time
2021-01-13 15:09:29 +11:00
Peter Barker
83f2f365c0
autotest: implement a more efficient set_parameters, implement set_parameter in terms of it
2021-01-13 15:09:29 +11:00
Peter Barker
f478666700
autotest: correct scripting test for missing message
...
The message could pass us by
2021-01-13 12:24:17 +11:00
Peter Barker
8497f8fc73
autotest: correct some timeout issues around Copter takeoff
2021-01-13 12:24:17 +11:00
Peter Barker
0a39c49711
autotest: gpstovicon: reboot after setting new EKF type rather than before
2021-01-13 12:24:17 +11:00
Peter Barker
252b166099
autotest: reboot after Copter gyrofft test
...
Really weird things happen if you switch from EKF2 to EKF10 - like your
home position being set but your origin not!
2021-01-13 12:24:17 +11:00
Peter Barker
e7aefc7fe4
autotest: make polling home position quiet by default
2021-01-13 12:24:17 +11:00
Peter Barker
5318538182
autotest: reboot SITL when moving from EKF10 to EKF2 in mag test
...
Bad things happen when moving from one to the other...
2021-01-13 12:24:17 +11:00
Peter Barker
987466bc3d
autotest: increase timeout on avoidance-corners test
...
Race conditions can mean angles are less than expected
2021-01-13 12:24:17 +11:00
Peter Barker
fdb5b5e6d6
autotest: correct dataflash transfer test for long periods
...
This came in with a 35 second delay, which is rather spectacular given
the 5 second loop it is in.
2021-01-11T11:54:30.3046835Z dataflash_logger status
2021-01-11T11:54:30.3047406Z MANUAL> DFLogger: Active Rate(35s):408.788kB/s Block:65034 Missing:0 Fixed:0 Abandoned:0
2021-01-11T11:54:30.3048195Z Timed out looking for Active Rate\([0-9]s\):([0-9]+[.][0-9]+)
2021-01-11T11:54:30.3048801Z AT-0472.3: Exception caught: 60
2021-01-13 12:24:17 +11:00
Peter Barker
3a264e0a76
autotest: use LOG_STRUCTURE_FROM as key string (don't need library name)
2021-01-12 17:44:24 +11:00
Pierre Kancir
409177d22a
Tools: remove duplicate kg/m.m
2021-01-12 10:21:55 +11:00
Josh Henderson
0052e4d528
Tools: auotest add LOG_STRUCTURE_FROM_AHRS
2021-01-12 10:13:22 +11:00
Peter Barker
4d19ff6b26
autotest: prompt ArduPilot for SYSTEM_TIME message during reboot
...
This helps us actually execute the timeouts appropriately and thus
re-fetch the STAT_BOOTCNT parameter we use for detecting the reboot
Eliminates annoying pauses during testing.
2021-01-09 16:20:12 +11:00
Peter Barker
8e6d144d72
autotest: re-raise KeyboardInterrupt after closing pexpects
...
this gives a stack trace, which is handy if the tests get caught
indefinitely somewhere
2021-01-09 15:16:50 +11:00
Peter Barker
5120ebf2f6
autotest: add a set_parameters method
2021-01-08 23:51:33 +11:00
Andrew Tridgell
ad29be14c6
autotest: added ARACE_hand location
2021-01-07 18:42:33 +11:00
Peter Barker
7474948971
autotest: add test for mavlink rangefinder out-of-range-low
2021-01-06 15:33:41 +11:00
Peter Barker
fdd0297f12
autotest: add more tests for MAVLink rangefinder
...
Allows for finer-grain control over what messages we're sending.
2021-01-06 15:33:41 +11:00
Andrew Tridgell
7672f0a2ce
autotest: added NDRCC field
2021-01-05 21:13:12 +11:00
Andrew Tridgell
b5476c6e5c
autotest: added ExternalAHRS test
2021-01-05 21:13:12 +11:00
Peter Barker
487f36146d
Tools: add support for simulated TSYS01 temperature sensor
2021-01-05 12:01:51 +11:00
Peter Barker
6433647d9e
autotest: add trivial autotest for TSYS01 temperature
2021-01-05 12:01:51 +11:00
Randy Mackay
66b2b988c4
Tools: update gps-vicon switching test params
2021-01-05 10:58:06 +11:00
Peter Barker
2240a60e20
autotest: add trivial test for set-position-target-local-ned
2021-01-05 08:13:02 +09:00
Peter Barker
53336595e1
autotest: add simple test for Rover set_attitude_target handling
2021-01-05 08:13:02 +09:00
hendjosh
7f999ef64a
Tools: Change Cygwin default install location to Cygwin64
2021-01-03 09:49:05 +11:00
Andy Piper
f702288ad2
autotest: correct number of logs
2021-01-02 22:30:08 +11:00
Andrew Tridgell
529bc6b77c
autotest: fixed compatibility with python on wiki server
2021-01-02 16:34:29 +11:00
Peter Barker
65cffdad5a
autotest: print stack traces when exceptions caught
2020-12-31 17:43:23 +11:00
Peter Barker
38ea62c5d7
autotest: send mode change messages directly rather than via MAVProxy
2020-12-31 17:43:06 +11:00
Peter Barker
d31f676c33
autotest: don't use MAVProxy for uploading using fencepoint protocol
2020-12-31 17:42:50 +11:00
Peter Barker
2b06ae9aa0
autotest: create and use a wait_sensor_state method
2020-12-31 17:42:33 +11:00
Peter Barker
7c7fb67829
autotest: fixes for AFS test
2020-12-31 17:42:20 +11:00
Peter Barker
7f79ddf3ff
autotest: CRSF: remove pointless wait-ready-to-arm
2020-12-31 17:42:06 +11:00
Peter Barker
6c48a38497
autotest: avoid zero-byte-read on log download
2020-12-31 17:39:53 +11:00
Peter Barker
6908a776fa
autotest.py: timeout after 5400 seconds
2020-12-31 14:55:32 +11:00
Peter Barker
8abf9a82f3
autotest: reliability improvements for EKF failover tests
2020-12-31 14:49:25 +11:00
Andrew Tridgell
939d8509b2
autotest: added ARACE flight locations
2020-12-30 12:33:58 -08:00
Pierre Kancir
69fab70582
Tools: use lxml for xml generation
...
fix caracters
fix indentation
validate xml
2020-12-30 18:19:43 +11:00
Peter Barker
12505c4c28
autotest: add tests for new higher-channel override semantics
2020-12-29 15:03:34 +11:00
Peter Barker
b53b30ea51
autotest: split out a get_rc_channel_value()
2020-12-29 15:03:34 +11:00
Peter Barker
b02f0ee51f
autotest: make Sub's setting of FS_GCS_ENABLE persist across wipes
2020-12-25 12:18:01 +11:00
Peter Barker
26bbedd777
autotest: remove un-needed parameter wipe after soaring test
2020-12-25 12:18:01 +11:00
Peter Barker
0a5eedb05a
autotest: wipe and reinitialise parameters when resetting SITL commandline
...
Should fix this scenario:
- Plane soaring test uses different defaults file
- soaring test sets a parameter away from default value
- context pop sets it back to the value in the defaults file
- it is now in permanent storage with the default found in the
different defaults file used by the soaring test
- we finish running the soaring test an reset the SITL command line
back to default, with the old defaults file
- we go on to running the next test. At this point the value for that
parameter is the default in the defaults file used by the soaring test.
Something similar applies in the Callisto test.
2020-12-25 12:18:01 +11:00
Peter Barker
0788b46374
autotest: add trivial test for Callisto
2020-12-25 12:18:01 +11:00
Peter Barker
5d23dc2314
autotest: avoid replicating enumeration value names from pymavlink
2020-12-24 00:22:52 +11:00
Pierre Kancir
06d6526ba6
Autotest: correct wait_distance_to_home comment
2020-12-24 00:22:52 +11:00
Pierre Kancir
824b9c1dc9
Autotest: add setpoint_target test for copter
2020-12-24 00:22:52 +11:00
Pierre Kancir
67533c3284
Autotest: add setpoint_target tests on rover
2020-12-24 00:22:52 +11:00
Pierre Kancir
6565309325
Autotest: add test_set_velocity_global_int tests
2020-12-24 00:22:52 +11:00
Pierre Kancir
10673122c0
Autotest: add test_set_position_global_int tests
2020-12-24 00:22:52 +11:00
Pierre Kancir
62a1fa1052
Autotest: add wait_speed_vector and wait yaw_speed functions
2020-12-24 00:22:52 +11:00
Pierre Kancir
0ca8e817d5
Autotest: wait_and_maintain add support of Vector3
2020-12-24 00:22:52 +11:00
Pierre Kancir
dbaeb668f1
Autotest: add MAV_FRAME dictionary
2020-12-24 00:22:52 +11:00
Pierre Kancir
0bf7bd7f68
Autotest: add set_position mask to common.py
2020-12-24 00:22:52 +11:00
Peter Barker
662814d6bd
autotest: reboot after running Copter vibe tests
...
The EKF type (at the very least) requires a reboot to revert to its
original value.
2020-12-22 23:51:54 +11:00
Peter Barker
69ef0937f4
autotest: add trivial test just to cover the Airspeed_DLVR code
2020-12-22 23:07:24 +11:00
Iampete1
6f92e6298a
Tools: add Kg/m.m to param units
2020-12-22 11:00:59 +11:00
Randy Mackay
d964fa2307
Tools: fixup EKF source pre-arm test
...
although setting COMPASS_USE/2/3 to zero disables the pre-arm for EK3_SRCx_YAW = 1 (Compass) the pre-arm still triggers if EK3_SRCx_YAW = 3 (External Compass Fallback)
2020-12-21 16:56:38 +09:00
Andrew Tridgell
ba78fecaaa
autotest: added Kris location
...
helps with testing missions from Kris in China
2020-12-21 12:05:50 +11:00
Peter Barker
4efcf16005
autotest: correct number of bytes we expect to download
...
We request a fixed number of bytes, which could be more or less than the
log file size.
2020-12-18 13:35:15 +11:00
Peter Barker
8e71e2505a
autotest: correct lookup for most recent log file
2020-12-18 13:35:15 +11:00
Randy Mackay
50f9eee54c
Tools: relax fly_guided_stop climb rate tolerance to 1cm/s
2020-12-18 08:32:21 +09:00
Mike R
81745b0e64
Tools: Add Goretovka (RF, Moscow region) location
2020-12-18 08:04:41 +11:00
Peter Barker
76b0b0429f
autotest: add another example on bisect helper
2020-12-18 07:48:34 +11:00
Pierre Kancir
7a2a60e65c
Tools: rover: correct test_setting_modes_via_mavproxy_switch for RTL and AUTO
2020-12-16 17:27:07 +09:00
Pierre Kancir
871b9fc12d
Tools: plane : initial_mode_switch_mode
2020-12-16 17:27:07 +09:00
Pierre Kancir
e4707c20ea
Tools: rover: add initial_mode_switch_mode
2020-12-16 17:27:07 +09:00
Pierre Kancir
9550721ae4
Tools: add initial_mode testing
2020-12-16 17:27:07 +09:00
Andrew Tridgell
f10f7d971d
Tools: added --vehicle-binary to sim_vehicle.py
...
this is useful for using a pre-built binary
2020-12-16 08:45:11 +11:00
Pierre Kancir
7d88d104b8
Tools: put Rover SlewRate test on disable list for now
2020-12-16 08:25:52 +11:00
Dr.-Ing. Amilcar do Carmo Lucas
fb8e1f4b9d
Tools: Added support for 1/s and kg/m/m parameter units
2020-12-15 18:22:36 +11:00
Paul Riseborough
4cf78c34e7
Tools: Add autotest for copter wind estimation and baro correction
2020-12-11 15:21:41 +11:00
Paul Riseborough
a3b5901218
autotest: Fix failing copter fly_square test
...
This test should be flown in ALT_HOLD, not STABILIZE as that is better mode to test the record waypoint function becasue it removes the need to fine tune the RC3 value to match thrust/weight variation as the hover thrust is not learned fast enough at the start of the test.
2020-12-11 15:21:41 +11:00
Paul Riseborough
e835da41fa
Tools: Define momentum drag
2020-12-11 15:21:41 +11: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
Peter Barker
9ad2961664
autotest: allow regex for matching wait_statustext
2020-12-11 07:35:02 +11:00
Peter Barker
50957fff89
Tools: autotest: bisect-helper.py can run autotest by name
2020-12-11 07:35:02 +11:00
Randy Mackay
9803a70d3f
Tools: copter autotest spelling and format fixes
2020-12-09 19:30:48 +09:00
Randy Mackay
665e6ccdcb
Tools: copter GCS fs tests explicitly set FS_GCS_ENABLE and FS_OPTIONS
2020-12-09 19:30:48 +09:00
Peter Barker
0406b28abd
autotest: print exception if caught in test_alt_estimate_prearm
2020-12-09 18:06:18 +11:00
Peter Barker
cecdc798ca
autotest: present strings for unexpected results in run_cmd_get_ack
2020-12-09 14:09:44 +11:00
Andrew Tridgell
c6548cc1b9
autotest: fixed use of GND prefix
2020-12-08 13:22:17 +11:00
murata
2d55c2c42f
pysim: Support for decacopters
2020-12-08 11:59:10 +11:00
murata
a46333eff5
Tools: Support for decacopters
2020-12-08 11:59:10 +11:00
Peter Barker
768e3e7931
autotest: adjust Vicon test for new PREARM-checking code
...
The new check that the prearms-passing bit from the autopilot
indicated prearms have passed was failing here because the yaw isn't
alighed until we frob channel 7.
The intent of the prearm seems ot have been to ensure we can get a
global position - that can be accomplished by polling the home position.
2020-12-07 11:21:30 +11:00
Peter Barker
9207bd8a8a
autotest: remove armability check from compass calibration test
...
The new prearm-checking code has shown that we're not actually armable
after all!
Even the new prearm bit won't tell you if you can arm - you have to arm
to test that!
2020-12-07 11:21:30 +11:00
Peter Barker
087300749c
autotest: ensure we have position without being armable for compass cal check
2020-12-07 11:21:30 +11:00
Peter Barker
38e324f141
autotest: do not check prearm bit in dataflash-over-mavlink
...
We won't be armable - but the other checks we make will ensure we get
the error we are looking for
Also use a more reliable way of draining the data from the autopilot
2020-12-07 11:21:30 +11:00
Peter Barker
5707d8ecc0
autotest: check new MAV_SYS_STATUS_PREARM_CHECK in wait_ready_to_arm
2020-12-07 11:21:30 +11:00
Peter Barker
be52e642f7
autotest: adjust Replay gps bit to make final logfile replayable
2020-12-03 17:28:26 +11:00
Peter Barker
17f806cdb9
autotest: add test for execution of button-bound functions
2020-12-01 10:06:57 +11:00
Peter Barker
12f001066b
autotest: split out a wait_armed function
2020-12-01 10:06:57 +11:00
Peter Barker
211cd5255d
autotest: tweak beacon test to be replay-friendly
2020-11-30 18:50:24 +11:00
Peter Barker
498b0b79a3
autotest: Replay tests OpticalFlow and Beacons
...
autotest: run Replay on log generated by test.Copter.BeaconPosition
autotest: test OpticalFlow in replay tests
2020-11-30 18:50:24 +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
Tom Pittenger
2218f8292a
Tools: remove ADSB param that is already default
2020-11-30 16:05:17 +11:00
Pierre Kancir
cd98129022
Autotest: fix css loading for autotest.ardupilot.org
2020-11-28 19:14:16 +11:00
Randy Mackay
bce3c551e7
Tools: sub set-position-target-global-int sends target once
2020-11-27 10:52:17 +09:00
Randy Mackay
d63fe1eb6c
Tools: sub set-position-target uses negative altitude
2020-11-27 10:52:17 +09:00
Pierre Kancir
07ffac429b
Tools: rover: add test for slew rate
2020-11-25 17:49:20 +09:00
Peter Barker
9e20f4a68d
autotest: add a test for compass yaw sources
2020-11-25 15:19:00 +11:00
Peter Barker
3f6b398a01
autotest: include EK2,EK3 and DAL LogStructures in code-defined messages
2020-11-24 15:33:37 +11:00
Peter Barker
b788a172c8
autotest: add simple test for IE24 generator
...
Tools: Modified richenpower autotest setup
autotest: IE24: Add error code failsafe test
2020-11-24 12:54:52 +11:00
Peter Barker
935d39322c
autotest: correct test for mode-change-reason change
2020-11-24 10:09:37 +11:00
Randy Mackay
f257dc20d0
Tools: add test.Copter.GPSViconSwitching to CopterTests1d
2020-11-20 16:43:44 +09:00
Randy Mackay
b6fe039a9f
Tools: autotest for beacon sets EK3_SRC params
2020-11-20 16:43:44 +09:00
Peter Barker
29b913cd41
autotest: avoid using undefined fmt variable
2020-11-12 21:00:04 +11:00
Peter Barker
58bdae1b52
autotest: get Valgrind closer-to-working
...
This gets us past the reboot problem for the most part, where Valgrind doesn't like you exec'ing
2020-11-11 18:22:58 +11:00
Andrew Tridgell
00cfc1932f
autotest: fixed arm delay in replay test
...
thanks to Peter
2020-11-10 16:15:45 +11:00
Andrew Tridgell
5f669e22ff
autotest: adjust optical flow speed test
2020-11-10 16:15:45 +11:00
Andrew Tridgell
1a1ca7cca7
autotest: fly a bit higher in optical flow test
...
test was occasionally hitting the ground
2020-11-10 16:15:45 +11:00
Andrew Tridgell
025cf8f72b
autotest: cleanup load_local_module
2020-11-10 16:15:45 +11:00
Andrew Tridgell
690af580c9
autotest: abstract out load_local_module()
...
this will be useful for other tests
2020-11-10 16:15:45 +11:00
Andrew Tridgell
f674d124d6
autotest: use SITL replay
2020-11-10 16:15:45 +11:00
Andrew Tridgell
7b50780c5e
autotest: fixed rmtree error in autotest
2020-11-10 16:15:45 +11:00
Andrew Tridgell
a37cae5dae
autotest: added test.Copter.Replay test
2020-11-10 16:15:45 +11:00
Andrew Tridgell
3dff0b3d58
autotest: removed dcm yaw test
...
this should not be part of replay PR
2020-11-10 16:15:45 +11:00
Andrew Tridgell
403275beea
autotest: added RBOH message
2020-11-10 16:15:45 +11:00
Andrew Tridgell
4a06641048
autotest: added RWOH message
2020-11-10 16:15:45 +11:00
Andrew Tridgell
7f0113b82d
autotest: added REPH and REVH
2020-11-10 16:15:45 +11:00
Andrew Tridgell
ef5baaf482
autotest: added ROFH msg
2020-11-10 16:15:45 +11:00
Andrew Tridgell
8ba067608b
autotest: cope with LogStructure.h in multiple places
...
and allow for no docs in replay msgs
2020-11-10 16:15:45 +11:00
Andrew Tridgell
3ae237b652
autotest: started work on replay testing
2020-11-10 16:15:45 +11:00
Andrew Tridgell
161f2a8d2f
autotest: improved error msg for missing doc fields
...
Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
2020-11-10 16:15:45 +11:00
bugobliterator
c1dc6465cf
Tools: add CANGPSCopterMission mission file
2020-11-04 19:59:40 +11:00
bugobliterator
c72c96fa9c
Tools: setup CI test for CANBus
2020-11-04 19:59:40 +11:00
Andrew Tridgell
3e3da61396
Tools: fixes from review feedback
2020-10-28 14:20:44 +11:00
Andrew Tridgell
16bede2d74
Tools: allow for -f Callisto as frame type
...
loads json and params
2020-10-28 14:20:44 +11:00
Andrew Tridgell
31e3fd0771
Tools: added battery capacity to Callisto model
2020-10-28 14:20:44 +11:00
Andrew Tridgell
1286c5f64e
Tools: adjust quadplane tuning and QAssist test
...
fixed roll RTL and land in QAssist test
2020-10-28 14:20:44 +11:00
Andrew Tridgell
47bf3e2249
Tools: use max_err for alt wait in flip test
2020-10-28 14:20:44 +11:00
Andrew Tridgell
7820b402d6
Tools: tweak Qassist test to be more reliable
...
disabling stall prevention should help with travis
2020-10-28 14:20:44 +11:00
Andrew Tridgell
72d0730194
Tools: fixed flow speed test to be much more robust
...
takeoff in ALT_HOLD so we don't overshoot as much, and calculate speed
limit based on actual alt
2020-10-28 14:20:44 +11:00
Andrew Tridgell
eacebb619a
Tools: lower ALT_HOLD_RTL for quadplanes
...
this speeds up a number of tests that end with an RTL
2020-10-28 14:20:44 +11:00
Andrew Tridgell
1ea0daa95f
Tools: adjust quadplane tuning
...
prevent oscillation
2020-10-28 14:20:44 +11:00
Andrew Tridgell
da86dc8814
Tools: fixed FFT test thresholds for new tune
2020-10-28 14:20:44 +11:00
Andrew Tridgell
d221756e2d
Tools: fixed copter MOT params
2020-10-28 14:20:44 +11:00
Andrew Tridgell
c7a60f57ad
Tools: improved quadplane tuning
...
and shorten GyroFFT log msgs so values can be seen in log
2020-10-28 14:20:44 +11:00
Andrew Tridgell
a95c2e9db3
Tools: fixed optical flow speed limit
...
should be 10m/s, as per comment
2020-10-28 14:20:44 +11:00
Andrew Tridgell
86c558e735
Tools: fixed fast climb in SuperSimpleCircle test
...
1700 makes us climb much too far
2020-10-28 14:20:44 +11:00
Andrew Tridgell
ca6da722a9
Tools: adjust StabilityPatch test
...
fixed to account for use of propeller expo in model
2020-10-28 14:20:44 +11:00
Andrew Tridgell
4e553bcbde
Tools: fixed Qassist test
...
it was using the wrong roll angle for recovery, and relied on poor
tuning of old model to overshoot by 20 degrees
2020-10-28 14:20:44 +11:00
Andrew Tridgell
98dacd5ee4
Tools: fixed wait_for_alt
...
should be a min alt. This is needed for Flip test to pass with new
model, as it doesn't lose as much height as the old model. So it
starts above the min alt
2020-10-28 14:20:44 +11:00
Andrew Tridgell
10a07bf4f9
Tools: added Callisto model from Leonard
2020-10-28 14:20:44 +11:00
Peter Barker
18330d16de
autotest: add test for MAVlite
2020-10-27 10:17:53 +11:00
Pierre Kancir
87d9beab4f
Autotest: firmware page: fix html
2020-10-24 10:30:09 +11:00
Pierre Kancir
45a35f9470
Autotest: fix html and use class on CSS
2020-10-24 10:30:09 +11:00
Pierre Kancir
60805fdfa3
Autotest: anonimize IP on ga on autotest page
2020-10-24 10:30:09 +11:00
Pierre Kancir
05d365f1a6
Autotest: remove jdrone logo from firmware server
2020-10-24 10:30:09 +11:00
Pierre Kancir
4ca8f6bf1e
Autotest: fix githash on python 3 for firmware html page
2020-10-24 10:30:09 +11:00
Pierre Kancir
de927691f2
Tools: remove empty fields in autotest.ardupilot.org
2020-10-24 10:30:09 +11:00
Buzz
586e9f80d5
AutoTest: break copter autotests into smaller "under 10 minute" chunks to speedup github actions CI
2020-10-21 18:01:47 +11:00
Patrick José Pereira
cbc3384187
default_params: Sub: Add camera mount parameters
...
Allow the usage of MOUNT_CONTROL in SITL
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-10-19 16:25:38 -04:00
Peter Barker
937d7bf335
autotest: add quiet option to drain_mav
2020-10-15 16:31:41 +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
Peter Barker
d865c8553c
autotest: loosen takeoff check in heli takeoff to 1m
...
On the basis that random noise can make it drift 10cm
2020-10-14 12:49:23 +11:00
Pierre Kancir
dc8d42b12d
Tools: expose option --sysid into sim_vehicle.py
2020-10-13 10:31:21 +11:00
Peter Barker
8f1e9ebc7f
autotest: reset camera feedback rate if exception is raised
2020-10-12 13:48:15 +11:00
Peter Barker
f9324d38c9
autotest: loosen groundspeed tolerance in guided-stop function
...
Fixes current "Vehicle did not stop" problem
2020-10-09 12:05:23 +11:00
Peter Barker
b630aeeddf
autotest: comment suspicious-looking latitude/longitude parameters
2020-10-08 17:23:09 +09:00
Peter Barker
750f1d4032
autotest: send position targets once
2020-10-08 17:22:29 +09:00
Peter Barker
d13f6acc66
autotest: quieten mav draining
2020-10-08 17:21:35 +09:00
Pierre Kancir
774c8583b1
Tools: make apm.pdef.xml more readable.
2020-10-07 19:38:14 +11:00
Peter Barker
1d0735f206
autotest: add a poll_message method
2020-10-07 11:54:02 +11:00
Peter Barker
04633d7e1c
autotest: if MODE_AUTO is disabled then we also need to disabled AFS
2020-10-06 11:25:09 +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
Peter Barker
536e2db947
Tools: sim_vehicle.py: add --disable-breakpoints commandline option
2020-09-23 20:28:08 +10:00
Peter Barker
64461dba5e
autotest: fix Copter motortest test
...
We were swallowing all of the rc output containing the values we were
looking for.
Rearrange so we don't swallow where we were, and increase timeout on the
basis that there's still a narrow race.
2020-09-23 09:49:54 +10:00
Peter Barker
669622c614
autotest: improve use of SITL-is-running
...
ATM if the SITL binary dies we don't catch it anywhere. This might
become part of the solution for that, as well as some changes on
run_one_test.
2020-09-22 21:11:57 +10:00
Peter Barker
fdb31a6419
autotest: param_parse.py: validate @User field to be Standard or Avanced
2020-09-22 14:56:04 +10:00
Peter Barker
1075e13352
autotest: stop set_parameter from using get_parameter
...
Setting a parameter on ArduPilot causes the autopilot to emit the new
value in a PARAM_VALUE message, so we do not need to fetch it ourselves.
Fetching it ourselves causes subtle problems for the autotest suite
where a PARAM_VALUE is currently in the uart buffer - so the autotest
set_parameter has consumed one PARAM_VALUE message (the auto-emitted
one). If it immediately does a set_parameter then the next
PARAM_VALUE it sees will be the OLD value as the value comes out of the
uart.
2020-09-15 19:27:36 +10:00
Peter Barker
9e148f245b
autotest: param_parse.py: correct parsing of Values fields
...
the regex used to parse the values field later is rather strict - no
spaces allowed around the : for example.
Canonicalise the string before trying to do anything more with it
(including validation)
2020-09-15 11:09:52 +10:00
Andrew Tridgell
8b95fac214
Tools: added --Werror option to autotest.py
2020-09-15 09:40:03 +10:00
Peter Barker
3e882fcad8
autotest: loosen mag-percent-complete threshold to 95%
...
So 98% wasn't loose enough...
2020-09-11 15:31:45 +10:00
Harshit Kumar Sankhla
f0c237d88e
autotest: bug fixes for ekf lane switch test
2020-09-11 10:16:20 +10:00
Peter Barker
796cc72344
autotest: remove parameters with default values from copter.parm
...
Setting these just takes time we don't need to spend
2020-09-11 08:02:38 +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
995cda6363
autotest: stop taking off when we're already in the air
...
Depending on timing we can miss the fact we're already at altitude as we
take off in stabilize and manipulate the throttle before checking
altitude
2020-09-10 10:39:30 +10:00
Peter Barker
0f5f040380
autotest: send all progress messages to autopilot
...
These will be logged into dataflash and into the telemetry log
2020-09-09 23:47:28 +10:00
bugobliterator
d997ca8779
autotest: pass calibration test even if 98% complete before success
2020-09-09 23:46:23 +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
Andrew Tridgell
7c5a0a6a43
Tools: disable LOG_REPLAY by default in autotest
...
LOG_REPLAY prevents us logging when we have sensor failures, which
makes many tests hard to debug
2020-09-08 11:01:14 +10:00
Andrew Tridgell
80ef6fa7f2
Tools: added a MagFail test
...
ensures that both EK2 and EK3 will failover to a new compass on
compass failure
2020-09-08 11:01:14 +10:00
Peter Barker
d508ba97c5
autotest: add test for SmartRTL getting another GCS failsafe
...
Test for specific bug where we would land instead of continue in
SmartRTL
2020-09-08 09:05:03 +09:00
Samuel Tabor
3c0d4b6d5a
autotest: Add start time argument and parsing.
2020-09-07 21:20:25 +10:00
Andrew Tridgell
a9ecac4fff
Tools: added --osdmsp option to sim_vehicle.py
2020-09-07 11:59:20 +10:00
Peter Barker
65268ee3d4
autotest: more button-test fixes
2020-09-06 16:49:16 +10:00
bugobliterator
6203e0685e
autotest: disable MAG orientation test
2020-09-06 11:21:28 +10:00
Andy Piper
0b9d9fc284
autotest: use StringIO correctly
2020-09-06 09:12:59 +10:00
Andy Piper
6ebc7622fe
autotest: comprehensive dataflash test
2020-09-05 10:20:39 +10:00
Peter Barker
2ea41b7997
autotest: spit out actual simulated mag orientations as part of debug
2020-09-03 13:08:07 +10:00
Peter Barker
5a8b1639d0
autotest: fix nmea output test
2020-09-02 10:05:26 +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
Peter Barker
23ba2002e8
autotest: dump final mag cal report verbosely
2020-09-01 14:11:57 +10:00
Peter Barker
74c47827d9
autotest: drain stdout of SITL binary
...
The new rate messages were filling up the stdout buffer, causing the
process to block....
2020-08-30 08:38:35 +10:00
Peter Barker
e8fa4e1351
autotest: disable autotest for altitude prearm check
2020-08-30 08:38:35 +10:00
Peter Barker
397e134106
autotest: quieten RTL
2020-08-30 08:38:35 +10:00
Peter Barker
065d03dd30
autotest: add a timeout in the button test
2020-08-30 08:38:35 +10:00
Peter Barker
c01b26ca62
autotest: fix race condition in EKF type 10
...
EKF type 10 is always able to give you a position - but the arming
checks require you to have a good GPS position, and that's something
else again.
2020-08-30 08:38:35 +10:00
Peter Barker
cafc5b01f4
autotest: fix race condition in Rover RTL test
2020-08-30 08:38:35 +10:00
Peter Barker
43cdceba8f
autotest: tweak wait_ready_to_arm
2020-08-30 08:38:35 +10:00
Peter Barker
b7641345e1
autotest: set and get parameters directly using mavlink message
2020-08-30 08:38:35 +10:00
Peter Barker
ba91cbb270
autotest: correct sub parameter name PSC_VELZ_P, fix test to match
2020-08-30 08:38:35 +10:00
Pierre Kancir
084ec2bb5a
Autotest: copter: fix wait_for_alt for descending wait
2020-08-29 14:53:30 +10:00
Pierre Kancir
ebd13ac84e
Tools: copter: wait_landed_and_disarmed: use wait_for_alt
2020-08-29 14:53:30 +10:00
Pierre Kancir
7fbf11061f
Tools: copter: add wait_rtl_complete function
2020-08-29 14:53:30 +10:00
Pierre Kancir
3080899b43
Tools: copter: add wait land and disarm functions
2020-08-29 14:53:30 +10:00
Pierre Kancir
936511a720
Autotest: common: correct some text format
2020-08-29 10:44:19 +10:00
Pierre Kancir
5b72de25e0
Autotest: update wait_distance_to_home
...
Autotest: copter: allow to pass min_distance for RTL
Autotest: rover: allow to pass min distance for RTL
2020-08-29 10:44:19 +10:00
Harshit Kumar Sankhla
464c90a03c
Tools: add an EKF3 lane switching test to plane
2020-08-27 20:20:51 +10:00
Pierre Kancir
16b499d0f6
Autotest: allow to select which GPS flags we want to wait for
2020-08-27 09:11:13 +10:00
Peter Barker
80bee19bc9
autotest: correct race condition in button test
...
A BUTTON_CHANGE may have been emitted after we send the parameter but before it is processed by the autopilot
2020-08-26 13:22:14 +10:00
Peter Barker
3ae83d70b1
autotest: ensure df log is present for rangefinder tests
...
there may not be a current onboard log present if we've just rebooted
2020-08-26 11:59:11 +10:00
Pierre Kancir
420587fb68
Tools: logger_metadata fix relative dir search
2020-08-25 20:01:27 +10:00
Pierre Kancir
a181fcf8a2
Autotest: common: put generated parameter and LogMessage files into buildlogs directory
2020-08-25 20:01:27 +10:00
Peter Barker
a523868b33
autotest: fix Beacon test
2020-08-25 17:21:50 +10:00
Andrew Tridgell
155b39bab3
autotest: added loiter-to-alt test mission
2020-08-25 10:39:18 +10:00
Randy Mackay
660579f2f4
Tools: fix copter beacon test params
2020-08-25 09:38:10 +09:00
Peter Barker
69d246d63e
autotest: add test for priority-based compass reordering
2020-08-25 08:30:04 +10:00
Peter Barker
bb697dd4b9
autotest: avoid using mavproxy for testing message intervals
2020-08-24 19:33:37 +10:00
Peter Barker
a190490b64
autotest: do not rely on MAVProxy for sending banner request
2020-08-24 15:26:57 +10:00
Peter Barker
00bfe04539
autotest: remove duplicate recovery code from set-message-interval test
2020-08-24 14:00:38 +10:00
Peter Barker
03d0eda7f1
autotest: use a passthrough progress function for Telem objects
2020-08-24 13:24:41 +10:00
Peter Barker
67b71e2b94
autotest: add test for Plane dead-reckoning support
2020-08-21 18:16:40 +10:00