Commit Graph

5326 Commits

Author SHA1 Message Date
Patrick José Pereira
27720f2235 Tools: Replay: Move from uint to uint32_t in MsgHandler
uint is not a fundamental type and does not exist under cstdint

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-09-26 20:28:18 +10:00
Samuel Tabor
bd28a62155 autotest: Update soaring test for THERMAL mode. 2020-09-25 16:21:15 +10:00
Andrew Tridgell
246e790484 AP_Bootloader: use new hal CAN interface for CAN support 2020-09-24 12:32:19 +10:00
Siddharth Purohit
4bfd3c0782 AP_Bootloader: add support for HAL CANIface based bootloader 2020-09-24 12:32:19 +10:00
Siddharth Purohit
5ab6916a41 AP_Periph: use HAL CAN Drivers instead of ChibiOS's 2020-09-24 12:32:19 +10:00
Siddharth Purohit
b8e3d9c6e8 AP_Bootloader: add fail reason bad length 2020-09-24 12:32:19 +10:00
Siddharth Purohit
2edcd852eb AP_Bootloader: add support for app start offset 2020-09-24 12:32:19 +10:00
Siddharth Purohit
eab0507d37 Tools: waf: add build for CubeOrange-periph 2020-09-24 12:32:19 +10:00
Siddharth Purohit
b27092c651 Tools: waf: don't do uavcan build config for AP_Periph 2020-09-24 12:32:19 +10:00
Samuel Tabor
fe6c4d9290 autotest: Update for THERMAL mode. 2020-09-24 07:30:48 +10:00
Patrick José Pereira
be4f2f0c79 AP_Periph: Use new AP_FWVersionDefine header
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-09-23 20:58:35 +10:00
Peter Barker
536e2db947 Tools: sim_vehicle.py: add --disable-breakpoints commandline option 2020-09-23 20:28:08 +10:00
Peter Barker
64461dba5e autotest: fix Copter motortest test
We were swallowing all of the rc output containing the values we were
looking for.

Rearrange so we don't swallow where we were, and increase timeout on the
basis that there's still a narrow race.
2020-09-23 09:49:54 +10:00
Peter Barker
669622c614 autotest: improve use of SITL-is-running
ATM if the SITL binary dies we don't catch it anywhere.  This might
become part of the solution for that, as well as some changes on
run_one_test.
2020-09-22 21:11:57 +10:00
Peter Barker
fdb31a6419 autotest: param_parse.py: validate @User field to be Standard or Avanced 2020-09-22 14:56:04 +10:00
Pierre Kancir
b48d2d9631 Tools: remove empy from configure-ci.py 2020-09-22 10:05:19 +10:00
Tatsuya Yamaguchi
37691c751c Tools: replace message indicating that initialisation has completed 2020-09-22 09:52:52 +10:00
Andrew Tridgell
7726848a50 waf: lock in zero errors for gcc9 2020-09-22 08:07:23 +10:00
Randy Mackay
4ac6a647d7 Tools: add boogie-board-boat frame params 2020-09-18 08:30:54 +09:00
Vikas Singh
399c7eda16 Tools: added name to GIT_Success.txt 2020-09-17 07:34:29 -07:00
bugobliterator
460293d6a8 Tools: update CubeOrange_bl 2020-09-16 18:08:08 +10:00
Peter Barker
1075e13352 autotest: stop set_parameter from using get_parameter
Setting a parameter on ArduPilot causes the autopilot to emit the new
value in a PARAM_VALUE message, so we do not need to fetch it ourselves.

Fetching it ourselves causes subtle problems for the autotest suite
where a PARAM_VALUE is currently in the uart buffer - so the autotest
set_parameter has consumed one PARAM_VALUE message (the auto-emitted
one).  If it immediately does a set_parameter then the next
PARAM_VALUE it sees will be the OLD value as the value comes out of the
uart.
2020-09-15 19:27:36 +10:00
Peter Barker
3e708b9b29 Tools: build_parameters.sh: compress parameter xml files 2020-09-15 11:19:23 +10:00
Peter Barker
9e148f245b autotest: param_parse.py: correct parsing of Values fields
the regex used to parse the values field later is rather strict - no
spaces allowed around the : for example.

