QioTek
278593a6a0
HAL_ChibiOS: added f103-QiotekPeriph
...
HAL_ChibiOS: added f103-QiotekPeriph
2021-04-24 07:48:40 +10:00
Andrew Tridgell
a04e8746a4
waf: removed debug code
...
this was in to test cygwin ar behaviour on linux. It should not have
been committed.
Thanks to Andy for letting me know it broke MacOS
2021-04-23 05:50:23 +10:00
Andrew Tridgell
4c9fc334cc
CI: enable cygwin build in github actions
...
this will allow us to drop azure builds once this is confirmed working
2021-04-22 14:03:19 +10:00
Hwurzburg
6235f7f8f4
AP_Periph: fix metadata error preventing emitting to wiki
2021-04-21 17:31:43 -07:00
Andrew Tridgell
c88524a1ac
Tools: auto-build luminousbee5
2021-04-21 20:41:34 +10:00
Andrew Tridgell
de893a2530
Tools: allocate ID 1029 for luminousbee5
...
1028 will be the FreeflyRTK
2021-04-21 20:41:34 +10:00
Andrew Tridgell
928108e556
Tools: added luminousbee5 bootloader
2021-04-21 20:41:34 +10:00
Andy Piper
5eca0c61c4
waf: add support for --enable-stats
2021-04-21 17:14:11 +10:00
Peter Barker
30e8160aa1
autotest: sort logs before moving
...
Makes it easier to find last log in output.
Also removing pointless lamdaing of some functions
2021-04-21 13:16:24 +10:00
Pierre Kancir
927a875133
Tools: param_parse: fix vehicle specific parameter with multiple fields
2021-04-21 11:30:54 +10:00
Peter Barker
0ee0228883
autotest: fix flapping fly-home-land-and-disarm
...
One of the tests just happened to be within acceptance radius of
waypoint 8 - so when we set that as a waypoint we never saw it actually
be our waypoint so the set_waypoint failed
2021-04-20 23:04:24 +10:00
Andrew Tridgell
878bd3f0fe
waf: use /usr/bin/ar not arm-none-eabi-ar on cygwin
...
needed to allow for @FILE syntax for long arg lists
2021-04-20 18:43:20 +10:00
Peter Barker
8643322f06
autotest: correct string we expect from MAVProxy
...
Was APM: now AP:
2021-04-20 14:08:12 +10:00
Tom Pittenger
e0cfac902d
AP_Periph: populate the param meta data for the wiki
2021-04-19 09:19:04 -07:00
Peter Barker
c12d1938c2
autotest: add a test for button change for changing modes
2021-04-19 14:27:45 +10:00
Andrew Tridgell
6a12b612b1
AP_Periph: fixed DShot in AP_Periph
2021-04-16 07:11:50 +10:00
Andrew Tridgell
be161744db
autotest: adjust default plane tune
2021-04-15 06:57:16 +10:00
Andrew Tridgell
0be24c4946
Tools: convert old param files to new plane PID params
2021-04-15 06:57:16 +10:00
Andrew Tridgell
239e794909
Tools: added script to convert old plane PIDs
2021-04-15 06:57:16 +10:00
Andrew Tridgell
0d9d952aea
autotest: added SpringValley2
2021-04-15 06:57:16 +10:00
Andrew Tridgell
ae986967c9
Tools: add G4-ESC to build
...
this ensures G4 keeps building
2021-04-14 13:11:58 +10:00
Peter Barker
31c889f583
autotest: accept Copter/Plane/Sub for sim_vehicle.py
2021-04-12 13:35:16 +10:00
Andrew Tridgell
affff0fc84
Tools: test mission from Leonards S-curve talk
2021-04-11 19:16:09 +10:00
Peter Barker
f2692ab8d9
Tools: build_parameters: generate AP_Periph parameters
2021-04-11 11:31:41 +10:00
Peter Barker
27b6637c2d
Tools: param_parse.py: add support for generation for AP_Periph
2021-04-11 11:31:41 +10:00
Peter Barker
725e36b381
AP_Periph: correct paths to libraries
...
These were a mixture. This allows param_parse.py to function
appropriately.
2021-04-11 11:31:41 +10:00
Vineet
f847066596
Tools: added my name to the GIT_Success
...
Tools: added my name to GIT_Success
autotest: correct compilation of Replay in autotest suite
Tools: added my name to GIT_Success
added my name to GIT_Success
2021-04-10 17:48:20 +09:00
Peter Barker
f7fc76f8ab
Tools: build_parameters.sh: generate SITL parameters
2021-04-10 11:28:22 +10:00
Peter Barker
b107740542
Tools: param_parse: add --sitl to emit only SIM_ parameters
2021-04-10 11:28:22 +10:00
anbello
c83774a7cd
add revo-mini-* to build_binaries.py
2021-04-08 20:34:06 +10:00
Randy Mackay
0b9753b12f
Tools: autotest add vehicle info for rover-vectored
2021-04-08 08:47:07 +09:00
Randy Mackay
d00e63d14b
Tools: add default params for rover-vectored
...
Co-authored-by: srmainwaring <rhys.mainwaring@me.com>
2021-04-08 08:47:07 +09:00
Peter Barker
b369e86c0c
Tools: param_parse: remove references to APM in parameter generation
2021-04-07 17:08:25 +10:00
Peter Barker
229b25d916
Tools: param_parse: add *args and **kwargs to emitters
2021-04-07 17:08:25 +10:00
Peter Barker
5a927d84c8
Tools: param_parse: rejig selection of emitters
2021-04-07 17:08:25 +10:00
Peter Barker
5ef5fc9d84
Tools: param_parse: stop generating old .wiki format
2021-04-07 17:08:25 +10:00
Peter Barker
c3414a5767
Tools: param_parse: move init of variable lower
2021-04-07 17:08:25 +10:00
Peter Barker
4c6b07e950
Tools: param_parse: remove support for Parameters.pde
2021-04-07 17:08:25 +10:00
Peter Barker
c350268918
autotest: correct compilation of Replay in autotest suite
2021-04-05 16:39:36 +10:00
Peter Barker
ea4bbcf6ee
autotest: add test for copter position reset
2021-04-05 00:02:42 +10:00
Randy Mackay
ab2e429f32
Tools: Copter.fly_square descends more quickly
2021-04-03 12:07:59 +09:00
Randy Mackay
f341429977
Tools: Copter.RTLSpeed gets increased speed tolerance
2021-04-03 12:07:59 +09:00
Randy Mackay
c04f686ce7
Tools: extend copter NavDelay test by 80sec
...
s-curves slows missions slightly
2021-04-03 12:07:59 +09:00
Peter Barker
f0094bac40
autotest: remove copied-in duplicate of pymavlink rotmat
2021-04-03 13:26:06 +11:00
Peter Barker
dfa342a79f
autotest: correct rc-values-good debug
2021-04-03 08:59:14 +11:00
Peter Barker
7d9daccdf7
autotest: fix mavproxy switch test
...
The order in which we fix the environment means that we need to be
listening on the correct port for rc values - so just fix it in the test
2021-04-03 08:58:52 +11:00
Peter Barker
d384ba6585
autotest: increase time permitted for Copter to turn east
...
Sometimes they turn almost 360 which takes a while
2021-04-02 21:29:43 +11:00
Peter Barker
2c6bdd200c
autotest: fix make_safe_filename for Valgrind
...
Valgrind treats this as a format string so the % is bad
2021-04-02 20:51:18 +11:00
Peter Barker
18ded114ae
Tools: param_metadata; stop prettifying XML before emitting
...
indent is not available on our documentation server:
[build_parameters.py]
Traceback (most recent call last):
File "./param_parse.py", line 422, in <module>
do_emit(XmlEmit())
File "./param_parse.py", line 415, in do_emit
emit.close()
File "/home/wiki/build_wiki/ardupilot/Tools/autotest/param_metadata/xmlemit.py
", line 24, in close
etree.indent(self.paramfile)
AttributeError: module 'lxml.etree' has no attribute 'indent'
2021-04-02 14:39:39 +11:00
Peter Barker
cee348d082
Tools: make and declare bisect-helper.py flake8-compliant
2021-04-01 19:11:50 +11:00
Peter Barker
ee79895a4e
Tools: make and declare examples.py flake8-compliant
2021-04-01 19:11:50 +11:00
Peter Barker
79d34b3b64
Tools: make and declare build_binaries.py flake8-compliant
2021-04-01 19:11:50 +11:00
Peter Barker
fff4aa8bde
autotest: increase allowed time for climb_before_turn to get home
2021-04-01 19:11:31 +11:00
Peter Barker
f988064e48
Tools: add a tool to help determine best speedup for autotest
2021-04-01 11:27:17 +11:00
Peter Barker
d2c00f7b26
autotest: ensure RC thread is killed after each run_test
...
Every run_test starts a thread. del is not being called. So clean it
up in the caller
2021-04-01 11:00:54 +11:00
Peter Barker
500679ec5b
autotest: correct creation of default parameters
...
Simulation won't start if nothing is connected to 5760 - so just connect
mavproxy there
2021-03-31 23:29:47 +11:00
Peter Barker
ba972b6b46
autotest: fix --map option
2021-03-31 16:30:25 +11:00
Peter Barker
d621fe0cde
autotest: correct sub gripper mission
...
Ordinarily not run because gripper is disabled
2021-03-31 13:43:31 +11:00
Peter Barker
e8f96efe72
autotest: wait for stats initialisation before rebooting
...
If the RTC time we reset parameters (STAT_RESET) is zero then we reset all parameters.
In SITL we only set that time if we see a GPS due to the AP_RTC RTC_TYPES parameter default bitmask value of 1
So if you reboot SITL fast enough while STAT_RESET is zero you can see that STAT_BOOTCNT does not increase. Easily reproducible in SITL; start with -w and type reboot in several times before SITL sees the GPS come up and you can see STAT_BOOTCNT doesn't increase.
Fix is to ensure STAT_RESET is non-zero before rebooting.
2021-03-31 13:33:39 +11:00
Michelle Rossouw
cd18e16ffb
autotest: added blimp simulator type
2021-03-31 12:27:07 +11:00
Peter Barker
30ebe6cde9
autotest: augment test DO_AUX_FUNCTIION test for FAILED AND DENIED
2021-03-31 11:36:09 +11:00
Peter Barker
b2f47ba367
autotest: add test for auxilliary functions in missions
2021-03-31 11:36:09 +11:00
Peter Barker
b55094fef4
autotest: Test triggering Auxillary Functions via mavlink
2021-03-31 11:36:09 +11:00
Manny Rodriguez
369e11c662
Tools: added name to GIT_Success.txt
...
from tutorial (https://ardupilot.org/dev/docs/git-branch.html ), step #6
2021-03-31 08:28:41 +09:00
Andrew Tridgell
5304dfe213
waf: set NDEBUG define to avoid assert issues
...
this avoids future assert() calls from affecting STM32 HAL_ChibiOS
builds
2021-03-30 11:05:13 +11:00
Peter Barker
7c6f1cd590
Tools: build_autotest.sh: pass in --autotest-server to autotest.py
...
This will tell autotest.py to undertake the steps required for our
autotest server to run correctly
2021-03-26 22:52:35 +11:00
Peter Barker
ef4ebbf126
autotest: add a do-nothing --autotest-server option
...
This option is currently ignored, but if given allows the script to
continue normally.
This allows us to change the autotest server to pass the option in - and
then we can change autotest.py so that unless the option is given we
spit out a help message rather than completely stuff up the user's
development environment
2021-03-26 22:52:35 +11:00
Andrew Tridgell
22c936140e
Tools: removed assert calls
...
these waste flash space and do not do us any good
2021-03-25 14:03:40 +11:00
Peter Barker
e2a350f12e
autotest: reduce race condition in fly_square mission
...
We end up where we started, so when we start to play the mission back we
might immediately be at the first waypoint. That's a problem as we may
never see the NAV_CONTROLLER_OUTPUT mention waypoint 1 and thus we
fail the test
2021-03-25 02:13:44 +11:00
Peter Barker
240e2d6b28
autotest: correct pexpect handling of supplementary programs
2021-03-24 23:10:27 +11:00
Peter Barker
ae7b21843e
autotest: remove useless mavproxy set heartbeat directive
...
This has never actually worked:
2021-03-24T04:53:03.7594996Z AT-0040.3: Starting MAVProxy
2021-03-24T04:53:03.7595674Z PYTHONPATH: /__w/ardupilot/ardupilot/Tools/mavproxy_modules
2021-03-24T04:53:05.8106006Z Running: "mavproxy.py" "--master" "tcp:127.0.0.1:5762" "--aircraft" "test.ArduCopter" "--sitl=127.0.0.1:5502" "--streamrate=5" "--cmd="set heartbeat 8"" "--target-system=1" "--target-component=1" "--quadcopter" "--default-modules" "misc,terrain,wp,rally,fence,param,arm,mode,rc,cmdlong,output"
2021-03-24T04:53:05.8108569Z ERROR LOADING MAVNATIVE - falling back to python implementation
2021-03-24T04:53:05.8109340Z Connect tcp:127.0.0.1:5762 source_system=255
2021-03-24T04:53:05.8109962Z no script test.ArduCopter/mavinit.scr
2021-03-24T04:53:05.8110739Z Unknown command '"set heartbeat 8"'
2021-03-24 23:10:06 +11:00
Peter Barker
8bf1ac0347
autotest: fix and tidy the log download test
...
We were requesting past the end of the file
2021-03-24 14:46:48 +11:00
Peter Barker
fdbbcaa506
autotest: bump default speedups for several vehicles
...
These tests seem to run stabley on my box with essentially no speedup
limit
2021-03-24 14:46:48 +11:00
Peter Barker
6f2de67ead
autotest: augment delay_sim_time debug
2021-03-24 14:46:48 +11:00
Peter Barker
d9501766c7
autotest: augment delay_sim_time debug
2021-03-24 08:57:03 +11:00
Peter Barker
3035f8dea3
Tools: fix decode_watchdog display of LR,FA and FICSR
2021-03-23 22:49:14 +11:00
Peter Barker
9f15689850
autotest: wait longer for prearm failure in IE24 autotest
...
we only emit prearm failures every 30 seconds - we just weren't waiting
long enough here
2021-03-23 20:34:47 +11:00
Andrew Tridgell
188e3d6974
AP_Bootloader: save some flash space
...
gets our largest F4 bootloaders under 16k again
2021-03-23 12:01:20 +11:00
Andrew Tridgell
5b7723d3d0
Tools: make configure_all.py smarter about AP_Periph builds
2021-03-23 12:01:20 +11:00
Andrew Tridgell
3590fe36e8
AP_Bootloader: support dual CAN
2021-03-23 12:01:20 +11:00
Andrew Tridgell
ef16eb56bb
AP_Periph: support CAN redundancy
...
send and recv on multiple CAN interfaces
2021-03-23 12:01:20 +11:00
Andrew Tridgell
50d5fced54
AP_Periph: fixed ESC output
...
should be range, not angle
2021-03-23 12:01:20 +11:00
Andrew Tridgell
dda69bfcb0
AP_Periph: added ESC_PWM_TYPE
...
this allows for oneshot and dshot on AP_Periph ESCs
2021-03-23 12:01:20 +11:00
Andrew Tridgell
af64b86c9e
AP_Bootloader: support STM32G4
2021-03-23 12:01:20 +11:00
Peter Barker
073a9e3390
autotest: fix frsky passthrough test
...
Mainly through polling much faster, but also allowing for statustexts in
different orders from frsky/statustext
2021-03-22 18:08:44 +11:00
WillyZehnder
9a8a20f1d2
Tools: environment_install: support Mint 20.1 Ulyssa
...
Support for Linux Mint 20.1 Ulyssa (currently last version)
based on Ubuntu 20.04 Focal implemented
2021-03-20 10:02:56 +11:00
Michael du Breuil
9abf91c86e
AP_Periph: Allow skipping the BatteryInfo model_name
...
This saves a shocking amount of bandwidth. On a CubeOrange-periph
build sending just baro data and 2 battery info's this results in 25%
less bandwidth being used. (Also given that we still have a instance id,
and can get the CAN node's descriptor in the general case this is not
costing us any information).
2021-03-19 17:35:54 +11:00
Peter Barker
e567cca230
autotest: drain mav before receiving system_time in get_sim_time
2021-03-19 09:46:45 +11:00
Peter Barker
8901efd69d
autotest: start and stop MAVProxy for alttype and surface tracking tests
...
autotest doesn't currently supply terrain tiles, so MAVProxy must be
started
2021-03-19 09:46:45 +11:00
Peter Barker
19e5351631
autotest: start and stop mavproxy for setpoint tests
...
These work in terrain frame - but autotest won't satisfy terrain
requests yet
2021-03-19 09:46:45 +11:00
Peter Barker
462ac255a3
autotest: start MAVProxy only as needed for testing
2021-03-19 09:46:45 +11:00
Peter Barker
4269cf52a2
autotest: split application of default parameters and defaultfile parameters
...
ensures all vehicles have LOG_DISARMED
2021-03-19 09:46:45 +11:00
Peter Barker
37efb1cbeb
autotest: Copter sim passes default file instead of setting parms
...
We're now waiting for the vehicle simulation to provide us a heartbeat
for a non-generic frame before considering it good to fly.
Unfortunately, Copter relies on the parameter file to tell it which
frame to use - and we don't apply parameters from parameter files until
after we've checked the heartbeat.
Passing the file into ArduPilot on the commandline means we don't have
this problem.
2021-03-19 09:46:45 +11:00
Peter Barker
dbee2e5d71
autotest: ignore type=0 heartbeat packets on SITL start
...
Until ArduCopter allocates its motors backend we emit a generic type,
for which there is no mode map in pymavlink.
So don't consider the reboot complete until we see a valid heartbeat.
2021-03-19 09:46:45 +11:00
yaapu
ec15614e11
Tools:autotest: added frsky passthrough autotest for terrain message frame 0x500B
2021-03-18 21:43:48 +11:00
Pierre Kancir
3f204d976e
Tools: split coverage script for easier update
2021-03-18 21:33:01 +11:00
Peter Barker
120167f799
autotest: fix fly_square mission
...
waypoint doesn't change until mission is running
2021-03-18 17:02:06 +11:00
Peter Barker
42eec13f5e
autotest: adjust CAN test for lack of MAVProxy
2021-03-18 13:50:57 +11:00
Peter Barker
21c124ab47
autotest: tidy set_parameters
...
Remove commented code, add more to the verbose option
2021-03-18 11:29:45 +11:00
Stavros Korokithakis
f6fc6d22da
autotest: Fix the climb-before-turn test
2021-03-18 07:37:21 +11:00
Pierre Kancir
311a4ed0c7
Tools: correct package_is_installed check
2021-03-17 21:32:30 +11:00
Pierre Kancir
881e42c337
Tools: Give a better chance on default install to get the right package version
2021-03-17 21:32:30 +11:00
roger
b02f868793
Tools: make build installation script compatible with most Linux distros
...
Signed-off-by: <73884126+ardugitter@users.noreply.github.com>
2021-03-17 21:32:30 +11:00
Samuel Tabor
36428f5074
Tools: Handle repeated add-param-file arguments to sim_vehicle.py.
2021-03-17 19:43:03 +11:00
Pierre Kancir
ebe841ba70
Tools: param_parse: validate empty description and fields
2021-03-17 18:54:53 +11:00
Kawamura
15421c16d1
Tools: add psutil for kill_tasks_psutil in sim_vehicle.py
2021-03-17 18:52:22 +11:00
Peter Barker
da52e5d08c
autotest: set SYSID_MYGCS in tests which need it
...
This was still relying on heartbeats coming from MAVProxy. As speedup
increased those heartbeats may not come fast enough - and they really
should be coming from autotest as that's who's doing the commanding.
autotest: set SYSID_MYGCS in AFS test
autotest: set SYSID_MYGCS before setGCSfailsafe
2021-03-17 16:02:45 +11:00
Peter Barker
216140b58d
autotest: remove un-needed portion of reset_delay_item
...
Looks like this function evolved and this appendix remained
2021-03-17 14:17:39 +11:00
Lava Chemist
35815a5130
Tools: build_binaries.py : Add FlywooF745
2021-03-17 09:20:04 +11:00
Peter Barker
f7d8994ce1
autotest: move assert_mission_count up, use it
2021-03-17 00:23:05 +11:00
Peter Barker
30c9d4bcf4
autotest: remove pointless loiter switch
2021-03-16 23:33:51 +11:00
Peter Barker
0c7f3d20a4
autotest: fix attitude test
...
autotest: add a get_messages_frame method
Attempts to get a set of messages as close as reasonable in time.
2021-03-16 14:19:44 +11:00
Stavros Korokithakis
29043d62e9
Add FLIGHT_OPTION to climb before RTL
2021-03-16 11:58:47 +11:00
Lava Chemist
e614c9eeb2
Tools: add bootloader and board types
2021-03-16 11:27:23 +11:00
Peter Barker
4b3adb806c
autotest: add test for tailsitter throttle
2021-03-16 10:41:44 +11:00
Hwurzburg
d15e01d390
Plane: fix DO_CHANGE_SPEED airspeed to impact only AUTO and GUIDED modes
2021-03-16 10:09:34 +11:00
Peter Barker
eb702b0f82
Tools: add support for ATTITUDE_QUATERNION
2021-03-13 09:44:12 +11:00
Peter Barker
0414929310
autotest: fix Heli spline waypoint test
...
Mission isn't round-tripped so make it non-strict
2021-03-13 09:35:22 +11:00
yaapu
3bfa07d35a
Tools:autotest, frsky passthrough fix for long status text message test
2021-03-13 00:14:27 +11:00
bugobliterator
5074b6d336
autotest: add test case for GPS ordering
...
also fix flake8 issues
2021-03-12 16:32:36 +09:00
bugobliterator
48277b43e4
Tools: add autotest for checking GPS ordering
2021-03-12 16:32:36 +09:00
Siddharth Purohit
5657dad3e6
Replay: move underscore one layer down for GPS
2021-03-12 16:32:36 +09:00
Siddharth Purohit
a1a41bb47a
AP_Periph: move underscore one layer down for GPS
2021-03-12 16:32:36 +09:00
Michael du Breuil
06a40da355
AP_Periph: Send ardupilot.gnss.Status
2021-03-12 09:39:55 +11:00
Peter Barker
f78d7c3b25
autotest: add option to not check current wp after set_current_wp
...
Sometimes a waypoint is set which we'll never emit as our current
waypoint (e.g. a JUMP)
2021-03-10 09:12:39 +11:00
Peter Barker
4a251bebbd
autotest: fix fly_home_land_and_disarm; wp 7 is never current wp
...
This is never a current waypoint, so we can't wait for it
2021-03-10 09:12:39 +11:00
Peter Barker
3ddffdab9b
autotest: correct wait_current_waypoint timeout behaviour
2021-03-10 09:12:39 +11:00
Randy Mackay
78ddd0512c
Tools: autotest for copter spelling fix
2021-03-09 11:49:42 +11:00
Randy Mackay
4abae23306
Tools: disable QuadPlane.GyroFFT autotest
2021-03-08 08:52:05 +09:00
Peter Barker
bdeadce95b
autotest: improve deadreckoning test
...
autotest: use location_offset rather than coordinates in Deadreckoning test
2021-03-05 21:34:58 +11:00
Peter Barker
425ab1358a
autotest: tidy streamrate handling
...
Stop setting MAVProxy stream rates; these are neither here-nor-there now as MAVProxy will only modify its own connection's streamrates now
Stop doing the set-streamrate dance to work around MAVProxy's
set_streamrate algorithms.
Remove useless and misleading set of streamrate in Plane test; we reset
streamrates on the reboot immediately following this set. Considering
the streamrate was never eset this was a good thing.
2021-03-05 21:34:58 +11:00
James O'Shannessy
bcc0da9c47
AutoTest: Adds additional autotests to capture mode change while breached
...
AutoTest: Adds test for fence breach switching to guided mode when no fence return point is present. In upstream, this results in a vehicle fly-away.
2021-03-05 14:52:46 +11:00
James O'Shannessy
269fa5cbe2
AutoTest: Copter remove FENCE_AUTOENABLE tests
...
Addresses comments made in review, removes the FENCE_AUTOENABLE param for copter.
No param means no tests required.
2021-03-05 14:52:46 +11:00
James O'Shannessy
dac5996d93
AutoTest: Fix autotest conflicts after rebase on upstream
2021-03-05 14:52:46 +11:00
James O'Shannessy
e16bbe6e18
AutoTest: Ensure fence state is disabled at end of test
...
This appears to be another case of the fence state carrying over from one test to another. Disabling the fence at the end of the test appears to have fixed this problem
2021-03-05 14:52:46 +11:00
James O'Shannessy
31462418c6
AutoTest: Ensure Copter can RTL and Land even when Fence Floor has not been auto disabled
2021-03-05 14:52:46 +11:00
James O'Shannessy
fa7be629e5
AutoTest: Make fence tests flake8 compliant
2021-03-05 14:52:46 +11:00
James O'Shannessy
01b27bdb61
AutoTest: revert change that breaks quadplane
2021-03-05 14:52:46 +11:00
James O'Shannessy
2353b55452
AutoTest: Address race conditions in changes to fence tests
2021-03-05 14:52:46 +11:00
James O'Shannessy
76a2a76b54
AutotTest: Adds autotests for Plane to test RetRally flag added to AC_Fence
2021-03-05 14:52:46 +11:00
James O'Shannessy
8545715837
AutoTest: Add Static Fence Tests for unallowed arming when breaching geofence
2021-03-05 14:52:46 +11:00
James O'Shannessy
6f7ba3b037
AutoTest: Ensure fence is disabled at end of throttle_failsafe_fence test
2021-03-05 14:52:46 +11:00
James O'Shannessy
6251b6eead
AutoTest: Rebase and carry across changes from autotest
2021-03-05 14:52:46 +11:00
James O'Shannessy
b2346ef6df
AutoTest: Adds additional tests to ArduCopter to test autoenable and floor
...
Adds tests for:
* Testing auto-enable disabled (when no autoenabling of the fence is required)
* Test auto-enabled always after takeoff (when takeoff complete condition met)
* Test auto-enabled disable floor only (when land sequence begins)
* Test auto- on arm/disarm (when vehicle is armed/disarmed)
* Tests ability to land when fence is breached
2021-03-05 14:52:46 +11:00
Dr.-Ing. Amilcar do Carmo Lucas
dd5ede0fe0
autotest: small comment improvements
2021-03-05 14:52:46 +11:00
James O'Shannessy
bbd606b8b5
AutoTest: Corrections to autotests
2021-03-05 14:52:46 +11:00
James O'Shannessy
a3efc9ad98
AutoTest: Fix MAVlite test allowing plane fence to be enabled
2021-03-05 14:52:46 +11:00
James O'Shannessy
47e76a1807
AutoTest: Move fence enable/disable to common location
2021-03-05 14:52:46 +11:00
Dr.-Ing. Amilcar do Carmo Lucas
528defd560
Autotest: activate the fence via a mavlink command
...
This should not be required in the future, please fix this and revert this commit
2021-03-05 14:52:46 +11:00
Dr.-Ing. Amilcar do Carmo Lucas
8d8753b14c
Autotest: fix two copter tests after parameter rename
...
I'm not sure if a better fix would be to remove the set_parameter() call
2021-03-05 14:52:46 +11:00
James O'Shannessy
215901be30
Autotest: Correct the logic for fence based autotest functions
...
Adds corrections to enabling fence using aux function.
Correctly test fences statically. Only uploaded fences can be checked using a fence file, so we check those first. Then we add steps to check tin can, max and minm all set the fence as present, as expected.
Plane will support MAV_PROTOCOL_CAPABILITY_MISSION_FENCE, so we assert that it does support it.
To test ceiling and floor, leverage some existing functions for takeoff, change altitude and land. Check for respective breach.
Add a floor breach check to copter.
2021-03-05 14:52:46 +11:00
James O'Shannessy
1a3e168ced
Autotest: Fence is present, but test looking for not present
...
Autotest: Remove ties to mavlink FENCE_ACTION
Autotest: Add ArduPlane autotest to test ceiling and floor
Adds a test to ensure the vehicle reverts to RTL when breaching a ceiling or floor.
Autotest: Progress the test once we reach takeoff complete and fence enable
Autotest: Use RC_OPTION for Aux Switch functionality
Autotest: Enable fence last
2021-03-05 14:52:46 +11:00
Paul Riseborough
d52594c576
Tools: Fix set_home autotest
...
Don't try to get home until EKF has passed alignment and GPs checks.
Use a more realistic lat/lon offset threshold
2021-03-05 12:10:01 +11:00
Paul Riseborough
0a052d20ea
Tools: Add handling for default airspeed variance
2021-03-05 12:10:01 +11:00
Randy Mackay
0a08793b7d
Tools: Holybro S500 param file
2021-03-04 14:27:20 +09:00
Peter Barker
4aed767fe9
autotest: add test for MAV_CMD_DO_SET_MISSION_CURRENT
2021-03-04 11:59:33 +11:00
Pierre Kancir
52c5a7c417
Tools: add pretty diff size script
2021-03-03 18:56:55 +11:00
Peter Barker
a235246628
autotest: correct units in new AHRS2 test
2021-03-03 18:41:14 +11:00
Pierre Kancir
ecc89411f9
Tools: put UART_chargen in skip list
2021-03-03 18:07:38 +11:00
Pierre Kancir
7a5a7b1eb5
CI: add examples test
2021-03-03 18:07:38 +11:00
Andy Piper
46c5d72166
Tools: add bdshot bootloaders for CubeYellow and mRoControlZeroH7
2021-03-03 18:02:26 +11:00
Peter Barker
b3ee5d5f59
autotest: increase verbosity in AHRS2 test
2021-03-03 16:29:33 +11:00
Peter Barker
5a49d98555
Tools: have decode_watchdog try to decode from .log dataflash dumps
2021-03-03 13:38:12 +11:00
Randy Mackay
a35a7e1523
Tools: autotest manual control test requires 12 deg
...
adjusted down because of lower default angle_max
2021-03-03 08:03:39 +09:00
Peter Barker
317181922c
autotest: ensure we're getting vaguely sane data in AHRS2 message
2021-03-02 20:48:36 +11:00
Peter Barker
cc83562add
autotest: tidy fence handling
2021-03-02 16:54:06 +11:00
Peter Barker
b2d4cefa85
autotest: change heli default RPM type to 10
...
Change default to SITL
2021-03-02 15:41:44 +11:00
Peter Barker
4d2cf8c95b
AP_Frsky_SPort: correct handling of RPM sensor data
...
Nails support down to just two RPM sensors for the time being.
Simplifies things (there was an issue here when I corrected RPM-in-SITL)
2021-03-02 15:41:44 +11:00
Peter Barker
eb499ff731
autotest: improve frsky SPort test
...
- reduces verbosity as we only check the remaining items when new data
received
- reduces repoll interval and explains why we need to re-poll
2021-03-02 15:41:44 +11:00
Peter Barker
7b251b6fd4
autotest: add diagnostics for frsky tests
2021-03-02 15:41:44 +11:00
Peter Barker
2671a2f71f
autotest: fix up FRSky tests for running under Valgrind
2021-03-02 15:41:44 +11:00
Peter Barker
360512f6b0
autotest: preserve commandline customisations on reboot under valgrind
2021-03-02 15:41:44 +11:00
Peter Barker
fc9a93ba67
autotest: stop using mavproxy for clearing missions
2021-03-02 14:24:36 +11:00
Peter Barker
97e2596bf8
autotest: stop clearing mission at start of test
...
These are implicitly cleared by the framework
2021-03-02 14:24:36 +11:00
Peter Barker
973510a4ff
autotest: push context after customising cmdline
...
doing things in the other order causes problems when running the
complete suite
2021-03-02 14:24:36 +11:00
Peter Barker
5d1e105534
autotest: allow more time for mission upload and download
...
We upload some rather large missions....
2021-03-02 14:24:36 +11:00
Peter Barker
10007e2e42
autotest: load missions natively rather than using MAVProxy
2021-03-02 14:24:36 +11:00
Peter Barker
993d87469c
autotest: move mission upload functions from rover to common
2021-03-02 14:24:36 +11:00
Peter Barker
34a52e9cfe
autotest: use wait_statustext in place of mavproxy.expect for autorotate test
2021-03-02 13:34:09 +11:00
Rishabh
6e2339d2d6
Tools: default parameters for Hexsoon TD-650
2021-03-02 10:13:51 +09:00
Peter Barker
0daa1a63d3
autotest: remove pointless fetch_parameters call
...
And the entire method, replace with equivalent test
2021-03-01 17:27:52 +11:00
nkruzan
3e0f9ab4e7
Tools:autotest\common.py fix text typo
2021-03-01 15:15:38 +11:00
Peter Barker
61138f342a
autotest: do not time out receiving of heartbeat if running gdb
...
pausing indefinitely when running GDB is OK.
2021-03-01 13:44:23 +11:00
Peter Barker
1f47698076
autotest: use change_mode in place of mavproxy.send
2021-03-01 13:10:09 +11:00
Andrew Tridgell
97e7b48ca1
Tools: rebuild DrotekP3Pro bootloader
2021-02-28 17:24:25 +11:00
Andrew Tridgell
0528414a9c
AP_Bootloader: limit the 1M flash check to the F427
...
this fixes an issue with the DrotekP3Pro which uses the STM32F469
2021-02-28 17:24:25 +11:00
Andrew Tridgell
b137f9e319
waf: fixed embed error on python2
2021-02-26 10:59:09 +11:00
bugobliterator
6d25b02508
waf: need to crc the padded bootloaders before embedding
2021-02-26 10:59:09 +11:00
Peter Barker
d3b3c443bc
autotest: reset copter completely after autotune test
2021-02-25 10:49:58 +11:00
Andrew Tridgell
98abe125ad
Tools: rebuild IO firmware
...
we now have enough memory again
2021-02-24 18:21:08 +11:00
Peter Barker
013415eb31
autotest: make and mark arducopter.py as flake8-compliant
2021-02-24 15:10:10 +11:00
Andrew Tridgell
b012c472e1
waf: added crc to embedded data
2021-02-23 20:20:07 +11:00
Peter Barker
79f21ed639
autotest: add test for GSF logging
2021-02-23 12:36:33 +11:00
Peter Barker
9d681eecc4
autotest: move to state outside when we leave log structure
...
No vertical whitespace allowed in the structures...
We concatenate all of the LogStructure files; without this we remain in
state_inside and try to parse every line in the concatenation as if it
were a log structure definition
2021-02-23 12:36:33 +11:00
Andrew Tridgell
20da92c8a1
Tools: revert IO firmware
...
this is a temporary fix until the full cause of the IOMCU issue is
found
2021-02-22 19:52:05 +11:00
Peter Barker
4d9cfdaaa8
Vagrant: create a bionic64-desktop VM
...
The focal-desktop appears to have a problem where directories are
considered to be in-use when being deleted. Not reproduced by me, but
reliably by a Windows user.
2021-02-22 15:00:38 +11:00
Andy Piper
fa1bed9735
Tools: rebuild iomcu firmware
2021-02-22 07:07:43 +11:00
Peter Barker
44ec74030e
autotest: recover from flip in althold to remove stabilise throttle problem
2021-02-21 23:11:26 +11:00
Peter Barker
a4a5d52c35
autotest: extend time allowed for RTL for simplemode test
2021-02-21 22:45:06 +11:00
Peter Barker
9120882e9e
autotest: print name of open dataflash log when test exception caught
...
The stack trace is already extremely useful... but mapping back to the
relevant dataflash log is a bit of a pain.
Adding more stuff to this method in the future might be good, too.
2021-02-21 21:35:35 +11:00