ardupilot/Tools
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
..
AP_Bootloader Tools: AP_Bootloader: remove unused BL_WAIT_MAGIC define 2020-06-23 09:16:42 +10:00
AP_Periph Tools: use new UARTDriver discard_input method 2020-05-26 09:20:32 +10:00
ardupilotwaf waf: added -Werror=cast-align 2020-07-10 13:31:27 +10:00
autotest autotest: slow down simulation to avoid receiving re-request of item 2020-08-09 20:13:27 +10:00
bootloaders Tools: remove fmuv4 and update Pixracer 2020-07-13 15:24:54 +10:00
CHDK-Scripts Global: Fix typos 2016-09-17 00:36:36 -03:00
CodeStyle Tools: remove xmlpretty, xmlint do a better job 2020-06-20 20:05:35 +10:00
completion Tools: completion: simplify bash completion for sim_vehicle.py 2020-08-06 20:55:13 +10:00
CPUInfo Tools: removed separate recursive sempahore test 2020-01-19 20:19:30 +11:00
debug Tools: switch to https URL for firmware 2019-12-08 07:44:14 +11:00
environment_install Tools: move removal of modemmanager down 2020-06-05 14:26:09 +10:00
FilterTestTool Tools: FilterTestTool fix open .BIN files on case sensitive systems 2020-02-17 08:59:44 +11:00
Frame_params Tools: Remove some parametes from Hexsoon EDU450 Frame 2020-07-01 18:13:24 +10:00
geotag geotag.sh - an advanced geotagging tool. 2018-05-15 11:30:21 +10:00
GIT_Test Tools: added name to GIT_Success.txt 2020-07-28 15:12:24 +09:00
gittools Tools: gittools: add git-subsystems-split 2015-09-09 10:50:35 +10:00
Hello build: removed remaining make.inc files 2018-12-22 11:06:59 +11:00
IO_Firmware Tools: iofirmware with DSM changes 2020-07-13 19:36:49 +10:00
Linux_HAL_Essentials BeagleBone : comments corrected in RcAioPRU.p 2020-07-01 10:27:33 -07:00
LogAnalyzer Tools: LogAnalyzer: Python3 fixes 2020-07-17 11:16:06 +10:00
mavproxy_modules autotest: improve compass test diagnostics 2020-07-23 15:11:11 +10:00
Pozyx/IndoorLoiter Pozyx: update uno sketch to work with AP_Beacon 2016-12-01 19:21:38 +09:00
Replay Replay: disable case-align for Replay build 2020-07-10 13:31:27 +10:00
scripts tools: fix a couple of minor issues in decode-ISCR 2020-08-06 14:59:09 +10:00
UDP_Proxy Tools: added UDP proxy code 2019-09-24 12:41:44 +10:00
vagrant Tools: vagrant: remove duplicate from install script 2020-06-04 14:27:24 +10:00
Vicon Tools: fixed GPS pos error in Vicon script 2019-08-30 13:16:51 +10:00
PrintVersion.py Tools: rename APMrover2 to Rover 2020-04-14 09:50:34 +09:00