Commit Graph

3062 Commits

Author SHA1 Message Date
Peter Barker 8fd5df33d5 autotest: add test for stick-mixing in auto mode 2022-08-11 20:03:12 -04:00
Peter Barker ffc0d8b229 autotest: add test that we need RC input by default to arm for Copter 2022-08-11 20:01:45 -04:00
Peter Barker 46dacd3b61 autotest: add tests for disallowing flying mid-air 2022-08-12 09:44:08 +10:00
Peter Barker 445ee86734 autotest: tidy resetting of parameters after battery failsafe test 2022-08-11 13:32:24 +10:00
Peter Barker 5ee8f99e7b autotest: adjust for terrain arming requirements
Lots of tests really did need terrain stuff but weren't able to get it
2022-08-09 14:31:14 +10:00
Peter Barker fecf7c2e0c autotest: augment Plane TerrainMission to check we *do* follow the terrain 2022-08-09 14:31:14 +10:00
Iampete1 a209a391df Tools: FilterTool: allow query string param config and add get link 2022-08-09 09:48:52 +10:00
Iampete1 ea3f5877c9 Tools: FilterTool: remember scale 2022-08-09 09:48:52 +10:00
Henry Wurzburg cea1e29f4e Tools: add TeraRange Neo Rangefinder 2022-08-09 09:01:34 +10:00
Peter Barker d555c49230 autotest: allow a test to override speedup
This is a crutch for poorly-behaving tests.
2022-08-08 21:33:30 +10:00
Peter Barker e92d4c6fc5 autotest: add test for WP_YAW_BEHAVIOUR 0
With behaviour 0 anbd typemask specifying ignore yaw/yaw_cds the yaw should reamin fixed
2022-08-08 21:33:03 +10:00
Peter Barker d7d473d1f9 autotest: correct assert_prearm_failure to not try to arm vehicle 2022-08-05 17:25:14 +10:00
Joshua Henderson b39642c675 Tools: web-filter save use comma instead of = 2022-08-05 10:16:51 +10:00
Peter Barker 7284fbc978 autotest: allow more time for angle test to retrieve correct angle
Faster speedups mean we can simply not run this loop often enough to see the change
2022-08-04 16:49:28 +10:00
Iampete1 2879d1c087 Tools: FilterTool: move to least squares best fit method to caculate amplitude and phase, allow filters at two sample rates 2022-08-03 17:24:41 +10:00
Iampete1 e5de08b123 Tools: FilterTools: add niquist limit warning and constrain 2022-08-03 17:24:41 +10:00
Iampete1 987ffbb00f Tools: FilterTool: add support for log scale frequency and RPM scale 2022-08-03 17:24:41 +10:00
Iampete1 e49607db54 Tools: FilterTool: add support for PIDs
Tools: FilterTool: add support for PIDs
2022-08-03 17:24:41 +10:00
Iampete1 0c8d65b80d Tools FilterTool: limit fieldsets to same max width as plot 2022-08-03 17:24:41 +10:00
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