Commit Graph

5008 Commits

Author SHA1 Message Date
Peter Barker b298477266 Tools: uploader.py: correct silently dropped exception in failure case
uploader.INFO_BL_REV is string, not integer
2020-07-21 22:43:11 +10:00
Peter Barker babb3fef54 autotest: remove incorrect use of get_sim_time_cached
These could instantly time out
2020-07-21 14:10:16 +10:00
Peter Barker 3b0524a7e1 autotest: add diagnostics to frsky passthrough test 2020-07-21 11:26:52 +10:00
murata 2e69317c2c Tools: Change the unit of barometric pressure from mbar to hPa. 2020-07-21 09:56:21 +10:00
Samuel Tabor d57b7cad63 autotest: Update soaring test to use RCX_OPTION. 2020-07-21 09:38:04 +10:00
Andrew Tridgell 2a3238b7de Tools: added baro decode 2020-07-21 08:20:01 +09:00
Peter Barker 1c772b94cd Tools: build-binaries and generate-manifest py3 fixes 2020-07-20 16:44:33 +10:00
Peter Barker 4acb66cd13 autotest: correct check of frsky home-relative altitude
GLOBAL_POSITION_INT.relative_alt is in mm
2020-07-20 13:31:17 +10:00
Peter Barker ac827cf45b autotest: allow much more time for frsky test to finish
parameters don't seem to come down very fast at all
2020-07-20 13:31:17 +10:00
Peter Barker a49580e0af autotest: improve debug on frsky tests 2020-07-20 13:31:17 +10:00
Peter Barker d9aa334489 autotest: ensure cached sim time moves forward in frsky test 2020-07-20 13:31:17 +10:00
Andy Piper a00b5cb770 autotest: db's are negative so check dynamic notches the right way 2020-07-18 19:09:33 +10:00
Peter Barker 2eeac9e6fd Tools: LogAnalyzer: Python3 fixes 2020-07-17 11:16:06 +10:00
Andy Piper 229036b4ae autotest: run dynamic notch twice to avoid statistical anomolies
relax notch tests attenuation levels
2020-07-16 13:18:32 +10:00
Andrew Tridgell da4ef6c519 autotest: added EliField
matches reality to RealFlight
2020-07-15 16:14:00 -07:00
Andy Piper eb4c69ed88 Tools: iofirmware with DSM changes 2020-07-13 19:36:49 +10:00
Henry Wurzburg 682fd8b1ba Tools: remove fmuv4 and update Pixracer 2020-07-13 15:24:54 +10:00
Andrew Tridgell c8641bd246 autotest: fixed qassist test
need non-neutral ailerons to trigger roll
2020-07-13 13:47:50 +10:00
Pierre Kancir 7292ee8ec6 Tools: completion bash: fix and simplify frames completion 2020-07-12 11:11:17 +10:00
Pierre Kancir ad7f62b23d Tools: completion zsh: fix and simplify frames completion 2020-07-12 11:11:17 +10:00
Pierre Kancir be36ac836e Tools: sim_vehicle.py: add some helpers to retreive vehicles list and associated frames 2020-07-12 11:11:17 +10:00
Andrew Tridgell 71732d07f0 Replay: disable case-align for Replay build 2020-07-10 13:31:27 +10:00
Andrew Tridgell 5fdc400aab waf: added -Werror=cast-align 2020-07-10 13:31:27 +10:00
Peter Barker 2c1d77bf8f autotest: test simulated ship takeoff 2020-07-10 13:28:38 +10:00
krishnaprasadbhat2000 39de1cf000 Tools: added name to GIT_Success.txt 2020-07-10 08:16:08 +09:00
Andy Piper 7e913b965c iomcu: rebuild to include rcin stack size change 2020-07-07 18:48:06 +10:00
Peter Barker 6eb1d289b8 autotest: add trivial test for CRSF in copter 2020-07-07 18:48:06 +10:00
Samuel Tabor ed14ab84ce autotest: Add test for terrain following mission. 2020-07-07 11:46:32 +10:00
Samuel Tabor c3f039a739 autotest: Add timeout to fly_mission. 2020-07-07 11:46:32 +10:00
Samuel Tabor bde9ce10e3 autotest: Add wipe as argument. 2020-07-07 11:46:32 +10:00
Peter Barker 6c9d756f11 autotest: validate context nesting 2020-07-06 14:21:55 +10:00
Peter Barker 977ec1a7d6 autotest: SuperSimpleCircle: increase throttle while rolling in stab
We're hitting the ground...
2020-07-04 17:18:37 +10:00
Peter Barker b8c2b16394 autotest: autotest gyus42v2 rangefinder 2020-07-04 13:40:10 +10:00
Justin Clift e1e16bde6d autotest: remove doubled up disable-anti-alias-hud 2020-07-04 09:25:42 +10:00
Peter Barker a0258f351d autotest: disable gdb pagination 2020-07-03 22:07:16 +10:00
Peter Barker 560b4a9847 autotest: fix race condition between switch message and rc output 2020-07-03 22:06:48 +10:00
Peter Barker 96e500fe49 autotest: correct heli rebase issue 2020-07-03 12:07:06 +10:00
Peter Barker 717dabfe69 autotest: remove heat model for generator 2020-07-03 08:21:42 +09:00
Peter Barker bac60e0d3a autotest: add simple tests for richenpower generator 2020-07-03 08:21:42 +09:00
Peter Barker b955be50af waf: build in AP_Generator directory 2020-07-03 08:21:42 +09:00
yaapu 0cbff6ac66 Tools: autotest FRSkyPassThrough increased timeout to let the test complete 2020-07-02 21:53:06 +10:00
yaapu 75b621a09f Tools: autotest added frsky serial_protocol 4 and 10 testing against mavlink telemetry 2020-07-02 21:53:06 +10:00
bnsgeyer 1191a5e1ea Tools: Tradheli add rotor_runup_complete_checks 2020-07-02 21:49:40 +10:00
Peter Barker 332c73d168 autotest: reboot before running Copter ModeCircle test
This shouldn't be required, but CI is falling over too much.
2020-07-02 18:40:11 +10:00
Peter Barker de226c69ab Tools: add simulated LightWare serial lidar talking new binary protocol 2020-07-02 10:50:59 +10:00
dorovl 3644939246 BeagleBone : comments corrected in RcAioPRU.p 2020-07-01 10:27:33 -07:00
Peter Barker e5395069f4 autotest: add test for angle q-assist 2020-07-01 20:57:32 +10:00
Rishabh Singh 147ff6863a Tools: Remove some parametes from Hexsoon EDU450 Frame 2020-07-01 18:13:24 +10:00
Peter Barker 53b6d1a639 autotest: wait for heartbeat when opening connection
# need to wait for a heartbeat to arrive as then mavutil will
        # select the correct set of messages for us to receive in
        # self.mav.messages.  You can actually recieve messages with
        # recv_match and those will not be in self.mav.messages until
        # you do this!

