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
Peter Barker
d1d03319ac
Tools: make heli-blade simulation work
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
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
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
Josh Henderson
695ad5b4f6
Autotest: BaroDrivers tighten leeway for pressure and temp deltas
2021-08-24 09:55:01 +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
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
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
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
909decc5be
autotest: move wait_attitude up to common.py
2021-07-28 17:20:28 +10:00
Paul Riseborough
7f3980c1f4
Tools: Rework Copter VibrationFailsafe test to use commanded land
2021-07-22 18:20:45 +10:00
Paul Riseborough
ff1c465a17
Tools: relax navigation test accuracy
2021-07-22 18:20:45 +10:00
Peter Barker
27de0a3d23
autotest: add new Copter yaw tests
2021-07-21 17:05:01 +10:00
Peter Barker
571ae46b0f
Tools: split yaw-vehicle-for-mount-roi test out
2021-07-19 18:16:13 +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
Pierre Kancir
8234fd4c39
Tools: autotest: add IRLock SITL test
2021-07-12 17:50:31 +10:00
Leonard Hall
33ec8b965b
Tools: Autotest update guided bitbask to include acceleration
2021-07-10 20:25:05 +09:00
Andrew Tridgell
5a5018cda2
autotest: adjust test_altitude_types for small change in longitude_scale
2021-07-10 07:20:41 +10:00
Peter Barker
aa27479e95
autotest: show output from Replay run
2021-07-08 16:20:12 +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
df02289493
autotest: add test for two consecutive drops with no reboot
2021-07-07 12:01:07 +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
Randy Mackay
f3c96b438b
Tools: autotest of vibration failsafe
2021-06-24 08:34:56 +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
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
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
e77512ba08
autotest: add method to create simple relative-to-home mission
2021-06-11 16:59:51 +10:00
Peter Barker
6944ef6af1
autotest: fly each working Helicopter frame
2021-06-09 12:15:42 +10:00
Andrew Tridgell
3be7f1ae23
autotest: removed tri from doesn't fly list
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
Peter Barker
2439587c5a
autotest: add tests for ground effect compensation active in EKF
2021-06-02 11:13:16 +09:00
Peter Barker
c1a20ceab4
autotest: add test to catch bug with opticalflow if no rangefinder
2021-06-01 11:31:42 +10:00
Leonard Hall
41c437b768
AutoTest: Copter: fly_poshold_takeoff increase acceptable range
2021-05-24 20:13:37 +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
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
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
b04dfda9fb
autotest: enable deca and dodeca frames in FlyEachFrame test
2021-05-06 16:26:28 +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
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
63ba484087
autotest: add test which flies each frame we can
2021-05-01 13:25:13 +10:00
Peter Barker
e4c405b77b
autotest: add a test for Spline missions showing terrain requirement
2021-04-28 18:40:26 +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
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
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
b2f47ba367
autotest: add test for auxilliary functions in missions
2021-03-31 11:36:09 +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
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
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
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
462ac255a3
autotest: start MAVProxy only as needed for testing
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
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
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
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
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
Randy Mackay
78ddd0512c
Tools: autotest for copter spelling fix
2021-03-09 11:49:42 +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
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
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
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
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
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
cc83562add
autotest: tidy fence handling
2021-03-02 16:54:06 +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
10007e2e42
autotest: load missions natively rather than using MAVProxy
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
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
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
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
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
dcc04ccd09
autotest: stop using MAVProxy to change modes
2021-02-18 17:38:52 +11:00
Peter Barker
b1ccf3b3f8
autotest: add test for rangefinder-based proximity avoidance enablement
2021-02-18 15:05:51 +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
dbdda65956
autotest: add basic test for GPS blending
2021-02-17 11:30:01 +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
ad2ab333f9
Tools: autotest: allow autotest to connect directly to SITL
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
281296832a
autotest: retry GyroFFTHarmonic test on failure
2021-01-21 16:45:34 +11:00
Andrew Tridgell
3e640eed80
autotest: changes for per-IMU biases and scaling
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
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
1cb86303b4
Tools: add test for maxbotixi2cxl
2021-01-19 11:20:47 +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
8f9d3909f1
autotest: model_defaults_filepath always returns a list
2021-01-19 10:34:00 +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
2d62fb99b1
autotest: force-disarm copter before reboot in GCS failsafe tests
2021-01-18 14:17:32 +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
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
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
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
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
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
Randy Mackay
66b2b988c4
Tools: update gps-vicon switching test params
2021-01-05 10:58:06 +11:00
Peter Barker
8abf9a82f3
autotest: reliability improvements for EKF failover tests
2020-12-31 14:49:25 +11:00
Peter Barker
0788b46374
autotest: add trivial test for Callisto
2020-12-25 12:18:01 +11:00
Pierre Kancir
824b9c1dc9
Autotest: add setpoint_target test for copter
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
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
Randy Mackay
50f9eee54c
Tools: relax fly_guided_stop climb rate tolerance to 1cm/s
2020-12-18 08:32:21 +09: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
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
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
be52e642f7
autotest: adjust Replay gps bit to make final logfile replayable
2020-12-03 17:28:26 +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
Peter Barker
9e20f4a68d
autotest: add a test for compass yaw sources
2020-11-25 15:19:00 +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
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