Commit Graph

9216 Commits

Author SHA1 Message Date
Andrew Tridgell ecec9c47b1 autotest: force use of airspeed in GliderPullup 2024-09-29 11:06:05 +10:00
tompsontan ff29580e05 AP_Bootloader:reserve bd id for X-MAV-AP-H743v2 2024-09-29 09:39:36 +10:00
Bob Long 92c6c22051 Tools: autotest: test ICE max starter retry limit 2024-09-27 16:12:28 +10:00
Peter Barker beb4226740 Plane: add test for MAV_CMD_NAV_LOITER_TO_ALT 2024-09-26 20:23:15 +10:00
Robert Taylor 1dfb0f8042 bootloaders: switch CAN port definiton on Nucleo-496 hwdef
The CAN port as it was is a valid CAN port for the nucleo, but on the development board the CAN silkscreen is actually on PD0 and PD1. This change makes it easier to get the example running on the Nucleo
2024-09-26 08:31:50 +10:00
Henry Wurzburg 1830dd6d75 Tools:clean up displayed text for build options 2024-09-25 23:44:38 +10:00
Peter Barker 01bf3fe6a1 autotest: param_metadata.py: emit bitmask as XML sub-element
make it easy for consumers to get at this data.

leaves the old form, so we don't break older consumers
2024-09-25 23:44:14 +10:00
Andy Piper a8ecc2386e autotest: GainBackoffTakeoff test 2024-09-25 17:13:03 +10:00
Peter Barker c7c95e086c AP_Bootloader: correct definition of function to match declaration
only returns a `uint8_t`
2024-09-25 08:48:44 +10:00
muramura 8f5861283b Replay: The number of elements in a char array can be obtained using SIZEOF 2024-09-25 08:46:36 +10:00
timtuxworth fdbbd320a4 Tools: test use Location::AltFrame for guided_state.target_alt_frame 2024-09-24 22:51:02 +10:00
Peter Barker 24df6f1574 Tools: re-order initialiser lines so -Werror=reorder will work 2024-09-24 22:50:28 +10:00
Alexis Guijarro c058fb0c19 AP_Bootloader: Reserve a board ID for 3DR-ASAUAV 2024-09-24 22:49:04 +10:00
Henry Wurzburg dc0984cd65 AP_Bootloader:reserve bd id for Mugin MUPilot 2024-09-24 12:34:56 +10:00
Peter Barker 29a35baf48 AP_Bootloader: add request to fill gaps rather than add to end
the gap between 7,109 and 10,000 may be useful for reserving a range for some other function in the future.  We have vast numbers of IDs in gaps which should be filled instead.
2024-09-24 11:47:41 +10:00
caijie 1ab778cc6f Tools: add VUAV-V7pro 2024-09-24 10:07:39 +10:00
ARg 04ee66bec4 Tools/environment_install: print how to activate venv if not default 2024-09-23 19:24:33 +10:00
Clyde McQueen 8b37100772 autotest: large outliers in sub terrain test have low sq 2024-09-23 19:14:34 +10:00
muramura cb1a156987 Replay: Declare the type of the loop variable and consolidate the processing 2024-09-21 18:10:12 +10:00
Peter Barker 863c3d3140 Tools: build_options.py: add AP_BATTERY_SUM_ENABLED option 2024-09-21 15:28:42 +10:00
cuav-chen2 29176ebabd Tools: Add in BMM350 Driver 2024-09-21 10:08:36 +10:00
AwkAmr 8f4f20dc32 Tools: added name to GIT_Success.txt
Added name.
2024-09-21 10:07:49 +10:00
Tom Pittenger 810e51be0d AP_Bootloader: reserve new board ID for FlysparkF4 2024-09-21 08:36:58 +10:00
muramura 0e72fc7bd2 Replay: Change NULL to nullptr 2024-09-20 10:38:56 +10:00
muramura 36dcadf652 Replay: Change to a Boolean value 2024-09-20 09:20:12 +10:00
Naveen Kumar 3dea20e5d6 Tools: added name to GIT_Success.txt 2024-09-19 19:10:20 +09:00
Peter Barker 35c25be37e Tools: stop invoking setup.py directly
the command-line interface for setup.py is deprecated

