Commit Graph

695 Commits

Author SHA1 Message Date
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