Commit Graph

6888 Commits

Author SHA1 Message Date
Peter Barker 41b8728296 autotest: remove report of pull failure
Nobody is ever reading these
2022-07-27 18:25:17 +10:00
bugobliterator 2375564bb2 autotest: add test for CAN node health pre arm check 2022-07-27 18:18:03 +10:00
bugobliterator c4b182978a AP_Periph: add support for starting sitl periph in maintenance mode 2022-07-27 18:18:03 +10:00
bugobliterator cdb14bd75d AP_Periph: enlarge CANARD pool for CANFD messages 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 5fbd143d82 Tools: remove references to config.mk
dates from APM-build days.  The build server files references APM1 which is long gone.  Users running build_binaries can pollute their own environments, not need for this.
2022-07-26 21:23:06 +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 b365fc129d Tools: build_parameters.sh: honour $BUILDLOGS 2022-07-25 09:34:41 +10:00
Peter Barker 52aa676db2 Tools: build_log_message_documentation.sh: honour $BUILDLOGS 2022-07-25 09:34: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
Tom Pittenger 9a7fd21b39 Tools/bootloader: add SkystarsH7HD 2022-07-21 21:53:15 -07: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
Tom Pittenger c60f7bff91 Tools: Enable uploader.py and waf --upload to work on WSL2 2022-07-22 09:12:01 +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 8d833e8f23 Tools: add CI test to build with default build_options.py output
hopefully make defaults builds on the build server work all the time
2022-07-22 08:48:16 +10:00
Peter Barker edab5f0e5a Tools: build_options.py: add AP_ICENGINE_ENABLED 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
Iampete1 18351186db AP_Periph: set defualt format version 2022-07-20 17:59:59 +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
Luiz Georg b59a2143ae Tools/LogAnalyzer: fix python2/3 compatibility 2022-07-19 22:01:31 +10:00
Luiz Georg d76f3d71ae Tools/LogAnalyzer: pass flake8
`TestDualGyroDrift.py` ignored because it is mostly commented out code
2022-07-19 22:01:31 +10:00
Luiz Georg da0c365f3d Tools/LogAnalyzer: Use more specific exceptions 2022-07-19 22:01:31 +10:00
Luiz Georg 42f202d0ff Tools/LogAnalyzer: apply Black and isort 2022-07-19 22:01:31 +10:00
李孟晓 d4bfcf80bd Tools: added ICP201XX build option 2022-07-19 15:02:31 +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
Henry Wurzburg 2eb3f75a57 Tools: fix bootloaders to turn on switched supply during bootloader 2022-07-19 10:34:47 +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
Peter Barker c0243772b4 waf: add --define command-line option
Allows CPP defines to be specified on command-line

Eases enable/disable of optional features
2022-07-19 09:09:05 +10:00
Peter Barker 6c17fd7bac waf: build Richenpower on SITL by default 2022-07-19 09:09:05 +10:00
Andrew Tridgell 0d508750bc Tools: fixed the filter test tool for instance IMU data
and use indexed log search
2022-07-19 06:28:18 +10:00
Henry Wurzburg 406d03559f Tools:Add build option for Ublox 2022-07-18 16:50:31 +01:00
Peter Barker 4561e78dd5 AP_Periph: include GCS_MAVLink.h for firmware version type define 2022-07-16 17:15:52 +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
Andy Piper 591f43e7d0 scripts: add TRAMP to build options 2022-07-14 09:23:59 +10:00
Pierre Kancir 99ef5f5957 Tools: create an ardupilot entrypoint instead of hacking .bashrc on docker 2022-07-13 18:45:44 +10:00
Tamas Nepusz 19bc7ebebe build_bootloaders.py should invoke bin2hex.py with the same Python interpreter as its own 2022-07-13 17:24:19 +10:00