See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html
2024-09-19 11:43:03 +10:00
Peter Barker 69f2d0d0c6 Tools: Replay: fix use-after-free in Replay error path 2024-09-19 11:42:50 +10:00
Peter Barker 35a8a04787 waf: add -Werror=use-after-free to CFLAGS and CXXFLAGS 2024-09-19 11:42:50 +10:00
Peter Barker c6491d6b45 CI: build CubeBlack-EKF2 not CubeOrange-EKF2 in CI
we really just care that EKF2 builds here, the board really isn't that important
2024-09-19 11:42:37 +10:00
Rahul 1038b458b5 Tools: build_options.py: add MLX90614 2024-09-18 19:10:01 +10:00
Tsuyoshi Arakawa 03476704ce Tools: added name to GIT_Success.txt 2024-09-18 08:54:47 +10:00
Ryan Friedman 86f51ee5a4 Tools: Remove bionic support for ubuntu setup
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-09-17 22:11:22 +10:00
Thomas Watson a9ea760cad Tools/ardupilotwaf: improve dronecangen dependency tracking
Have the build depend on the input message definition files and the
generator source code so that the code is regenerated if either change.
2024-09-17 10:45:17 +10:00
Ryan Friedman 0cc07ac1ab AP_DDS: Add test for geopose heading
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-09-17 10:32:25 +10:00
Peter Barker 6b7cb893d7 Tool: build_options.py: add missing IST8310 feature 2024-09-17 10:31:27 +10:00
Andy Piper 202de8cc40 autotest: FAST_ATTITUDE looks at ANG now 2024-09-17 10:12:35 +10:00
Andrew Tridgell c23815e705 Tools: rebuild PPPGW bootloaders 2024-09-17 10:02:29 +10:00
Andrew Tridgell 6d94bb8f81 Tools: added build option AP_NETWORKING_CAN_MCAST_ENABLED 2024-09-17 10:02:29 +10:00
Andrew Tridgell ef4fce80fb AP_Bootloader: support CAN multicast server
allows for fw update of network peripheral devices
2024-09-17 10:02:29 +10:00
bugobliterator 27b202e984 AP_Periph: make can broadcast threadsafe, like can_printf call from lua thread 2024-09-16 19:45:24 +10:00
Yuxin Pan a717283c62 Tools: remove baro param from white list 2024-09-16 17:25:02 +10:00
Andrew Tridgell fc2f518934 autotest: added CopterTailsitter test
test rearward rangefinder
2024-09-14 08:39:51 +10:00
Ikko Eltociear Ashimine 78f0e78977 Tools: update param_parse.py
seperator -> separator
2024-09-12 14:55:03 +10:00
Yuxin Pan adc147aba3 Tools: remove params from whiltelist 2024-09-12 06:54:15 +10:00
Andrew Tridgell ef5e3c5662 Tools: use "--enable-PPP" not "--enable-PPP_Support" 2024-09-11 16:11:22 +10:00
Andrew Tridgell bcf19b6d0d Tools: adjust usage of --enable for uppercase names 2024-09-11 16:11:22 +10:00
Andrew Tridgell b2b9226863 waf: allow any custom build option to be specified in waf configure
this makes it easy to configure with any option from build_options.py
2024-09-11 16:11:22 +10:00
Ryan Friedman 236b3e5eb3 Tools: Hotfix missing 3 and linters
* CI was disabled, we missed these

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-09-11 13:54:53 +10:00
Yuxin Pan e7359c12f1 Tools: add some parameter documentation
SITL: vehicle_test_suite.py parameters removal from whitelist

SITL: Add known unit amp hour

SITL: Add known unit Ah

Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
2024-09-11 10:22:22 +10:00
Peter Barker d6386cc1fd autotest: add test we don't die with bad RC channel for roll 2024-09-10 22:00:50 +10:00
Randy Mackay c3a1e53bfb Tools: add camera-thermal-range build option 2024-09-10 20:59:49 +09:00
Ryan Friedman d18a2b22f9 Tools: Give ardupilot venv access to system packages
* When possible, we can use the apt-installed python packages which are
  ABI stable
