Commit Graph

6015 Commits

Author SHA1 Message Date
Peter Barker
0b517cfc57 autotest: start GDB in tui mode by default 2021-06-10 20:52:48 +10:00
Tom Pittenger
4d0f5a1db6 AP_Periph: add support for multiple protocols on AP_Periph 2021-06-09 18:36:18 +10:00
Tom Pittenger
8ada37edb8 AP_Periph: add support for MPPT Battery driver 2021-06-09 18:36:18 +10:00
Peter Barker
fd792bebf8 autotest: wipe SITL state after temperature cal test
ArduPilot internals are fiddling state that the autotest suite is
unaware of, so wipe the eeprom after the test
2021-06-09 14:14:06 +10:00
Peter Barker
79de738266 autotest: wait for a few seconds for arm-failure messages to appear
If prearms never come true then we try to arm the vehicle so it tells us
what is wrong.  Since we no longer push statustexts hard, we have to
wait for the reasons to come out at normal clocked rates.
2021-06-09 14:13:54 +10:00
Peter Barker
6af6d2fc2a autotest: add a progress message for looking for a message in a log 2021-06-09 14:13:31 +10:00
Peter Barker
6944ef6af1 autotest: fly each working Helicopter frame 2021-06-09 12:15:42 +10:00
Randy Mackay
058d4299ad Tools: update SITL tri and hexa gains 2021-06-08 19:11:32 +10:00
Andrew Tridgell
3be7f1ae23 autotest: removed tri from doesn't fly list 2021-06-08 19:11:32 +10:00
Andrew Tridgell
0876cb9cd6 autotest: fixed defaults for tricopter 2021-06-08 19:11:32 +10:00
arsh
45f1d03bda autotest:Copter test fix for some frames
removed some lines

Whitespace messages removal
2021-06-08 16:50:37 +10:00
Peter Barker
31c345fc4b Tools: add support for AP_Logger into AP_Periph 2021-06-08 09:57:55 +10:00
Peter Barker
0bd9610687 autotest: add trivial test for BodyFrameOdom 2021-06-04 15:09:51 +10:00
Peter Barker
584e24d613 Tools: build mRoControlZeroClassic and mRoControlZeroH7{,-bdshot} on build server 2021-06-04 14:39:56 +10:00
Randy Mackay
e8947dfb47 Tools: reduce copter autotest rate yaw P and I gains
affects quad, hexa, octa, octa-quad, deca, tri, y6, dodeca-hexa
2021-06-03 12:20:43 +09:00
yaapu
b14dcf1df5 Tools:autotest: updated FRSky SPort test to use new 2 byte data IDs 2021-06-02 17:33:15 +10:00
Pierre Kancir
cf350a52e9 Tools: Autotest: add --coverage option 2021-06-02 14:42:59 +10:00
Pierre Kancir
870eaac839 Tools: correct some coverage utilities 2021-06-02 14:42:59 +10:00
Pierre Kancir
d1cc8d2bf3 Waf: add coverage flags 2021-06-02 14:42:59 +10:00
Andrew Tridgell
3a1d2f1852 Replay: remove takeoff/touchdown event handling 2021-06-02 11:13:16 +09:00
Peter Barker
2439587c5a autotest: add tests for ground effect compensation active in EKF 2021-06-02 11:13:16 +09:00
Peter Barker
8925c2830b autotest: check fence upload/download when creating from locs 2021-06-01 15:54:59 +10:00
James O'Shannessy
819bb2938b AP_Periph: Correctly report Temperature to UAVCAN 2021-06-01 12:35:24 +10:00
Peter Barker
c1a20ceab4 autotest: add test to catch bug with opticalflow if no rangefinder 2021-06-01 11:31:42 +10:00
Randy Mackay
26ea80fc62 Tools: update default params for copter-optflow.parm 2021-06-01 09:57:16 +10:00
Andrew Tridgell
f3cc661ebd Tools: added HolybroGPS to autobuild 2021-06-01 09:19:51 +10:00
Andrew Tridgell
b8f3a0f83b Tools: added HolybroGPS bootloader 2021-06-01 09:19:51 +10:00
Andrew Tridgell
b6543e7a85 AP_Bootloader: added Holybro GPS board type 2021-06-01 09:19:51 +10:00
Hwurzburg
4335951c42 Tools: remove % as units on params that are unitless 2021-05-30 22:38:27 -07:00
James Harton
be3cc1b679 Docs: Change all references from dev.ardupilot.org to the appropriate documentation URLs. 2021-05-31 12:20:45 +10:00
bugobliterator
3390167753 AP_Periph: use AP_Notify enum for ToneAlarm types 2021-05-31 07:34:02 +10:00
Michael Oborne
126456742a Hwdef: add Joey 2021-05-27 14:19:55 +10:00
Andrew Tridgell
e7ca9d8e83 Tools: rebuild Pix32v5 bootloader
with right case
2021-05-27 09:30:30 +09:00
Pierre Kancir
7e389afbec Tools: allow to build examples and tests with debug 2021-05-26 18:46:03 +10:00
Pierre Kancir
58358d9f97 Tools: correct arguments passing on autotest.py 2021-05-26 18:46:03 +10:00
bugobliterator
d00f75203c Tools: add omnibusf4pro-one to build_ci to check single gps/compass build 2021-05-26 18:30:45 +10:00
Siddharth Purohit
a6f00e4f80 Tools: increase serial timeout to 2s from 1s in uploader script 2021-05-26 18:25:01 +10:00
Siddharth Purohit
cab86b7b78 bootloaders: rebuild CubeBlack_bl and CubeOrange_bl 2021-05-26 17:26:05 +10:00
bugobliterator
23757c249e AP_Bootloader: free few bytes of flash as bootloader build overflew on devices with 16k flash 2021-05-26 17:26:05 +10:00
Peter Barker
8e61de37be Tools: board_types.txt: reallocate 1033 to Joey, take 1034 for SeriphGPS 2021-05-26 16:32:47 +10:00
Leonard Hall
1326dbe2ee AutoTest: Sub: Add appropriate pid parameters for highly damped system 2021-05-24 20:13:37 +10:00
Leonard Hall
41c437b768 AutoTest: Copter: fly_poshold_takeoff increase acceptable range 2021-05-24 20:13:37 +10:00
Peter Barker
0d05bb9732 Revert "waf: list boards 1/line in case of board-not-found error"
This reverts commit 8ab74d9462.