Also, wait_heartbeat ignores heartbeats from e.g. MAVProxy
2020-07-01 14:38:21 +10:00
Peter Barker 74c04271fa autotest: fix breakages for defaulting to mavlink2
This highlights the fact that fetching rally points using the mission
item protocol does some when you're talking mavlink1 doesn't work out
well.

            # so this looks a bit odd; the other end isn't sending
            # mavlink2 so can't fill in the extension here.
2020-06-30 21:58:48 +10:00
Andy Piper 4147f0cce3 autotest: test gains are saved by autotune 2020-06-30 20:09:48 +10:00
Andy Piper c707303336 AP_HAL_ChibiOS: hold buzzer ping low in bootloader for omnibusf4pro 2020-06-30 17:58:35 +10:00
Andy Piper 523a97d161 Tools: update KakuteF7 bootloaders 2020-06-30 17:58:35 +10:00
Peter Barker 7da5f7c9b5 autotest: disable Spline waypoint test
The bug being exposed is causing too much noise in CI.
2020-06-26 18:05:41 +09:00
Peter Barker 29e6f058a9 autotest: add test for scripting guided-steering-throttle example 2020-06-26 11:39:06 +10:00
Andy Piper b4efb78315 autotest: rangefinder transition test 2020-06-24 21:16:50 +09:00
Peter Barker 3737c13784 autotest: allow message rates to be set by message name, not just ID
Simply for convenience.
2020-06-24 18:09:28 +10:00
Peter Barker cd1198bf49 autotest: drain mav before attempting to run a command
We're losing an arbitrary amount of data while getting the ACK, so it's
fine to lose whatever is in the buffer.
2020-06-24 18:09:28 +10:00
Peter Barker d0b97b89e7 autotest: add an assert_receive_message method 2020-06-24 18:09:28 +10:00
Peter Barker bb14746517 autotest: re-enable Rover BendyRuler test
This appears to now be working
2020-06-24 08:53:04 +09:00
Peter Barker f8acc211cf Tools: AP_Bootloader: remove unused BL_WAIT_MAGIC define
This has been replaced with RTC_BOOT_HOLD
2020-06-23 09:16:42 +10:00
Andy Piper c6415136ed autotest: add a test for dynamic harmonics 2020-06-21 19:09:35 +10:00
Pierre Kancir 653a6bd0a4 Tools: remove xmlpretty, xmlint do a better job 2020-06-20 20:05:35 +10:00
Pierre Kancir 77b461fee4 Tools: add --debug-ekf to debug the EKF 2020-06-20 19:59:05 +10:00
andresrcdev 90d24042cf Tools: Added my name to GIT_Success.txt 2020-06-20 08:18:15 +09:00
auturgy c4a92fb0fe Update board_types.txt
Update URL for ArduPilot board_types.txt
2020-06-18 14:49:57 +10:00
Andrew Tridgell 0efae38af0 Tools: updated PR instructions for board_types PRs 2020-06-17 14:24:22 +10:00
Andrew Tridgell 17e8e422db AP_Bootloader: added board_types.txt
avoiding pointing people at the old bootloader directory for board IDs
2020-06-17 14:16:47 +10:00
Peter Barker d1170db4bf Tools: allow parameters to be specified on a per-vehicle basis 2020-06-16 11:21:47 +10:00
Peter Barker ba5e4b8e37 autotest: python3 fix for fly_guided_move_to 2020-06-15 12:54:25 +10:00
Andrew Tridgell 243cfb5ffa Tools: added Pix32v5 bootloader 2020-06-12 21:23:16 +10:00
Andrew Tridgell ef8b09fa8b Tools: added Holybro Pix32v5 to build 2020-06-12 21:23:16 +10:00
Peter Barker 300e7ac2eb autotest: increase timeout on receiving mission-related messages
... to silly proportions.
2020-06-12 14:05:35 +10:00
Peter Barker 77e5236278 autotest: drain mavlink queue to avoid failing on slow MISSION_COUNT
It was observed from a log of a failed CI test that the ACK from
clearing the rally items took 6 wallclock seconds to arrive.