* Same for the other OS's that have VENV setup scripts

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-09-10 15:11:00 +10:00
Ryan Friedman d4a62f22e2 Tools: Use apt for pexpect
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-09-10 15:11:00 +10:00
Ryan Friedman 33d75f10e7 Tools: ros2: Add missing dep and improved instructions
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-09-10 12:46:33 +10:00
Ryan Friedman 1f0f41297b Tools: ros2: Add geopose test
* Add missing deps
* Reduce some duplication

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-09-10 12:46:33 +10:00
Thomas Watson dcd34dd39e AP_Periph: clean up node ID parameter handling
Properly document the range and behavior.

Rename storage variable as it doesn't connect to the DNA preferred ID
feature.
2024-09-10 12:36:34 +10:00
Andrew Tridgell a9455ec3d3 waf: fixed app signature in elf files
this fixes an issue when developing for ChibiOS AP_Periph targets
where loading the elf file in gdb doesn't allow it to run as it
doesn't have the correct AP_Periph signature (crc, board type etc)

This patch modifies the elf file to fill in the signature, so when you
load in gdb the bootloader will be able to run the signature checks
and load the firmware
2024-09-10 12:33:45 +10:00
Thomas Watson ebcb753acc AP_Periph: reject allocation of broadcast node ID
It is technically legal to receive an "allocation" of the broadcast node
ID. Fortunately, this was already ignored by `canardSetLocalNodeID`,
though it would trigger an assertion failure if those were enabled.

Fix by rejecting that ID. There is effectively no change in behavior
(except possibly fixes using moving baseline GPSes) but the code now
correctly ignores that ID and retries the allocation as it did before.
2024-09-10 12:31:19 +10:00
Andrew Tridgell d27d34987c autotest: added GliderPullup test 2024-09-10 10:15:34 +10:00
Andrew Tridgell c0b89eccd1 Tools: added AP_PLANE_GLIDER_PULLUP_ENABLED feature 2024-09-10 10:15:34 +10:00
Andrew Tridgell ae6376fcd6 autotest: added CommonOrigin test
test EK2 and EK3 common origin
2024-09-10 09:28:50 +10:00
Andy Piper 1ef89d31f2 autotest: static notch test 2024-09-09 09:29:32 +10:00
Peter Barker 1e8e250459 autotest: add test for ahrs-source.lua 2024-09-08 10:02:29 +10:00
Peter Barker 96fe3da083 autotest: assert that if a feature is supposed to be compiled in that it is
The biggest feature here is the massive whitelist.  Many features can be marked as compiled-in but will be elided by the compiler as it isn't called anywhere.  That's OK, but it does mean we can't check for its  presence or absence based on symbols.
2024-09-08 00:55:43 +10:00
Peter Barker 7280ff3ffd autotest: fix flapping TakeoffAuto3 test 2024-09-07 09:40:43 +10:00
Peter Barker ab77509551 Tools: create and use WaitAndMaintainServoChannelValue
allows for checking for "maintain" on servo channel values
2024-09-07 09:40:43 +10:00
Peter Barker d74050c5e3 autotest: tweak takeoff test names to avoid poor summary output 2024-09-07 00:14:21 +10:00
Ryan Friedman c16fee3f47 Tools: ros2: Reformat
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-09-06 21:28:25 +10:00
Andrew Tridgell 1daf92e499 Tools: raise build time limit
our build is taking over 20hrs now, which means it gets killed and
restarted at 20 hours, and if another commit has come in it means that
AP_Periph may never get built at all