This broke the build server which parses the output of this
2021-05-21 10:59:56 +10:00
Peter Barker
e46969957a Tools: rename f103-periph/hwdef.dat to .inc (f303 too) 2021-05-20 17:23:17 +10:00
Pierre Kancir
458b6084fa Tools: don't make report test failure on coverage 2021-05-20 14:54:47 +10:00
Pierre Kancir
fae2834341 Tools: update coverage script to python 2021-05-20 14:54:47 +10:00
Pierre Kancir
b9f55ba864 Tools: remove update-coverage.sh script 2021-05-20 14:54:47 +10:00
Pierre Kancir
109847c96d Tools: use getopts on run-coverage and factorize code 2021-05-20 14:54:47 +10:00
Pierre Kancir
255cabc9db Tools: remove more path from coverage 2021-05-20 14:54:47 +10:00
Peter Barker
2109fae56a Tools: reserve a board ID for SierraF9PGPS 2021-05-20 14:17:45 +10:00
Siddharth Purohit
5a33100e91 Revert "bootloaders: rebuild bootloaders"
This reverts commit 4b2552b32b.
2021-05-20 09:35:01 +10:00
Peter Barker
98753ec6dc Tools: move from HAL_NO_LOGGING to HAL_LOGGING_ENABLED 2021-05-19 17:38:47 +10:00
Peter Barker
8a3a609e3b Tools: add can_sitl_nodev.sh which doesn't require a (e.g.) babel to run 2021-05-18 17:59:30 +10:00
Peter Barker
c7a9fb3c9c autotest: retry dynamic notches 8 times before failing
This test is flapping.