We were not waiting for that ACK to arrive before sending the request
for the mission item count, but if it has taken more than six seconds
for the ACK to arrive it is reasonable to assume that MISSION_COUNT
could very well take more than the 10 seconds we allow for it.

If we drain the mav before sending the request for the mission count we
should remove any signficiant timing problem due to a backlog of mavlnk
messages, but the amount of traffic here is problematic.

Also drain in lots of other places where we might be spending way too
long parsing messages.
2020-06-11 20:53:50 +10:00
Peter Barker dc19dfaed8 autotest: fix several race conditions in RCOverride test 2020-06-11 08:30:32 +10:00
Peter Barker e207bbdf2a autotest: fix SYSTEM_TIME stream detection function
MAVProxy's output is read by autotest via pexpect.

SITL's output is read by MAVProxy.

If we don't read MAVProxy's stdout then it doesn't read SITL and
everything stops.

Also, since we need to drain pexpects as part of reboot, and applying
parameter files requires rebooting... we need to append the expect
objects to the global list before we apply parameter files.  So move
that call.
2020-06-10 22:00:01 +10:00
Peter Barker db6fef7ebd Tools: uploader: translate board IDs into board type in incompat output 2020-06-09 10:30:50 +10:00
Iampete1 579227d27a Tools: param.py add MB 2020-06-09 09:23:25 +10:00
bugobliterator 0528daecd8 autotest: increase timeout for compass calibration 2020-06-08 07:25:51 +10:00
bugobliterator 83d5df257e Tools: fix sitl_calibration stopping at calibration report 2020-06-07 17:10:09 +10:00
Peter Barker bdda78d0bb Tools: move removal of modemmanager down
... so it doesn't get reinstalled later
2020-06-05 14:26:09 +10:00
Andrew Tridgell 7390846851 autotest: we need more than 1500 throttle for SimpleMode test
we are in stabilize and flying around, needs more than half throttle
to maintain height. This test was already marginal, but addition of
pressure alt in SITL pushed it over the edge
2020-06-05 11:35:53 +10:00
bugobliterator a5e9da337a Tools: autotest: fix FixedYawCalibration 2020-06-05 09:38:40 +10:00
bugobliterator 2c3bd61eb4 autotest: remove older compass calibration test 2020-06-05 09:38:40 +10:00
Pierre Kancir bd53796ed4 Tools: copter: add compass calibration testing 2020-06-05 09:38:40 +10:00
Pierre Kancir 2c7fc65fbd Tools: common.py: add generic compass calibration test 2020-06-05 09:38:40 +10:00
Pierre Kancir b72a17533c Tools: common: add a method to try arming and wait a result 2020-06-05 09:38:40 +10:00
Pierre Kancir 59de90d97f Tools: common.py: make max_delta a paramter for verify_parameter_values 2020-06-05 09:38:40 +10:00
Peter Barker 6490a57179 autotest: move check_logs to be an AutoTest-class function
This makes the AutoTest instance cognizant of the binary log files it is creating.  This will be useful for checking the contents of the log files created.
2020-06-04 20:15:31 +10:00
Pierre Kancir 2c43efc7b4 Tools: vagrant: remove duplicate from install script 2020-06-04 14:27:24 +10:00
Pierre Kancir 6b596184cf Tools: install-prereqs-ubuntu : use variable for pip version selection 2020-06-04 14:27:24 +10:00
Pierre Kancir b238d081ac Tools: install-prereqs-ubuntu : prevent crash when link already exist 2020-06-04 14:27:24 +10:00
Pierre Kancir e40480a0ed Tools: install-prereqs-ubuntu : fix package_is_installed 2020-06-04 14:27:24 +10:00
Peter Barker d08e9b3363 autotest: --list-subtests works for QuadPlane, Heli and BalanceBot 2020-06-04 10:13:57 +10:00
Peter Barker 6c67ddacf4 autotest: rename set_heartbeat_interval to set_heartbeat_rate 2020-06-04 01:11:28 +10:00
Peter Barker 4e216f976f autotest: assert that Plane doesn't support fence-via-mission-item-protocol
Hopefully this starts to fail at some stage!
2020-06-02 19:00:32 +10:00
Christian Clauss b07fb05dde autotest: Use ==/!= to compare constant literals (str, bytes, int, float, tuple)
Avoid SyntaxWarnings on Python >= 3.8