Canonicalise the string before trying to do anything more with it
(including validation)
2020-09-15 11:09:52 +10:00
Peter Barker
1cefd2943b Replay: correct various atrophications in Replay tool
Replay: tear down threads before exitting

NKQ is a generated name - don't copy it across to output

Stop whinging about presence of NKF6 and friends; we know these generated names are not going to be present in modern logs

memcpy rather than strncpy within log_FMT

Correct strings vs optionally-terminated structure entries in sanity checks

Call AP_Param::load_all() to start the parameter saving thread.  AP_Compass' init() method now saves parameters (compass reordering), and because we're disarmed we will block until the parameter is pushed onto the to-save queue; if there's no thread popping off that list we block indefinitely.

Remove duplicate definitions of various singleton objects.

Replay: write out GPS message to output log

Useful for diagnosis, but also because we struggle to find a time base
without this and the pymavlink tools take forever to work

Replay: set COMPASS_DEV_ID and COMPASS_PRIO1_ID so EKF gets mag data

Replay: avoid use of system clock; use stopped-clock only

Replay: constraint to emitting output for single core only
2020-09-15 10:02:36 +10:00
Andrew Tridgell
3da00b482e waf: enable -Werror for whitelisted compilers on ChibiOS builds 2020-09-15 09:40:03 +10:00
Andrew Tridgell
ae2e84b3df AP_Periph: fixed mavlink build warnings 2020-09-15 09:40:03 +10:00
Andrew Tridgell
8b95fac214 Tools: added --Werror option to autotest.py 2020-09-15 09:40:03 +10:00
Peter Barker
3f2c06f8c0 build_ci.sh: correct cron job check against 'linux'
We don't actually run this cronjob.
2020-09-15 09:18:04 +10:00
Peter Barker
0bb44ba933 waf: print compiler version as part of configure 2020-09-14 18:11:31 +10:00
Peter Barker
466d61a881 Tools: build_log_message_documentation.sh: compress log message documentation files 2020-09-14 13:29:05 +10:00
Peter Barker
5c22e9e105 Revert "Tools: make non DEBUG SITL use -march=native"
This reverts commit 85b599b2d7.

