Peter Barker
14cbc1995c
AP_IRLock: tidy up inclusions to match standards
...
including adding an _config.h
2025-02-12 16:15:40 +09:00
Peter Barker
549c1fafb5
AP_IRLock: rename IRLock class to AP_IRLock
2025-02-12 16:15:40 +09:00
Peter Barker
3e5f1ae9ec
AP_IRLock: adjust for file rename
2025-02-12 16:15:40 +09:00
Peter Barker
93b2b3c924
AP_IRLock: rename IRLock files to AP_IRLock
2025-02-12 16:15:40 +09:00
Peter Barker
200b51370f
AP_IRLock: remove old AP_IRLock header
2025-02-12 16:15:40 +09:00
Henry Wurzburg
89c46e3515
ArduPlane:add AUTOLAND metadata to FS_LONG_ATCN
2025-02-12 11:01:23 +11:00
Shiv Tyagi
3ab1aa1c56
AP_HAL_ChibiOS: replace HAL_PERIPH_ENABLE_RCIN with AP_PERIPH_RCIN_ENABLED
2025-02-11 19:31:19 +11:00
Shiv Tyagi
651e0be73c
Tools: replace HAL_PERIPH_ENABLE_RCIN with AP_PERIPH_RCIN_ENABLED
2025-02-11 19:31:19 +11:00
Le Minh Duc
1a10241639
AP_Airspeed: Correct airspeed calibration issue for gliders with sensors positioned behind the propeller
2025-02-11 15:31:45 +11:00
Henry Wurzburg
6a02fdb5df
TECS:correct metadata
2025-02-11 15:14:03 +11:00
Peter Barker
42c1ad30c9
AP_Scripting: remove use of OwnPtr
2025-02-11 11:54:52 +11:00
Peter Barker
11932d6d50
AP_RangeFinder: correct buffer size problems in LightWareI2C
...
../../libraries/AP_RangeFinder/AP_RangeFinder_LightWareI2C.cpp:158:105: warning: argument 'reply' of type 'char[15]' with mismatched bound [-Warray-parameter]
158 | void AP_RangeFinder_LightWareI2C::sf20_get_version(const char* send_msg, const char *reply_prefix, char reply[15])
| ^
../../libraries/AP_RangeFinder/AP_RangeFinder_LightWareI2C.h:47:80: note: previously declared as 'char[5]' here
47 | void sf20_get_version(const char* send_msg, const char *reply_prefix, char reply[5]);
| ^
2025-02-11 11:54:52 +11:00
Peter Barker
bf17b1d9a3
Plane: correct abs function used for integer
2025-02-11 11:54:52 +11:00
Peter Barker
2e46dcf582
AP_HAL_SITL: remove unused variables from RCInput
...
In file included from ../../libraries/AP_HAL_SITL/RCInput.cpp:6:
../../libraries/AP_HAL_SITL/RCInput.h:22:17: warning: private field '_sitlState' is not used [-Wunused-private-field]
22 | SITL_State *_sitlState;
| ^
../../libraries/AP_HAL_SITL/RCInput.h:23:10: warning: private field 'using_rc_protocol' is not used [-Wunused-private-field]
23 | bool using_rc_protocol;
| ^
2025-02-11 11:54:52 +11:00
Peter Barker
4c2c20c018
AP_Airspeed: remove unused variable
...
../../libraries/AP_Airspeed/AP_Airspeed_AUAV.h:68:11: warning: private field 'pressure_abs_L' is not used [-Wunused-private-field]
68 | float pressure_abs_L;
2025-02-11 11:54:52 +11:00
Iampete1
e62ca116df
Tools: autotest: copter: add test for RTL_ALT_FINAL
2025-02-11 09:52:55 +09:00
Iampete1
2091ca11c3
Cotper: RTL correct height for RTL_ALT_FINAL
> 0.
2025-02-11 09:52:55 +09:00
Henry Wurzburg
54eb396e23
ArduPlane: remove unused verify_RTL code
2025-02-11 11:23:35 +11:00
mattp256
0fd3448e31
AR_Motors: fix brushed motor support for omni vehicles
...
Fixes an issue where omni motors (BrushedWithRelay/BrushedBiplor)
are not configured correctly due to initialization order. setup_omni()
must execute first so that _motors_num is set correctly when
setup_pwm_type() uses it to determine which motors are in use.
2025-02-11 09:21:16 +09:00
Henry Wurzburg
f320fddca1
Tools:enhance AUTOLAND autotest
2025-02-11 11:16:33 +11:00
Henry Wurzburg
3093532d78
ArduPlane: add climb before turn to AUTOLAND
...
Co-authored-by: IamPete1 <iampete@hotmail.co.uk>
2025-02-11 11:16:33 +11:00
Thomas Watson
de2ebe22b6
AP_HAL_ESP32: I2CDevice: take into account driver timeout
...
Necessary for proper INA3221 operation apparently.
2025-02-11 10:54:03 +11:00
Thomas Watson
34a0e827fd
AP_HAL_ESP32: SPIDevice: deassert all CSes on startup
...
Ensure initialization of each device doesn't conflict with other devices
on the bus.
2025-02-11 10:54:03 +11:00
Thomas Watson
76019ffe18
AP_HAL_ESP32: SPIDevice: fix automatic full duplex transfer
...
This condition must be exactly the same as the one in ChibiOS as whether
we use full duplex or not causes different bus traffic.
This probably needs refactoring, the semantics are confusing and subtle,
though the use of the same driver between I2C and SPI devices must be
accounted for.
2025-02-11 10:54:03 +11:00
rubenp02
a1a0fc4a70
Plane: Add fwd. throttle cutoff voltage parameter
...
Updated the forward throttle battery voltage compensation feature to
disable the throttle entirely when the sag-compensated voltage drops
below the new parameter FWD_THR_CUTOFF_V.
Key changes:
- Added new parameter FWD_THR_CUTOFF_V to control the voltage threshold
for this feature. The default value of 0 matches the original behavior
of never cutting the throttle due to low voltage.
- Modified forward throttle battery voltage compensation logic in the
servos code to cut off the throttle in auto-throttle modes if the
resting voltage estimate of the FWD_BAT_IDX battery is under
FWD_THR_CUTOFF_V.
2025-02-11 10:53:49 +11:00
Peter Barker
25f7eebce5
AP_RCProtocol: move navio2 RC input into AP_RCProtocol
2025-02-11 10:41:52 +11:00
Peter Barker
261a804f6b
AP_HAL_Linux: move navio2 RC input into AP_RCProtocol
2025-02-11 10:41:52 +11:00
Peter Barker
e92d540d64
AP_HAL: move navio2 RC input into AP_RCProtocol
2025-02-11 10:41:52 +11:00
Peter Barker
6392fac6d9
autotest: add autotest for tuning loiter x/y speed
2025-02-11 08:35:34 +09:00
Rishabh
ef3bf1c9f8
Copter: Add Loiter horizontal maximum speed to CH6 tunable param
2025-02-11 08:35:34 +09:00
Rishabh
5b3fe19916
AC_Loiter: Add method to change Loiter horizontal maximum speed
2025-02-11 08:35:34 +09:00
Thomas Watson
c7f32c2fb4
AP_Scripting: mavlink: clearer error messages
2025-02-11 10:26:59 +11:00
Thomas Watson
55a0cbbd9a
AP_Scripting: mavlink: remove redundant Lua buffer usage
2025-02-11 10:26:59 +11:00
Thomas Watson
2b995b2087
AP_Scripting: mavlink: fix RX init locking
...
If there is an error, the semaphore will never be released. Fix by only
calling functions which could cause errors after it's released.
2025-02-11 10:26:59 +11:00
Iampete1
cc00276441
Plane: Quadplane: only log TILT
on tiltrotors
2025-02-10 23:16:53 +00:00
Your Name
ad97fe6a6c
Tools: AP_HAL_ChibiOS: Add ZeroOne_Air board
2025-02-11 08:09:27 +11:00
Your Name
9160de1599
AP_HAL_ChibiOS: AP_HAL_ChibiOS: Add ZeroOne_Air board
2025-02-11 08:09:27 +11:00
Iampete1
a81c79a1b0
GCS_MAVLink: highres imu: remove all "bitmask" value
2025-02-10 22:17:16 +11:00
Shiv Tyagi
0b96145fbb
Tools: use AP_PERIPH_RTC_ENABLED in place of HAL_PERIPH_ENABLE_RTC
2025-02-10 09:37:48 +11:00
Shiv Tyagi
3a13e0d292
AP_HAL_ChibiOS: create and use AP_PERIPH_RTC_ENABLED
2025-02-10 09:37:48 +11:00
Henry Wurzburg
1774bd9ef9
ArduPlane:add missing flight mode metadata
2025-02-09 14:21:25 +00:00
Shiv Tyagi
09c8ad81bb
AP_HAL_ChibiOS: set HAL_VISUALODOM_ENABLED to 0 directly
2025-02-09 07:40:47 +11:00
Thomas Watson
1ca1b5d26f
AP_Logger: clarify behavior of log_file_content
...
It hasn't kept the passed pointer for a while now.
2025-02-09 07:28:53 +11:00
Thomas Watson
962616a76f
AP_Scripting: update so mavlink init intent matches behavior
...
RX message ID buffer sizes have been shrunk to the amount actually used.
2025-02-08 13:52:21 -06:00
Iampete1
fe3f12dc87
AP_Scripting: Docs: correct argument order on mavlink:init
2025-02-08 11:38:06 -06:00
Shiv Tyagi
af1220f883
Tools: explicitly set AP_PERIPH_XX_ENABLED defines to 0 for sitl_periph_gps and sitl_periph_battmon
2025-02-08 23:25:12 +11:00
cuav-chen2
aee973f4de
AP_Baro: Fix BMP581 initialization error
2025-02-08 14:36:10 +11:00
Ep Pravitra
43cdf1a03d
AP_Mount: fix object tracking command for ViewPro
...
The command should also take negative values
Redo scaling to comply with mavlink documentation.
2025-02-08 08:48:52 +09:00
Stephen Dade
d5c1478324
AP_Scripting: Update rockblock and MAVLinkHL with additional commands and gcs timeout
2025-02-08 09:42:06 +11:00
Shiv Tyagi
f62e65f26e
AP_HAL_ChibiOS: use AP_PERIPH_IMU_ENABLED in place of HAL_PERIPH_ENABLE_IMU
2025-02-08 08:22:10 +11:00