ardupilot/Tools/autotest
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
..
aircraft Tools: added TugGoat's modifications to the Rascal JSBSim model 2018-12-18 13:06:03 +11:00
ArduCopter_Tests Tools: update path for copter test missions files 2020-04-09 09:01:03 +10:00
ArduPlane_Tests autotest: Add test for terrain following mission. 2020-07-07 11:46:32 +10:00
ArduRover_Tests Tools: update path for rover test missions files 2020-04-09 09:01:03 +10:00
ArduSub_Tests Tools: update path for sub test missions files 2020-04-09 09:01:03 +10:00
default_params Autotest: add test for Sub position hold 2020-08-03 20:19:28 -07:00
Generic_Missions Tools: added generic copter CMAC mission 2020-05-09 12:33:33 +10:00
jsb_sim Tools: random Python cleanups based on lgtm analysis 2019-09-21 22:26:03 +10:00
logger_metadata Tools: rename APMrover2 to Rover 2020-04-14 09:50:34 +09:00
param_metadata Tools: add generator for MP parameter xml 2020-08-05 22:32:33 +10:00
pysim autotest: disable gdb pagination 2020-07-03 22:07:16 +10:00
template Tools: Implement better Scrimmage support 2020-04-28 11:09:51 +10:00
web Tools: use https:// scheme for ardupilot URLs 2019-12-10 07:53:46 +11:00
web-firmware Tools: remove fmuv4 and update Pixracer 2020-07-13 15:24:54 +10:00
win_sitl Tools: rename APMrover2 to Rover 2020-04-14 09:50:34 +09:00
XPlane autotest: An X-Plane soaring mission file 2017-04-08 20:01:33 +10:00
__init__.py Tools: update python coding style 2016-09-01 13:05:11 +10:00
antennatracker.py Tools: update path for antenna tracker test missions files 2020-04-09 09:01:03 +10:00
arducopter.py autotest: add a test to ensure we get voltage from generator in battery_status message 2020-08-07 14:46:20 +10:00
arduplane.py autotest: Update soaring test to use RCX_OPTION. 2020-07-21 09:38:04 +10:00
ardusub.py Autotest: add test for Sub position hold 2020-08-03 20:19:28 -07:00
autotest.py autotest: add scan-build autotest steps 2020-08-07 16:00:18 +10:00
balancebot.py autotest: add tests for log download 2020-05-26 19:32:49 +10:00
bisect-helper.py Tools: add bisect-helper.py 2018-03-09 10:38:48 +11:00
build-with-disabled-features.py Tools: rename APMrover2 to Rover 2020-04-14 09:50:34 +09:00
common.py autotest: add do_timesync_roundtrip to do a timesync against SITL 2020-08-05 13:24:15 +10:00
examples.py autotest: explicitly run hello-world test and check for string 2020-05-28 13:49:47 +10:00
fakepos.py Tools: random Python cleanups based on lgtm analysis 2019-09-21 22:26:03 +10:00
fg_plane_view.bat autotest: remove doubled up disable-anti-alias-hud 2020-07-04 09:25:42 +10:00
fg_plane_view.sh autotest: remove doubled up disable-anti-alias-hud 2020-07-04 09:25:42 +10:00
fg_quad_view.bat autotest: remove doubled up disable-anti-alias-hud 2020-07-04 09:25:42 +10:00
fg_quad_view.sh autotest: remove doubled up disable-anti-alias-hud 2020-07-04 09:25:42 +10:00
junit.xml auto est: modular tests and unit testing with Junit.xml output for jenkins 2012-07-05 23:48:50 -07:00
locations.txt autotest: added EliField 2020-07-15 16:14:00 -07:00
quadplane.py autotest: default throttle to 1000 for quadplane 2020-08-04 10:26:45 +10:00
README First version of APM autotest 2011-10-31 13:50:34 +11:00
rover.py autotest: slow down simulation to avoid receiving re-request of item 2020-08-09 20:13:27 +10:00
run_in_terminal_window.sh Tools: correct quoting in run_in_terminal_window.sh 2018-03-15 07:40:23 +09:00
sim_vehicle.py Tools: sim_vehicle.py: add some helpers to retreive vehicles list and associated frames 2020-07-12 11:11:17 +10:00
swarminit.txt Autotest: Create swarminit.txt 2019-01-18 10:16:18 +11:00

This is an automated test suite for APM