% `python3.8`
```
>>> "second" is "second"
<stdin>:1: SyntaxWarning: "is" with a literal. Did you mean "=="?
```
`flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics`
```
./Tools/autotest/arducopter.py:3899:20: F632 use ==/!= to compare constant literals (str, bytes, int, float, tuple)
                if loop is not "second":
                   ^
./Tools/autotest/arducopter.py:4047:20: F632 use ==/!= to compare constant literals (str, bytes, int, float, tuple)
                if loop is not "second":
                   ^
2     F632 use ==/!= to compare constant literals (str, bytes, int, float, tuple)
2
```
2020-06-02 16:25:15 +10:00
Peter Barker ffaa60b9ed autotest: stop emitting duplicate rangefinder headings
This was only an issue for the Wasp rangefinder block, which drops stuff
in at the top level by specifying the same subgroup name as the top
level.
2020-06-02 09:37:33 +10:00
Rajat Singhal 969a66fa01 Tools: autotest: Add Max RC input test for Rover
Currently disabled since it triggers Arithmetic Exception
2020-05-31 21:11:36 +10:00
Peter Barker c474edbfbc autotest: attempt to make parameter download more reliable
something is stopping parameters from being fetched.  Give it time to
clear.
2020-05-30 10:11:07 +10:00