raise to 40 hrs
2024-09-06 14:47:05 +10:00
Peter Barker bbdbf33c21 Tools: param_metadata: do not emit Legacy fields to rst/Wiki 2024-09-06 11:52:58 +10:00
Peter Barker adcf5d3503 Tools: Do a CubeOrange build with EKF2 as part of CI
need to build at least one ChibiOS-based board to be sure we haven't killed things
2024-09-06 08:52:01 +10:00
jamming 2675e293ed bootloaders: Add a new target Holybro DroneCAN-pmu 2024-09-06 08:50:20 +10:00
Peter Barker f7e0b9cb89 Tools: size_compare_branches.py: blacklist build of Pixhack-V3 bootloader
we don't have a hwdef-bl.dat for this board as it uses a bootloader from elsewhere.

This should be done on the hwdef content, but that's still coming...
2024-09-06 08:48:30 +10:00
Andy Piper 8b5db8f233 IO_Firmware: update for disable channels 2024-09-04 18:34:10 +10:00
Andy Piper e21e098aa9 IO_Firmware: update to support reversible motors 2024-09-04 18:34:10 +10:00
Peter Barker 4ff6f603b2 autotest: add --enable-fgview option 2024-09-04 14:42:02 +09:00
Фрыман 2a371077e3 Tools: sim_vehicle.py: Added --enable-fgview option in sim_vehicle.py (by @justin-slattery)
Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
2024-09-04 14:42:02 +09:00
Amr Elfeky b450dc3346 Tools: added name to GIT_Success.txt 2024-09-04 14:41:40 +09:00
Andrii Fil d802b0ec9a Tools: support MAV_CMD_EXTERNAL_WIND_ESTIMATE 2024-09-04 10:14:45 +10:00
Kaori Uruga 8d672ca7f8 Tools: fixed airport parameters in Flight Gear shell scripts 2024-09-04 09:49:55 +10:00
Andrew Tridgell 2bb7d11501 Tools: rename bootloader for BotBloxDroneNet 2024-09-04 09:03:56 +10:00
Peter Barker ed512eaabe autotest: add test for logging restart after transfer complete 2024-09-03 11:01:24 +10:00
Andrew Tridgell e934780a29 Tools: rebuild BotBloxSwitch bootloader 2024-09-03 10:41:58 +10:00
Randy Mackay 4bcb3952c3 Tools: siyi image and video download script 2024-09-03 10:15:07 +10:00
Peter Barker a1ff3871f7 autotest: default test-build_options.py to CubeOrange
recent additions of CAN things to hwdef, and the lack of a hardware / lower-level dependency means we need to use something with CAN for now
2024-09-02 11:53:12 +10:00
Peter Barker 46170d7eaa Tools: add EKF3 optical flow fusion to build options 2024-09-02 11:53:12 +10:00
Peter Barker 50dba896ca autotest: AutoContinueOnRCFailsafe extend auto leg to avoid race
saw an instance where it made it to waypoint four before we registered the RC failsafe
2024-09-02 08:29:12 +10:00
Peter Barker 22caa52d58 Tools: build_options.py: OSD_PARAM does not required OSD to build 2024-09-01 13:39:49 +10:00
Peter Barker f050ffa3da autotest: correct and add to the extract_features table
depending on which vehicle we are compilin gfror some symbols may be elided by the compiler, so find other symbols which will work.
2024-09-01 13:39:49 +10:00
Peter Barker 3079ddd1b2 Tools: build_options.py: update feature define whitelist
two of these defines are no longer uses in the codebase, one can't be checked for because there's no symbol for it
2024-09-01 13:39:49 +10:00
Peter Barker 18e1a1f630 Tools: build_options.py: remove some baros from features
these are not probably - if they don't exist in a hwdef already then they can't be included in the build
2024-09-01 13:39:49 +10:00
Peter Barker 790287c1fa Tools: build_options.py: correct some feature dependencies 2024-09-01 13:39:49 +10:00
Peter Barker 4700f09e7d autotest: test_build_options.py: add --resume option 2024-09-01 12:58:50 +10:00
Peter Barker 1439aebf94 autotest: improve diagnostics when receiving unexpected mission ack 2024-08-31 08:16:42 +10:00
Peter Barker 6d844d8c79 autotest: test the simulated rangefinder driver 2024-08-30 11:19:14 +10:00
caijie f8cbd29570 AP_Bootloader: reserve IDs for VIEWPRO 2024-08-30 07:51:02 +09:00
bugobliterator 0dbe9ed27f bootloaders: update PPPGW bootloaders 2024-08-28 18:20:29 +10:00
bugobliterator 8222d65ebe AP_Bootloader: make Content-Length handle case insensitive 2024-08-28 18:20:29 +10:00
George Zogopoulos f7d40c0c73 autotest: Added TKOFF_THR_MIN test 2024-08-28 18:18:55 +10:00
hagerashraf 8d292def15 hwdef: reserve board Ids for DroneBuild boards
I added two new boards to the file, with 10 reserved IDs for DroneBuild drones' boards
2024-08-28 16:26:05 +10:00
CRazy cc182c69e9 AP_Bootloader: ID reserve for HGLRCF405V4 2024-08-27 15:40:02 +10:00
Peter Barker a8b7513287 Tools: build_options.py: sort IMU into single section 2024-08-27 12:00:47 +10:00
Peter Barker bd987aa84b Tools: add build option for batchsampler
also create an IMU category to hold IMU-specific options
2024-08-27 12:00:47 +10:00
Peter Barker c3d89ed9d1 autotest: remove unused parameters from Blimp defaults file 2024-08-27 12:00:03 +10:00
Holden 045059580c Tools: Translate Linux Mint Wilma to Noble 2024-08-27 11:59:53 +10:00
Peter Barker b89256bec4 autotest: add test that jamming simulator works 2024-08-27 11:14:09 +10:00
Willian Galvani 4ec023ac1a Tools: ardupilotwaf: allow automatic upload to BlueOS 2024-08-27 10:25:35 +10:00
Iampete1 44ae148718 Tools: autotest: defualt params: update plane-ice for ICE start stop function 2024-08-27 09:37:34 +10:00
Iampete1 a75a97eb02 Tools: autotest: quadplane: ICE Don't setup ICE start channel its already in model defaults 2024-08-27 09:37:34 +10:00
Peter Barker 14e5fd396a autotest: check altitude in GPSWeightedBlending test 2024-08-27 09:26:06 +10:00
Peter Barker c4fe57d197 autotest: add test for blending while affinity is running 2024-08-27 09:26:06 +10:00
Peter Barker b9158c0491 autotest: remove unused parameters for quadplane-copter-tailsitter 2024-08-27 08:54:10 +10:00
Peter Barker c56439b045 autotest: quadplane-cl84: remove old parameter 2024-08-26 20:41:19 +10:00
Andrew Tridgell fb28e2c24f autotest: added SpringValley4 2024-08-22 08:56:59 +10:00
Andrew Tridgell 5f5d374383 Tools: fixed SpringValley alt 2024-08-22 08:56:47 +10:00
jamming 022b4eed9a hwdef: Add a new target HolybroG4 DroneCAN Airspeed 2024-08-22 08:56:22 +10:00
Andy Piper cdfd89bc1e bootloaders: update KakuteF4-Wing bootloaders for new board id 2024-08-21 12:42:31 +10:00
Andy Piper 6db81885d7 board_types.txt: add AP_HW_Holybro-DroneCAN-Airspeed 2024-08-21 12:42:31 +10:00
Vincent Poon a756268a43 board_types.txt: correct Kakute F4 Wing board ID
Change AP_HW ID to 5406 due to conflict with another product.  The Holybro DroneCAN airspeed sensor uses 5405 and the FW has already been flashed onto actual products.

