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
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
Henry Wurzburg
2ba548bb27
AP_BattMonitor: add AUTOLAND as LOW volt batt failsafe
2025-02-25 11:06:38 +11:00
Willian Galvani
19e10577df
SRV_Channel: initialize focus and zoom with 1000 range
2025-02-25 08:18:05 +09:00
Willian Galvani
4bdcb2883e
AP_Camera: allow focus and zoom control with servos
2025-02-25 08:18:05 +09:00
Peter Barker
827c8d5f88
AP_Airspeed: inline get_pressure
...
this doesn't gain us anything; it's a private function which is only called in one place and replicates checks that the caller already makes (it devolves into a one-liner, essentially!)
This method is also confusing as it sits next to "get_temperature" in the code, which is actually a match for get_differential_pressure, not get_pressure
... but the chief advantage IMO is not updating the healthy state in this method.
2025-02-25 08:37:41 +11:00
Peter Barker
d0824a8d9b
AP_BattMonitor: add Copter brake/land failsafe action to parameter metadata
2025-02-24 22:42:33 +11:00