This is a poor - but serviceable - workaround.
2021-05-18 11:13:10 +10:00
Peter Barker
8ab74d9462 waf: list boards 1/line in case of board-not-found error
This line is now way too long, and splitting it this way will allow the
output to be grepped for likely-looking board names.
2021-05-18 10:47:37 +10:00
Andy Piper
1eb4f478da bootloaders: update KakuteF4 and KakuteF4Mini bootloaders for buzzer startup and board id 2021-05-18 10:02:36 +10:00
Peter Barker
0a06a9e446 param_metadata: reinstance @Values/@Bitmask magic for excluding params from vehicle output 2021-05-17 10:18:35 +10:00
Peter Barker
eb2b1b3231 Tools: param_meteadata: correct @Values{Plane} etc handling 2021-05-17 10:18:35 +10:00
liang
891cc94577 AP_Bootloader: check VBUS for fast boot 2021-05-14 15:48:30 -07:00
Peter Barker
3eb164fb6a autotest: move script helper functions from rover to common 2021-05-14 13:21:36 +10:00
Peter Barker
3d562046da autotest: add accuracy option to guided_achieve_heading 2021-05-14 13:21:36 +10:00
climr
b46f621fc6 AP_HAL_ChibiOS: add two new horizon31.com boards
PixC4-Pi and PixC4-Jetson
2021-05-14 12:04:29 +10:00
Peter Barker
c18c4ad6ec Tools: param_metadata: remove use of dirname when creating Vehicle
So a Vehicle object takes a truename - i.e. Copter, not ArduCopter, but
can also take a "reference", which is used for e.g. constructing RST
tags.
2021-05-13 21:09:45 +10:00
Peter Barker
3ea9307419 Tools: param_metadata: flake8 cleanliness 2021-05-13 21:09:45 +10:00
Peter Barker
1123de112c Tools: param_metadata: tidy finding of Vehicle parameter file 2021-05-13 21:09:45 +10:00
Peter Barker
97e57932c4 Tools: param_metadata: remove more multi-vehicle support
This script hasn't supported emitting multiple vehicles for a very long
time, but this was enforced using a check and we kept a list of vehicles
around for no very good reason.
2021-05-13 21:09:45 +10:00
Stephen Dade
ab9a221f2e Tools: Update Cygwin environment install for Python 3.7 2021-05-13 06:38:33 +10:00
Andy Piper
1700ab814e AP_Bootloader: change id to AP range 2021-05-12 17:26:35 +10:00
Andy Piper
319a6404c4 Tools: add KakuteF4Mini to board types and scripts 2021-05-12 17:26:35 +10:00
Andy Piper
43ea90f264 Tools: KakuteF4Mini bootloader 2021-05-12 17:26:35 +10:00
bugobliterator
4b2552b32b bootloaders: rebuild bootloaders 2021-05-12 17:21:14 +10:00
bugobliterator
3edf26dff9 Bootloader: complete GET_DEVICE commands before allowing timeout reset 2021-05-12 17:21:14 +10:00
Andy Piper
2df7b5453e autotest: add test for ESC telemetry driven notches. 2021-05-12 17:01:11 +10:00
Peter Barker
d2f78c69be autotest: add a simple test for SMART_RTL 2021-05-12 13:01:50 +10:00
Peter Barker
9965f1a31d autotest: add some helpers for local-position movement 2021-05-12 13:01:50 +10:00
Peter Barker
7ab094f3a1 autotest: tidy fly_guided_move_local 2021-05-12 13:01:50 +10:00
Peter Barker
1d6efbd56f autotest: fix loiter_to_ne
Co-Authored-By: leonardthall@gmail.com
2021-05-11 14:51:28 +10:00
TunaLobster
19c7e349f9 Tools: Add cygwin package to env install scripts for SITL binaries 2021-05-11 10:39:12 +09:00
Andrew Tridgell
8bad533a8e Tools: build FreeflyRTK in CI
this is our only F732 build
2021-05-09 06:44:19 +10:00
Andrew Tridgell
03132c378d Tools: added FreeflyRTK bootloaders 2021-05-09 06:44:19 +10:00
Andrew Tridgell
c5182e6c16 Tools: auto-build FreeflyRTK 2021-05-09 06:44:19 +10:00
Andrew Tridgell
a23e821f94 AP_Periph: allow safety LED as backup main LED for DNA 2021-05-09 06:44:19 +10:00
Andrew Tridgell
efe8042fbe AP_Periph: allow for reboot while in DNA 2021-05-09 06:44:19 +10:00
Andrew Tridgell
724cea2b0d AP_Periph: allow build with no PWM to allow for notify 2021-05-09 06:44:19 +10:00
Andrew Tridgell
44eadb7291 AP_Bootloader: added FreeflyRTK board type 2021-05-09 06:44:19 +10:00
Peter Barker
04aed49572 autotest: adjust GyroFFT threshold to make it pass
From Andy:

Can you make this 0. The test should then pass. I'm not terribly happy about it but its better than disabling the test and I can't tell whether there is actually a problem or not.
2021-05-07 18:30:08 +10:00
Peter Barker
0a235ce094 autotest: remove retry loop from within GyroFFT
This effectively removes an infinite loop from the GyroFFT test.
2021-05-07 18:30:08 +10:00
Peter Barker
765889b827 autotest: don't send statustext during exception
During an exception we don't want to be trying to print these
2021-05-07 14:21:44 +10:00
Peter Barker
f78cf73726 autotest: don't fail completely if ArduPilot process dies 2021-05-07 12:22:11 +10:00
Peter Barker
b04dfda9fb autotest: enable deca and dodeca frames in FlyEachFrame test 2021-05-06 16:26:28 +10:00
Peter Barker
cf4acaa2aa autotest: re-enable quadplane QAutoTune test 2021-05-05 23:43:59 +10:00
Andy Piper
2b327af79b AP_Periph: use tone alarm types 2021-05-05 17:41:24 +10:00
James O'Shannessy
bc38d8a78c AutoTest: Fix autotest from failing due to state from earlier test
Autotest was failing because there was an expectation that the plane would fly relatively north from the takeoff point.
This assumption may not be true. We work around it by using a tin can instead of an exclusion polygon so that we breach no matter the direction we fly.
2021-05-05 10:59:10 +10:00
James O'Shannessy
0e656c1504 AutoTest: Ensure Plane uses home as Fence Return Point if one is not present and no exclusion fence is present 2021-05-05 10:59:10 +10:00
Peter Barker
9a13b5c9b6 autotest: add test for auxfunc triggering via script 2021-05-05 07:13:18 +10:00
Iampete1
8544d00c97 Tools: rename TURN_MAX_G to ATC_TURN_MAX_G in param sets 2021-05-03 19:22:16 -04:00
Iampete1
aa72b7da46 Tools: autotest: Plane: add loiter terrain following test 2021-05-02 18:51:27 +10:00
Traxius1
619e6cb1b7 Tools: added name to GIT_Success.txt 2021-05-02 09:28:57 +10:00
Peter Barker
57abaf0dec autotest: remove retry loop from within GyroFFTHarmonic 2021-05-01 21:30:28 +10:00
Peter Barker
4928ec18af autotest: remove retry loop from within fly_dynamic_notches
We retried externally to the test - may as well do so within
2021-05-01 21:30:28 +10:00
Peter Barker
8fdfdebe55 autotest: pass sitl_commandline_customised up the context stack
We're running tests on the Callisto frame when we shouldn't in Copter as
the information was lost in nested Contexts.

We can only reset the SITL commandline at an actual Test level - if a
defaults file has been used then it is unclear as to what the state of
any parameter is in storage as we move between contexts
2021-05-01 17:22:36 +10:00
Peter Barker
117a44b589 autotest: remove corefiles at start of run
These lead to false-positive failures in the test suite
2021-05-01 17:22:36 +10:00
Peter Barker
2cd0099bbc autotest: exclude decarotor from fly-each-frame-test 2021-05-01 13:25:13 +10:00
Peter Barker
76678ffaf3 autotest: fix octa-cwx in SITL 2021-05-01 13:25:13 +10:00
Peter Barker
5172e767df autotest: fix octa-dji in SITL 2021-05-01 13:25:13 +10:00
Peter Barker
c7c4c17c68 autotest: improve change_mode debug 2021-05-01 13:25:13 +10:00
Peter Barker
63ba484087 autotest: add test which flies each frame we can 2021-05-01 13:25:13 +10:00
jbarrozo
3b1f5f0b15 autotest: added Boquig 2021-04-29 13:35:22 +10:00
Peter Barker
40a84bc566 Replay: link AP_Avoidance
[864/864] Linking build/bbbmini/tools/Replay
11:47:27 runner ['/usr/lib/ccache/arm-linux-gnueabihf-g++', '-Wl,--gc-sections', '-pthread', 'Tools/Replay/DataFlashFileReader.cpp.34.o', 'Tools/Replay/LR_MsgHandler.cpp.34.o', 'Tools/Replay/LogReader.cpp.34.o', 'Tools/Replay/MsgHandler.cpp.34.o', 'Tools/Replay/Replay.cpp.34.o', '-otools/Replay', '-Wl,-Bstatic', '-Llib', '-lReplay_libs', '-Wl,-Bdynamic', '-lm', '-ldl']
lib/libReplay_libs.a(RC_Channel.cpp.0.o): In function `RC_Channel::do_aux_function_avoid_adsb(RC_Channel::AuxSwitchPos)':
RC_Channel.cpp:(.text._ZN10RC_Channel26do_aux_function_avoid_adsbENS_12AuxSwitchPosE+0x4): undefined reference to `AP::ap_avoidance()'
2021-04-29 13:00:40 +10:00
Vladimir Ermakov
50641e8f7c Tools: add Ubuntu 21.04 to environment setup script
Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
2021-04-29 12:37:03 +10:00
Peter Barker
e4c405b77b autotest: add a test for Spline missions showing terrain requirement 2021-04-28 18:40:26 +10:00
Iampete1
3bea2fd89b Tools: autotest: defualts: setup direct acutated wing servo 2021-04-28 08:22:47 +01:00
Iampete1
0628aa9e29 Tools: autotest: add sailboat autotest 2021-04-28 15:16:35 +10:00
Peter Barker
fc426e01c2 autotest: stop using start_test for things that aren't actually tests
start_test should only be used for top-level tests, not parts of
top-level tests
2021-04-28 13:53:46 +10:00
Peter Barker
6af0f460af autotest: add duplicate-logmessage-field sanity check 2021-04-27 16:38:40 +10:00
Andrew Tridgell
b6fde7ed5a Tools: added can_sitl.sh to make using SITL with real CAN devices easy 2021-04-27 09:01:02 +10:00
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