This breaks the cygwin binaries that MissionPlanner uses for simulation
2020-09-14 11:19:11 +10:00
Peter Barker
3e882fcad8 autotest: loosen mag-percent-complete threshold to 95%
So 98% wasn't loose enough...
2020-09-11 15:31:45 +10:00
Harshit Kumar Sankhla
f0c237d88e autotest: bug fixes for ekf lane switch test 2020-09-11 10:16:20 +10:00
Peter Barker
796cc72344 autotest: remove parameters with default values from copter.parm
Setting these just takes time we don't need to spend
2020-09-11 08:02:38 +10:00
Samuel Tabor
6de4967a3d autotest: Fix typos and unclear comments in soaring test. 2020-09-10 22:21:41 +10:00
Samuel Tabor
f6017d60bf autotest: Update for new soaring behaviour. 2020-09-10 22:21:41 +10:00
Pierre Kancir
85b599b2d7 Tools: make non DEBUG SITL use -march=native 2020-09-10 15:16:18 +10:00
Peter Barker
995cda6363 autotest: stop taking off when we're already in the air
Depending on timing we can miss the fact we're already at altitude as we
take off in stabilize and manipulate the throttle before checking
altitude
2020-09-10 10:39:30 +10:00
Andrew Tridgell
6b242bf1db waf: add flash_total to apj file 2020-09-10 07:41:25 +10:00
Peter Barker
0f5f040380 autotest: send all progress messages to autopilot
These will be logged into dataflash and into the telemetry log
2020-09-09 23:47:28 +10:00
bugobliterator
d997ca8779 autotest: pass calibration test even if 98% complete before success 2020-09-09 23:46:23 +10:00
Peter Barker
51b54d3740 autotest: avoid leaving message hooks around
Can lead to some very weird and confusing output
2020-09-09 17:59:17 +10:00
Andrew Tridgell
0f7f9a22fd Tools: added Matek GPS and airspeed builds 2020-09-09 06:38:05 +10:00
Andrew Tridgell
a9ca78532e Tools: added MSP bus type to decode 2020-09-09 06:35:50 +10:00
Andrew Tridgell
9c24415f86 AP_Periph: support output of MSP sensor data 2020-09-09 06:35:50 +10:00
Peter Barker
9228f47dc9 autotest: create collections-on-context to record selected messages 2020-09-08 14:19:08 +10:00
Peter Barker
f3866e5f39 autotest: disable button test 2020-09-08 12:31:15 +10:00
Andrew Tridgell
7c5a0a6a43 Tools: disable LOG_REPLAY by default in autotest
LOG_REPLAY prevents us logging when we have sensor failures, which
makes many tests hard to debug
2020-09-08 11:01:14 +10:00
Andrew Tridgell
80ef6fa7f2 Tools: added a MagFail test
ensures that both EK2 and EK3 will failover to a new compass on
compass failure
2020-09-08 11:01:14 +10:00
Peter Barker
d508ba97c5 autotest: add test for SmartRTL getting another GCS failsafe
Test for specific bug where we would land instead of continue in
SmartRTL
2020-09-08 09:05:03 +09:00
Samuel Tabor
3c0d4b6d5a autotest: Add start time argument and parsing. 2020-09-07 21:20:25 +10:00
Andrew Tridgell
a9ecac4fff Tools: added --osdmsp option to sim_vehicle.py 2020-09-07 11:59:20 +10:00
Pierre Kancir
2e60f361fa Tools: ardupilotwaf: remove '-Werror=suggest-override' from benchmark to prevent failure
this is due to the fact that gbenchmark header should be compatible with C++03 and then don't accept C++11 feature like override ...
2020-09-06 19:13:04 +10:00
Pierre Kancir
9d9cf2501a Tools: disable Gtest and testing on Gbenchmark build 2020-09-06 19:13:04 +10:00
Peter Barker
65268ee3d4 autotest: more button-test fixes 2020-09-06 16:49:16 +10:00
bugobliterator
6203e0685e autotest: disable MAG orientation test 2020-09-06 11:21:28 +10:00
Andy Piper
0b9d9fc284 autotest: use StringIO correctly 2020-09-06 09:12:59 +10:00
Pierre Kancir
31338f955b Tools: allow to skip completion installation 2020-09-05 13:31:03 +10:00
Andy Piper
6ebc7622fe autotest: comprehensive dataflash test 2020-09-05 10:20:39 +10:00
Pierre Kancir
11417ac3a7 Tools: build-ci: use python -m pip for easier pip version management 2020-09-04 09:31:23 +10:00
Pierre Kancir
7648413f8c Tools: configure-ci: use python -m pip for easier pip version management 2020-09-04 09:31:23 +10:00
Patrick José Pereira
050334273e Tools: Remove trailing spaces of build_ci
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-09-03 18:14:34 +10:00
Patrick José Pereira
30e2aad6b9 Tools: Add arm-linux-musleabihf toolchain
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-09-03 18:14:34 +10:00
Patrick José Pereira
ee4f267743 Tools: Add navigator test in build_ci
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-09-03 18:14:34 +10:00
Peter Barker
2ea41b7997 autotest: spit out actual simulated mag orientations as part of debug 2020-09-03 13:08:07 +10:00
Andrew Tridgell
689902cb69 waf: moved include of ap_config.h into configure step 2020-09-03 09:56:29 +10:00
Andrew Tridgell
24425b4155 waf: allow setup of double precision for some cpp files 2020-09-03 09:56:29 +10:00
Peter Barker
5a8b1639d0 autotest: fix nmea output test 2020-09-02 10:05:26 +10:00
Andrew Tridgell
844d2bf7ff waf: enable MSP when we enable OSD 2020-09-02 05:56:46 +10:00
Andrew Tridgell
6f04b4a5ec waf: added --osd-fonts configure option
allows for --osd without fonts
2020-09-02 05:56:46 +10:00
Andrew Tridgell
7c579c4814 waf: added --osd configure option
to allow boards with no builtin OSD to use MSP OSD
2020-09-02 05:56:46 +10:00
yaapu
b658edfa20 Tools: added MSP 2020-09-02 05:56:46 +10:00
Peter Barker
522c3e6281 autotest: make LogUpload the last test again
ATM any logs produced by EKFLaneswitch won't get uploaded in case of
failure
2020-09-01 18:15:37 +10:00
Peter Barker
23ba2002e8 autotest: dump final mag cal report verbosely 2020-09-01 14:11:57 +10:00
Peter Barker
74c47827d9 autotest: drain stdout of SITL binary
The new rate messages were filling up the stdout buffer, causing the
process to block....
2020-08-30 08:38:35 +10:00
Peter Barker
e8fa4e1351 autotest: disable autotest for altitude prearm check 2020-08-30 08:38:35 +10:00
Peter Barker
397e134106 autotest: quieten RTL 2020-08-30 08:38:35 +10:00
Peter Barker
065d03dd30 autotest: add a timeout in the button test 2020-08-30 08:38:35 +10:00
Peter Barker
c01b26ca62 autotest: fix race condition in EKF type 10
EKF type 10 is always able to give you a position - but the arming
checks require you to have a good GPS position, and that's something
else again.
2020-08-30 08:38:35 +10:00
Peter Barker
cafc5b01f4 autotest: fix race condition in Rover RTL test 2020-08-30 08:38:35 +10:00
Peter Barker
43cdceba8f autotest: tweak wait_ready_to_arm 2020-08-30 08:38:35 +10:00
Peter Barker
b7641345e1 autotest: set and get parameters directly using mavlink message 2020-08-30 08:38:35 +10:00
Peter Barker
ba91cbb270 autotest: correct sub parameter name PSC_VELZ_P, fix test to match 2020-08-30 08:38:35 +10:00
Pierre Kancir
084ec2bb5a Autotest: copter: fix wait_for_alt for descending wait 2020-08-29 14:53:30 +10:00
Pierre Kancir
ebd13ac84e Tools: copter: wait_landed_and_disarmed: use wait_for_alt 2020-08-29 14:53:30 +10:00
Pierre Kancir
7fbf11061f Tools: copter: add wait_rtl_complete function 2020-08-29 14:53:30 +10:00
Pierre Kancir
3080899b43 Tools: copter: add wait land and disarm functions 2020-08-29 14:53:30 +10:00
Pierre Kancir
936511a720 Autotest: common: correct some text format 2020-08-29 10:44:19 +10:00
Pierre Kancir
5b72de25e0 Autotest: update wait_distance_to_home
Autotest: copter: allow to pass min_distance for RTL

