Commit Graph

38187 Commits

Author SHA1 Message Date
bugobliterator
180e74241f AP_IOMCU: add support for custom uart options and iomcu flash size 2025-02-27 20:11:40 +11:00
bugobliterator
697ee76b0e AP_IOMCU: add support for new version of Bootloader 2025-02-27 20:11:40 +11:00
bugobliterator
e832bccac9 AP_HAL_ChibiOS: add support for using hal serial as IOMCU Serial 2025-02-27 20:11:40 +11:00
bugobliterator
71e24cf42d AP_HAL_ChibiOS: add support for IOMCU on Secondary 2025-02-27 20:11:40 +11:00
Stephen Dade
7ee0232d83 AP_Scripting: Better mavlink parsing for MAVLinkHL and Rockblock 2025-02-27 11:39:56 +11:00
Shiv Tyagi
450ffd1520 AP_HAL_ChibiOS: use new AP_PERIPH_PROXIMITY_ENABLED define 2025-02-27 08:00:43 +11:00
Peter Barker
f2442f6b3e AP_InertialSensor: correct compilation of the Aero board
hwdef: make BMM150 internal

Need to choose force-external or not, assuming this one is on-board
2025-02-26 23:42:07 +11:00
Peter Barker
23ffc39afa AP_HAL_Linux: correct compilation of the Aero board
hwdef: make BMM150 internal

Need to choose force-external or not, assuming this one is on-board
2025-02-26 23:42:07 +11:00
Peter Barker
d005e9cfbc AP_HAL_Linux: allow linux hwdefs to specify WITH_CAN in hwdef env 2025-02-26 23:42:07 +11:00
Peter Barker
4147e4fc7b AP_HAL_Linux: move definition of CONFIG_HAL_BOARD_SUBTYPE into hwdefs 2025-02-26 23:42:07 +11:00
Peter Barker
6a54d871f3 AP_HAL: move definition of CONFIG_HAL_BOARD_SUBTYPE into hwdefs 2025-02-26 23:42:07 +11:00
Peter Barker
7c95668fd6 AP_HAL_Linux: extract toolchain from hwdef 2025-02-26 23:42:07 +11:00
Peter Barker
f451f83d68 AP_HAL_Linux: make linux hwdef write out env.py 2025-02-26 23:42:07 +11:00
Peter Barker
3ff4ed3b4f AP_HAL: make linux hwdef write out env.py 2025-02-26 23:42:07 +11:00
Peter Barker
b3c1abe935 AP_HAL_ChibiOS: make linux hwdef write out env.py 2025-02-26 23:42:07 +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
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
Shiv Tyagi
4dd6b93011 AP_HAL_ChibiOS: 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
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
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
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