Peter Barker
7286813d1f
Tools: Vagrant: modify test instructions to make copy of arudpilot
...
makes the compilations faster, and frees up the original directory for other things...
2025-02-26 20:26:55 +11:00
Peter Barker
5d053d6722
Tools: sim_vehicle.py: increase number of mavproxy connection retries
...
some platforms are slow enough that the ArduPilot process takes too long to start for the default retries to work. And Valgrind makes it worse
2025-02-26 20:26:55 +11:00
Peter Barker
4e872be75a
Vagrant: use login shell on Oracular and use TMPDIR
...
can't compile wxpython without a different TMPDIR
2025-02-26 20:26:55 +11:00
Peter Barker
59c7ed0ad7
Vagrant: use alvistack 24.10
...
can't find anythingelse....
2025-02-26 20:26:55 +11:00
Peter Barker
b295a47b87
Vagrant: add support for oracular
2025-02-26 20:26:55 +11:00
Adam Borowski
3863535bdb
AP_Proximity: LD19/LD06 data length sanity check fix
...
Signed-off-by: Adam Borowski <mr.adam.borowski@gmail.com>
2025-02-26 20:26:42 +11:00
Peter Barker
3f5cde4bb1
Tools: generate_manifest.py: make flake8 clean
2025-02-26 20:26:15 +11:00
Peter Barker
4008df1314
AP_HAL: Socket: check return value of getsockname
...
avoids static analysis failure upon this method failing
2025-02-26 18:54:24 +11:00
Peter Barker
353744e3f0
AP_GPS: UBLOX: fix memory leak when "F9" GNSS configuration is used
...
pointer persists in the object and is re-used, but never freed.
Not really a problem if you're only detecting once, could be a problem if you've got intermittent connectivity to your GPS...
2025-02-26 18:37:39 +11:00
Peter Barker
12c4617641
Tools: size_compare_branches.py: improve process failure output file content
2025-02-26 16:32:06 +11:00
Shiv Tyagi
4dd6b93011
AP_HAL_ChibiOS: use new AP_PERIPH_SERIAL_OPTIONS_ENABLED define
2025-02-26 11:31:04 +11:00
Shiv Tyagi
ce66335f10
Tools: use new AP_PERIPH_SERIAL_OPTIONS_ENABLED define
2025-02-26 11:31:04 +11:00
Peter Barker
4726484c6c
SPRacingH7: pin SPRacingH7 to 128kB of program space
2025-02-26 10:06:39 +11:00
Peter Barker
6338d10b5f
global: create and use HAL_PROGRAM_SIZE_LIMIT_KB
...
We will reserve BOARD_FLASH_SIZE for the internal flash on stm32 flash processors, use HAL_PROGRAM_SIZE_LIMIT_KB in the general code base.
Notable change here is that boards with external flash will start to get features only available with more than 2MB of program storage
2025-02-26 10:06:39 +11:00
Peter Barker
41b5f796b5
waf: remove Python print_function import
2025-02-26 10:06:11 +11:00
Peter Barker
07b0ac9ffe
Tools: remove Python print_function import
2025-02-26 10:06:11 +11:00
Peter Barker
bbf7b4ceb6
AP_Math: remove Python print_function import
2025-02-26 10:06:11 +11:00
Peter Barker
67c7958f4c
AP_HAL: remove Python print_function import
2025-02-26 10:06:11 +11:00
Peter Barker
aef8f9d4dd
AP_HAL_Linux: remove vestiges of board sensor specifications
...
all moved to hwdef
2025-02-25 14:38:45 +11:00
Peter Barker
0d05814d30
AP_HAL_Linux: move BARO lines to hwdef
2025-02-25 14:38:45 +11:00
Peter Barker
1fa2cf38d5
AP_HAL_Linux: move parsing of BARO lines up to AP_HAL hwdef.py
2025-02-25 14:38:45 +11:00
Peter Barker
34735b30df
AP_HAL: move parsing of BARO lines up to AP_HAL hwdef.py
2025-02-25 14:38:45 +11:00
Peter Barker
b9ad86943d
AP_HAL_ChibiOS: move parsing of BARO lines up to AP_HAL hwdef.py
2025-02-25 14:38:45 +11:00
Peter Barker
0714b3abc2
AP_HAL_Linux: move COMPASS definitions to hwdef
2025-02-25 14:38:45 +11:00
Peter Barker
bdce6f2779
AP_HAL_Linux: move parsing of COMPASS hwdef lines up to hwdef.py
2025-02-25 14:38:45 +11:00
Peter Barker
5d7e5b1aff
AP_HAL: move parsing of COMPASS hwdef lines up to hwdef.py
2025-02-25 14:38:45 +11:00
Peter Barker
0a485f9902
AP_HAL_ChibiOS: move parsing of COMPASS hwdef lines up to hwdef.py
2025-02-25 14:38:45 +11:00
Peter Barker
2998190c4b
AP_HAL_Linux: hwdef: best-guess IMU fix on rst-zynq
2025-02-25 14:38:45 +11:00
Peter Barker
687e870edd
AP_HAL_Linux: move IMU line parsing up into hwdef.py, use it for Linux HAL
2025-02-25 14:38:45 +11:00
Peter Barker
8fb665914e
AP_HAL: move IMU line parsing up into hwdef.py, use it for Linux HAL
2025-02-25 14:38:45 +11:00
Peter Barker
f93e637c2c
AP_HAL_ChibiOS: move IMU line parsing up into hwdef.py, use it for Linux HAL
2025-02-25 14:38:45 +11:00
Peter Barker
0f59e9b2bb
AP_HAL_Linux:tidy bebop defines
2025-02-25 14:38:45 +11:00
Peter Barker
e2fdb81ff6
AP_NavEKF3: remove unused assignments of posCheckPassed
...
... and more-tightly scope variables to avoid similar problems in future
../../libraries/AP_NavEKF3/AP_NavEKF3_PosVelFusion.cpp:898:17: warning: Value stored to 'posCheckPassed' is never read [deadcode.DeadStores]
posCheckPassed = true;
^ ~~~~
../../libraries/AP_NavEKF3/AP_NavEKF3_PosVelFusion.cpp:946:17: warning: Value stored to 'posCheckPassed' is never read [deadcode.DeadStores]
posCheckPassed = true;
^ ~~~~
2025-02-25 14:38:21 +11:00
Peter Barker
cfa145940a
AP_NavEKF3: remove duplicate assignment of posCheckPassed
...
this assignment is done 4 lines down
../../libraries/AP_NavEKF3/AP_NavEKF3_PosVelFusion.cpp:823:17: warning: Value stored to 'posCheckPassed' is never read [deadcode.DeadStores]
posCheckPassed = true;
^ ~~~~
2025-02-25 14:38:21 +11:00
Henry Wurzburg
6a77d56053
RC_Channel: correct AUX func 182 comment
2025-02-25 09:38:59 +09:00
Henry Wurzburg
a7341aa317
Tools:tweak autotrim test
2025-02-25 09:38:59 +09:00
Henry Wurzburg
44e7d48058
Copter:fixes bugs in autotrim and add Loiter and PosHold as valid autotrim modes
2025-02-25 09:38:59 +09:00
Peter Barker
ac55b111dd
hwdef: remove un-needed AP_NOTIFY_TONEALARM_ENABLED
...
this is infered by having ALARM set
2025-02-25 11:21:48 +11:00
Bob Long
f72022f606
AP_Scripting: call reset_all_aux_auths on start
2025-02-25 11:19:59 +11:00
Bob Long
7b3a6434de
AP_Arming: add reset_all_aux_auths
2025-02-25 11:19:59 +11:00
Thomas Watson
71be1194cb
AP_Filesystem: FATFS: clean up error handling
...
Remove redundant checks of the stream, cases that could never occur
(both before and after combining allocations), and clarify errno
propagation.
2025-02-25 11:17:50 +11:00
Thomas Watson
b9cad62acf
AP_Filesystem: FATFS: combine file allocations
...
The file handle and object are always allocated together. Combine them
to avoid overhead from extra allocations and additional error cases.
Also simplify by using strdup for the pathname.
2025-02-25 11:17:50 +11:00
Peter Barker
30ffcaa8bd
autotest: test terarangeri2c
2025-02-25 11:12:06 +11:00
Peter Barker
dbffd74fb5
AP_RangeFinder: stop using ownptr for i2c device
2025-02-25 11:12:06 +11:00
Peter Barker
cf1a1ec88b
AP_Rangefinder: request measurement for timer routine to collect
...
the timer routing attempts to read a reading off the bus straihgt-up, but after initialisation the sensor will not be attempting to provide one, so this will always fail.
Request a sample as the last thing we do in the init routine
2025-02-25 11:12:06 +11:00
Peter Barker
e17c3127b1
add teraranger simulator
2025-02-25 11:12:06 +11:00
Peter Barker
0862ec445f
SITL: sort i2c include list
...
will reduce conflicts on various branches if we keep these sorted
2025-02-25 11:12:06 +11:00
Andrew Tridgell
500d190df3
AP_GPS: prevent NULL ptr deref
...
if we get an unexpected VALSET NACK we could dereference NULL. This
could happen if we reboot while configuring an invalid key
2025-02-25 11:08:56 +11:00
Andrew Tridgell
69c540a0de
AP_GPS: fixed the check for disabling CONFIG_RATE_SOL config
...
we should stop looking for SOL as soon as we know we have PVT, instead
of waiting for all others to be cleared
may help with
https://discuss.ardupilot.org/t/fc-tries-to-config-gps-constantly-when-trying-to-arm-in-loiter-mode/129930
2025-02-25 11:08:56 +11:00
Iampete1
6ad05dc2c3
Plane: don't switch to RTL on battery failsafe if in autoland
2025-02-25 11:06:38 +11:00