Autotest: rover: allow to pass min distance for RTL
2020-08-29 10:44:19 +10:00
Peter Barker
119462aeb1 build_binaries.py: Python3 fix
Something in the program output is not ascii
2020-08-28 08:31:46 +10:00
Harshit Kumar Sankhla
464c90a03c Tools: add an EKF3 lane switching test to plane 2020-08-27 20:20:51 +10:00
Pierre Kancir
16b499d0f6 Autotest: allow to select which GPS flags we want to wait for 2020-08-27 09:11:13 +10:00
Peter Barker
80bee19bc9 autotest: correct race condition in button test
A BUTTON_CHANGE may have been emitted after we send the parameter but before it is processed by the autopilot
2020-08-26 13:22:14 +10:00
Peter Barker
3ae83d70b1 autotest: ensure df log is present for rangefinder tests
there may not be a current onboard log present if we've just rebooted
2020-08-26 11:59:11 +10:00
Pierre Kancir
420587fb68 Tools: logger_metadata fix relative dir search 2020-08-25 20:01:27 +10:00
Pierre Kancir
a181fcf8a2 Autotest: common: put generated parameter and LogMessage files into buildlogs directory 2020-08-25 20:01:27 +10:00
Peter Barker
a523868b33 autotest: fix Beacon test 2020-08-25 17:21:50 +10:00
Andrew Tridgell
155b39bab3 autotest: added loiter-to-alt test mission 2020-08-25 10:39:18 +10:00
Randy Mackay
660579f2f4 Tools: fix copter beacon test params 2020-08-25 09:38:10 +09:00
Andrew Tridgell
a1b5953927 Tools: added bootloader for f103-Airspeed 2020-08-25 09:59:15 +10:00
Andrew Tridgell
61f06f089e Tools: added bootloader for f303-MatekGPS 2020-08-25 09:59:15 +10:00
Peter Barker
69d246d63e autotest: add test for priority-based compass reordering 2020-08-25 08:30:04 +10:00
Peter Barker
bb697dd4b9 autotest: avoid using mavproxy for testing message intervals 2020-08-24 19:33:37 +10:00
Andrew Tridgell
10eeea31e8 Tools: rebuild IO firmware 2020-08-24 16:32:35 +10:00
Peter Barker
a190490b64 autotest: do not rely on MAVProxy for sending banner request 2020-08-24 15:26:57 +10:00
Peter Barker
00bfe04539 autotest: remove duplicate recovery code from set-message-interval test 2020-08-24 14:00:38 +10:00
Peter Barker
03d0eda7f1 autotest: use a passthrough progress function for Telem objects 2020-08-24 13:24:41 +10:00
Andrew Tridgell
245e0230b5 Tools: revert unintented change to f303 GPS bootloader 2020-08-24 07:01:51 +10:00
bugobliterator
4bd0e2f394 AP_CANManager: fix name for RX Queue size define 2020-08-24 06:48:56 +10:00
Peter Barker
67b71e2b94 autotest: add test for Plane dead-reckoning support 2020-08-21 18:16:40 +10:00
Pierre Kancir
8b92af732a Autotest: common: add wait_heartbeat to change_mode to clean up msg and give time to status to update 2020-08-21 13:35:51 +10:00
Pierre Kancir
f73e4c0071 Autotest: copter: add test for mandatory alt estimation for Alt_hold 2020-08-21 13:35:51 +10:00
Peter Barker
cddb5fb1cc autotest: use message hook when waiting for statustext
Eliminates a race condition when waiting for statustexts.  Getting the
current sim time slurps messages.
2020-08-21 12:26:12 +10:00
Pierre Kancir
b7f46462f8 Autotest: common: reduce timeout on ArmFeature test
This is unnessary to wait for 60s for failure, 15s is enough
2020-08-21 09:13:32 +10:00
Peter Barker
f14c9db568 autotest: improve debug around heli poshold takeoff test 2020-08-20 10:10:34 +10:00
bugobliterator
c02c500ac5 param_metadata: add microseconds under known param type 2020-08-19 17:31:09 +10:00
Siddharth Purohit
4e17f8a23e waf: add CANManager library and use uavcan agnostic names CAN vars 2020-08-19 17:31:09 +10:00
Peter Barker
904981a0c3 waf: build with -Werror=undef 2020-08-19 14:46:39 +10:00
Peter Barker
ebc28d817f travis: build mRoX21-777 with -Werror 2020-08-19 08:12:06 +10:00
Peter Barker
a5aa963a77 autotest: fixes --tracker and --tracker-location sim_vehicle.py options 2020-08-18 15:26:03 +10:00
Mark Whitehorn
a37b5c2c6b autotest: add rudder disarm checks for airmode 2020-08-18 11:42:34 +10:00
Pierre Kancir
0c3e9bbd4b Autotest: fix mavlink_time_boot format: should be int 2020-08-18 08:33:08 +10:00
Pierre Kancir
acc4a1db3f Autotest: remove special case for vicon and default vicon for copter to false 2020-08-17 21:17:26 +10:00
Peter Barker
c69908e7ea autotest: add proximity sensor readinds as if from depth camera 2020-08-17 11:20:12 +10:00
Peter Barker
ea5aa594a3 autotest: add test for AP_Proximity_MAV 2020-08-17 11:20:12 +10:00
Peter Barker
1b481b6e6a Tools: uploader.py squelch warning when not able to find hwdefs 2020-08-15 11:59:40 +10:00
Peter Barker
82dd7ece6c autotest: fix frsky bitop on float issue
Crops up in Python 3.8:

    gpi_lat = self.tf_encode_gps_latitude(gpi.lat)
  File "/home/pbarker/rc/ardupilot/Tools/autotest/common.py", line 6183, in tf_encode_gps_latitude
    value = ((abs(lat)/100)*6) | 0x40000000