https://github.com/ArduPilot/ardupilot/pull/27631/files#diff-a720bbf01b6a94de212cea3cb69c06eb00dfb6255f75e4cca8fdba17a43dfa69R357
2024-08-21 12:42:31 +10:00
Andy Piper dcc0be5031 autotest: correct FenceFloorEnabledLanding test 2024-08-21 06:56:41 +10:00
Peter Barker 2e1364e3b0 autotest: include SBF when testing GPS backends work 2024-08-21 06:31:41 +10:00
Peter Barker 21f6e5da71 autotest: augment ClearMission to test clearing from current uploader
in the same way that we allow a link to re-start an upload by sending mission_count, allow a GCS to clear a mission and cancel current upload if it was the one doing the transfer
2024-08-20 20:46:41 +10:00
Ryan Friedman c5484d9d62 Tools: AP_Periph: Add AP_GSOF to libraries
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-08-20 14:50:05 +10:00
Ryan Friedman 724e61fa70 Tools: factor out common library for GSOF
* Add tests too

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-08-20 14:50:05 +10:00
Peter Barker 7037164d08 Tools: make create_OEM_board.py: handle .inc files 2024-08-20 10:47:08 +10:00
Peter Barker 3e50b4cf57 Tools: add test for MAV_CMD_MISSION_START sanity checks 2024-08-20 09:38:43 +10:00
Peter Barker bdea9be7fb Tools: LogAnalyzer: remove
the web-based tools are supplanting this
2024-08-20 09:32:46 +10:00
Iampete1 d5a125a2a9 Tools: ardupilotwaf: boards: enable extended esc telem on sitl_periph_universal 2024-08-20 09:14:11 +10:00
Iampete1 0b551ed7bc AP_Periph: add support for sending extended ESC status 2024-08-20 09:14:11 +10:00
Peter Barker 8e77f859e0 autotest: add test for mission_clear_all message 2024-08-19 19:51:33 +10:00
Pierre Kancir 61bd5e9bae .github: add alpine to environement setup test 2024-08-15 22:33:42 +10:00
Pierre Kancir de85705941 Tools: add alpine initial prereqs script 2024-08-15 22:33:42 +10:00
bugobliterator 0790eb5833 bootloaders: update Cube* and Here* bootloaders 2024-08-15 11:41:21 +10:00
bugobliterator d8df0b716d AP_Bootloader: check ecc error flags only in Flash Status registers 2024-08-15 11:41:21 +10:00
James O'Shannessy 0ec7505e64 scripts: Enable InertialLabs as a build option 2024-08-13 21:32:11 +10:00
Andy Piper 40e7118020 AP_Bootloader: Flywoo H743 Pro 2024-08-13 10:20:15 +10:00
Andy Piper 8e45fb1450 bootloaders: Flywoo H743 Pro 2024-08-13 10:20:15 +10:00
mikefenghao 0f28341a03 bootloaders:add PixPilot-V6PRO bootloaders 2024-08-10 11:06:33 +10:00
Peter Barker 1e4caaec78 autotest: allow max distance on ship test
vehicle moves...
2024-08-10 10:54:20 +10:00
Peter Barker 3963f1b114 autotest: allow reboot_sitl to specify max startup loc dist
useful if your vehicle is on a ship
2024-08-10 10:54:20 +10:00
Peter Barker 5e929e1b39 autotest: poll_message limits polled message to system it was requested from 2024-08-10 10:54:20 +10:00
Peter Barker f3271ce0a6 autotest: add a load_params_file method to take params from test dir 2024-08-10 10:54:20 +10:00
Peter Barker 22360b43a8 autotest: zero throttle when force-rebooting
otherwise we may end up trying to calibrate ESCs...
2024-08-10 10:54:20 +10:00
Peter Barker 33bae74d07 autotest: rename load-parameters method to be more accurate 2024-08-10 10:54:20 +10:00
James O'Shannessy 6ed84a955d scripts: fix missing extract features 2024-08-09 17:56:26 +10:00
James O'Shannessy 154876fcad scripts: Add build options for InertialLabs
The enable flag is AP_EXTERNAL_AHRS_INERTIAL_LABS_ENABLED, but the extract features can only generate based on the class name, which is InertialLabs.
2024-08-09 17:31:27 +10:00
James O'Shannessy 083f9f8139 scripts: Fixed extract_features.py not extracting ExternalAHRS or INS Temp Cal properly 2024-08-09 17:31:27 +10:00
Pierre Kancir 53a6c2d045 Tools: flake8 sitl-on-hw.py 2024-08-08 20:27:14 +10:00
Pierre Kancir 699dfb5385 Tools: improve sitl-on-hw copter handling 2024-08-08 20:27:14 +10:00