Peter Barker
1a46a27bb8
Tools: remove vestiges of travis autotest hooks
...
travis had a split into two tests, test1 and test2 - which we no longer need
2022-09-09 12:08:59 +10:00
Peter Barker
e9bffe2045
autotest: throw exception when GIMBAL_DEVICE_ATTITUDE_STATUS not received
2022-09-08 21:13:15 +10:00
Andy Piper
203f691df4
autotest: add takeoff check test
2022-09-07 17:03:03 +01:00
Randy Mackay
4108e4b77f
Tools: copter autotest integrates MNT param changes
2022-09-06 13:53:25 +09:00
Peter Barker
045115de05
autotest: explicltly close filehandle with streamrate contents
...
Test sporadically failing on autotest server.
2022-09-03 11:28:10 +10:00
esaldiran
9218cf18ce
autotest: add test for custom controller
2022-08-30 13:10:09 +10:00
Peter Barker
1f430daef6
autotest: correct system ID used when setting ROI_SYSID
2022-08-26 14:38:12 +10:00
Randy Mackay
c898261698
Tools: autotest uses PRX1 parameters
2022-08-24 18:26:27 +10:00
Peter Barker
217338955d
autotest: wait for logging to be good in replay GPS test
...
I think it's possible for the reboot to be coplete but the log not yet open as it's done in the update call
2022-08-24 13:11:46 +10:00
Peter Barker
668ec44968
autotest: let heading settle before testing WP_YAW_BEHAVIOR=0
...
2022-08-19T02:22:48.3161982Z AT-0229.9: Exception caught: Unexpected heading=94.000000 want=91.000000
2022-08-19T02:22:48.3162341Z Traceback (most recent call last):
2022-08-19T02:22:48.3162738Z File "/__w/ardupilot/ardupilot/Tools/autotest/common.py", line 7173, in run_one_test_attempt
2022-08-19T02:22:48.3163101Z test_function()
2022-08-19T02:22:48.3163507Z File "/__w/ardupilot/ardupilot/Tools/autotest/arducopter.py", line 4414, in GuidedSubModeChange
2022-08-19T02:22:48.3164012Z self.assert_heading(orig_heading)
2022-08-19T02:22:48.3164419Z File "/__w/ardupilot/ardupilot/Tools/autotest/common.py", line 5610, in assert_heading
2022-08-19T02:22:48.3164866Z raise NotAchievedException("Unexpected heading=%f want=%f" %
2022-08-19T02:22:48.3165290Z common.NotAchievedException: Unexpected heading=94.000000 want=91.000000
2022-08-19 17:06:45 +10:00
Peter Barker
00d3af6fc5
autotest: handle terrain requests internally to autotest
...
We will cache all required SRTM data within the autotest branch
2022-08-16 11:12:44 +10:00
Randy Mackay
9b357a5cd2
Tools: copter autotest uses gimbal-device-attitude-status
...
add set_mount_mode to reduce duplication
remove reliance on GIMBAL_REPORT
slightly loosen accuracy of mount pitch test
2022-08-15 20:29:25 -04:00
Randy Mackay
7d901491a3
Tools: remove link to resolved issue
2022-08-15 20:29:25 -04:00
Peter Barker
5eb2f6780e
autotest: tidy angle test
2022-08-12 19:55:32 +10: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
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
Henry Wurzburg
cea1e29f4e
Tools: add TeraRange Neo Rangefinder
2022-08-09 09:01:34 +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
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
f1c4797ef4
Tools: autotest: copter: rangefinder mavlink enable landing gear
2022-08-02 10:48:19 +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
Andy Piper
022ae00199
autotest: att attempts to DataFlashErase test
2022-07-28 08:55:01 +10:00
bugobliterator
2375564bb2
autotest: add test for CAN node health pre arm check
2022-07-27 18:18:03 +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
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
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
Leonard Hall
0405451463
SITL: Fix BaroWindCorrection Test
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
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
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
Randy Mackay
1a5216aaee
Tools: autotest for mount sets MNT_RC_RATE
2022-06-21 13:37:11 +09: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
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
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
4e2e4fa4d4
Tools: autotest: remove useless shebang
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
4240ad7ae9
autotest: update test for which entry is last in tasks table
2022-05-18 12:25:26 +09:00
Peter Barker
336079ddfa
autotest: add test for compass error state logging
2022-05-10 19:46:40 +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
Andy Piper
67aecea4c1
autotest: remove fast_loop tasks test
2022-05-03 08:20:13 +09: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
c33f6f3a8d
autotest: add tests to ensure we get BCN, RPM and PRX/PRXR log msgs
2022-04-13 16:22:19 +10:00
Peter Barker
2fb1bde457
autotest: add test for earth-frame-accel
2022-04-03 11:41:09 +10:00
Peter Barker
7a62b5429b
autotest: add test for landing speed
2022-03-23 21:07:05 +11:00
Andrew Tridgell
a98e913a2a
autotest: flake8 warning fixes
2022-03-09 17:13:45 +11:00
m
37abfb98dc
autotest: Copter Pause/Continue in AUTO and GUIDED modes with SCurves
2022-03-08 13:12:36 +09:00
Peter Barker
f199f8be10
autotest: add more parachute tests
2022-02-24 09:20:31 +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
dc312260de
autotest: add test for DO_CHANGE_SPEED
2022-02-14 14:07:47 +11: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
Tatsuya Yamaguchi
08438c30a6
Tools: autotest for takeoff altitude
2022-02-03 21:33:05 +11:00
Randy Mackay
d1bf4f1c1e
Tools: autotest for OpticalFlowCalibration
2022-01-29 08:26:12 +09:00
VMsunghwan
5d29d945e0
autotest : Update receive
...
recieve -> receive
2022-01-24 18:34:21 +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
Joshua Henderson
7cb88554da
Autotest: copter add test for mount_mode
2022-01-12 18:03:27 +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
Andy Piper
dbcc8215fa
autotest: setup FFT harmonics correctly for dynamic harmonics.
...
octacopter notches test
2021-12-22 18:13:38 +11:00
Peter Barker
474c42f9d3
autotest: move assert_prearm_failure up
2021-12-17 09:58:37 +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
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
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
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
9a47a85c0d
autotest: augment PerfInfo test
2021-11-17 19:00:04 +11:00
Peter Barker
75b9a3ff77
autotest: add test for PerfInfo tasks.txt info
2021-11-14 20:43:30 +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
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
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
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
5125874681
autotest: add some tests for running multiple GPSs
2021-10-13 18:02:16 +11:00
Iampete1
59b40a3845
Tools: autotest: copter: remove check for PWM min/max zero
2021-10-11 22:19:17 -04:00
Peter Barker
d7f037e548
autotest: add test for setting streamrates from files
2021-09-30 10:31:03 +10:00
Peter Barker
c372189a9d
autotest: add test for EKF losing then refinding a GPS
2021-09-29 15:51:50 +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
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
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