TypeError: unsupported operand type(s) for |: 'float' and 'int'
2020-08-15 10:42:47 +10:00
Pierre Kancir
52ae087fb5 Autotest: rover: remove some raw mavproxy cmd for rc 2020-08-15 09:16:24 +10:00
Pierre Kancir
388fef23d9 Autotest: common: remove use of some raw mavproxy cmd for rc 2020-08-15 09:16:24 +10:00
Pierre Kancir
30fa433faa Tools: don't add duplicate param to context 2020-08-14 18:16:47 +10:00
Mark Whitehorn
7d33017c8a Tools: scripts: uploader.py: update --identify option 2020-08-14 11:53:58 +10:00
Pierre Kancir
fa4a01e8f9 autotest: copter: don't use raw reboot on fly_battery_failsafe() 2020-08-14 09:42:52 +10:00
Pierre Kancir
3c6d1a359a autotest: copter: catch exception on test_battery_failsafe to reset parameters 2020-08-13 12:09:23 +10:00
Pierre Kancir
5fe81706bb autotest: copter: catch exception on test_gcs_failsafe to reset parameters 2020-08-13 12:09:23 +10:00
Pierre Kancir
9c41462bf6 Tools: copter: correct flip test 2020-08-13 10:37:02 +10:00
Mark Whitehorn
d0ff26e782 autotest: expand quadplane AirMode autotest 2020-08-13 08:47:27 +10:00
Mark Whitehorn
b9830f657a autotest: add quadplane airmode test 2020-08-13 08:47:27 +10:00
climr
918dfc13f7 Tools: Add Horizon31 PixC4 to board_types.txt 2020-08-10 13:33:32 +10:00
Peter Barker
9cd5fdacfc Tools: autotest: add a test for motor test 2020-08-10 09:18:05 +10:00
Peter Barker
f0482935cc autotest: slow down simulation to avoid receiving re-request of item
# avoid a timeout race condition where ArduPilot re-requests a
        # fence point before we receive and respond to the first one.
        # Since ArduPilot has a 1s timeout on re-requesting, This only
        # requires a round-trip delay of 1/speedup seconds to trigger
        # - and that has been seen in practise on Travis

