Commit Graph

66515 Commits

Author SHA1 Message Date
Andrew Tridgell
f1a7abb31b AP_BLHeli: fixed documentation for SERVO_BLH_3DMASK and SERVO_BLH_RVMASK
they can be combined on both BLHeli32 and AM32
2025-02-13 11:22:50 +01:00
Shiv Tyagi
8655d013c6 AP_RPM: use AP_PERIPH_RPM_ENABLED and AP_PERIPH_RPM_STREAM_ENABLED 2025-02-13 20:29:06 +11:00
Shiv Tyagi
abc605c7e4 Tools: u AP_PERIPH_RPM_ENABLED and AP_PERIPH_RPM_STREAM_ENABLED 2025-02-13 20:29:06 +11:00
Shiv Tyagi
c7a4489b58 AP_HAL_ChibiOS: create and use AP_PERIPH_RPM_ENABLED and AP_PERIPH_RPM_STREAM_ENABLED 2025-02-13 20:29:06 +11:00
Peter Barker
354c861753 GCS_MAVLink: correct AP_Periph compilation when GCS enabled and mag not
../../libraries/GCS_MAVLink/GCS_Common.cpp: In member function 'void GCS_MAVLINK::send_highres_imu()':
../../libraries/GCS_MAVLink/GCS_Common.cpp:2184:27: error: unused variable 'HIGHRES_IMU_UPDATED_XMAG' [-Werror=unused-variable]
 2184 |     static const uint16_t HIGHRES_IMU_UPDATED_XMAG = 0x40;
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors
2025-02-13 10:18:13 +01:00
Andy Piper
8ea00032ee AP_HAL_ChibiOS: reset DMA after exiting soft serial
only configure DMA on groups that are actually being used for soft serial
2025-02-13 17:12:09 +11:00
Andy Piper
9f31795dda AP_BLHeli: properly deal with interface test when disconnected
don't cache connection result and return appropriate error if connection fails.
don't wait 1s to send first serial passthrough message
retry failed cmd_DeviceInitFlash as per betaflight
ensure the bootinfo structure is large enough
2025-02-13 17:12:09 +11:00
Peter Barker
9e88953a41 autotest: add test for Copter stopping distance calculation issue
having a really slow RTL speed should not cause stopping-distance problems, but it does.  The vehicle goes off track as the PSC can't achieve the stopping distance demanded
2025-02-13 14:14:28 +11:00
Peter Barker
665b7808d9 .github: re-enable examples
these were problematic with random failures due to Linux HAL's manipulation of the terminal.  That was a long time ago.
2025-02-13 09:59:49 +11:00
Peter Barker
1f7b4b99be autotest: examples.py: run all tests, fail after running all
autotest: disable running some examples as they're misbehaving
2025-02-13 09:59:49 +11:00
Peter Barker
238429e5c5 autotest: build sitl examples as part of build.examples 2025-02-13 09:59:49 +11:00
Randy Mackay
4d424a8314 Filter: SlewCalculator2D typo fix 2025-02-12 20:38:13 +09:00
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