AT-0417.0: Sending item with seq=0
AT-0417.2: Got (MISSION_REQUEST {target_system : 243, target_component : 250, seq : 0, mission_type : 1})
AT-0417.2: Got (MISSION_REQUEST {target_system : 243, target_component : 250, seq : 0, mission_type : 1})
AT-0417.2: Exception caught: Traceback (most recent call last):
  File "/home/travis/build/ArduPilot/ardupilot/Tools/autotest/common.py", line 3950, in run_one_test
    test_function()
  File "/home/travis/build/ArduPilot/ardupilot/Tools/autotest/rover.py", line 4216, in test_poly_fence
    self.test_fence_upload_timeouts()
  File "/home/travis/build/ArduPilot/ardupilot/Tools/autotest/rover.py", line 4057, in test_fence_upload_timeouts
    target_component=target_component)
  File "/home/travis/build/ArduPilot/ardupilot/Tools/autotest/rover.py", line 4010, in test_fence_upload_timeouts_2
    self.expect_request_for_item(item)
  File "/home/travis/build/ArduPilot/ardupilot/Tools/autotest/rover.py", line 3958, in expect_request_for_item
    raise NotAchievedException("Expected request for seq=%u" % item.seq)
NotAchievedException: Expected request for seq=1

The "AT" timestamps there are wallclock time.  Since speedup for Rover
is 8 by default, that could be as much as 1.6 seconds meaning a
re-request from ArduPilot would be legitimate.

I've added some debug, too - we now emit "Sending item with seq=1"
between those two "Got" lines.  That should make the problem clearer -
we've received a re-request rather than a request for the item after the
one we've already sent.
2020-08-09 20:13:27 +10:00
Peter Barker
749b678e14 autotest: add scan-build autotest steps 2020-08-07 16:00:18 +10:00
Peter Barker
e51427a2bc autotest: add a test to ensure we get voltage from generator in battery_status message 2020-08-07 14:46:20 +10:00
Peter Barker
77df7c7a39 autotest: autotest the MaxBotixI2CXL i2c rangefinder code 2020-08-07 08:52:00 +10:00
Pierre Kancir
aac416deb1 Tools: completion: simplify bash completion for sim_vehicle.py 2020-08-06 20:55:13 +10:00
Pierre Kancir
25c42b0ea9 Tools: completion: autotest subtest completion for ZSH 2020-08-06 20:55:13 +10:00
Pierre Kancir
1fa6138ca1 Tools: Autotest.py: Allow autotest subtests completion 2020-08-06 20:55:13 +10:00
Peter Barker
2a2a78d15d tools: fix a couple of minor issues in decode-ISCR 2020-08-06 14:59:09 +10:00
Pierre Kancir
f2e6a79276 Tools: script: add a script to generate Mission Planner full parameters file 2020-08-05 22:32:33 +10:00
Pierre Kancir
4930142b6e Tools: add generator for MP parameter xml 2020-08-05 22:32:33 +10:00
Peter Barker
07abb3ab6a autotest: extend RichenPower test 2020-08-05 16:26:19 +09:00
Rishabh
bac3660fca Tools: Push autotune switch test to run after avoidance tests 2020-08-05 15:37:04 +09:00
Rishabh
cf04a01389 Tools: Increase timeout for avoidance autotest 2020-08-05 15:37:04 +09:00
Peter Barker
b9dc7118d4 autotest: add do_timesync_roundtrip to do a timesync against SITL
On the assumption that ArduPilot processes mavlink packets
synchronously (or at least in order), after we have run a timesync
roundtrip we can reasonably expect any mavlink command we have sent
prior to the roundtrip to have been processed, and we should be able to
see the results in the mavlink stream.
2020-08-05 13:24:15 +10:00
Peter Barker
4640c24872 autotest: correct checking for no-logs string 2020-08-04 15:12:08 +10:00
Peter Barker
b2748f19f6 autotest: correct validator for Distance wait-and-maintain 2020-08-04 15:12:08 +10:00
Willian Galvani
0f992ac6a3 Autotest: add test for Sub position hold 2020-08-03 20:19:28 -07:00
Mark Whitehorn
0d5de343d2 autotest: default throttle to 1000 for quadplane
zero throttle after disarming in do_RTL

Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
2020-08-04 10:26:45 +10:00
bugobliterator
d489100a70 Tools: ensure that we use environment Python interpreter 2020-08-03 14:02:09 +10:00
bolu3
5cebf91c3f Tools: added name to GIT_Success.txt 2020-07-28 15:12:24 +09:00
Peter Barker
39f16c4679 autotest: reboot SITL after running autotune switch test 2020-07-24 20:49:12 +10:00
Peter Barker
f5a928ae26 autotest: remove debug to reduce CI log sizes 2020-07-24 12:39:17 +10:00
Peter Barker
66ffb4a17b autotest: retry parameter fetch in MIS_TOTAL test
There's a race condition with MAVProxy; it's fetching parameters here
and seems to ignore our requests.

Also correct named parameter from retry to attempts
2020-07-24 09:38:39 +10:00
Peter Barker
ccff006517 autotest: correct time-spent-waiting-to-arm for zero case 2020-07-23 18:10:06 +10:00
Peter Barker
f1fc61cb41 autotest: improve compass test diagnostics 2020-07-23 15:11:11 +10:00
Peter Barker
b69130d352 autotest: require uptime of 5s before declaring GPS definitely not present
Until we detect a GPS we mark it as "not present", even if the
parameters say that there should be one present.
2020-07-23 11:17:42 +10:00
Peter Barker
d9085e34d8 autotest: default throttle to 1000 for quadplane 2020-07-22 17:35:47 +10:00
Peter Barker
7880120921 autotest: upload logs after quadplane tests 2020-07-22 14:40:31 +10:00
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