Commit Graph

38134 Commits

Author SHA1 Message Date
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
Iampete1
fc47d7c2d0 AP_BoardConfig: SAFETY_MASK include full 32 channels in docs 2025-02-24 14:53:08 +11:00
Shiv Tyagi
5f1d3dac68 AP_HAL_ChibiOS: use new AP_PERIPH_MSP_ENABLED define 2025-02-23 10:28:54 +11:00
Shiv Tyagi
e1e074bc09 AP_HAL_ChibiOS: use new AP_PERIPH_RELAY_ENABLED define 2025-02-23 08:58:36 +11:00
Thomas Watson
e696a83371 AP_Filesystem: LittleFS: avoid leaking directory on close error 2025-02-22 09:46:33 -05:00
Thomas Watson
0246b03424 AP_Filesystem: LittleFS: use NEW_NOTHROW instead of new
Unfortunate CI did not catch this...
2025-02-22 09:46:33 -05:00
Thomas Watson
232f6524f6 AP_Scripting: patch vendored Lua to 5.3.6
In particular this fixes some exceedingly rare/impossible
use-after-frees.

Add the new docs from the distribution and clarify where we get our code
from. To maintain our alterations, the following patches have been
applied to the source from upstream's repository (1221e987...75ea9ccb)
to bring the source up to date:

* Bug: Long brackets with a huge number of '=' causes overflow

  A long bracket with too many equal signs can overflow the 'int' used for
  the counting and some arithmetic done on the value. Changing the counter
  to 'size_t' avoids that. (Because what is counted goes to a buffer, an
  overflow in the counter will first raise a buffer-overflow error.)

* Fixed bug in 'lua_upvaluejoin'

  Bug-fix: joining an upvalue with itself could cause a use-after-free
  crash.

* Fixed typos in comments

* Fixed missing GC barriers in compiler and undump

  While building a new prototype, the GC needs barriers for every object
  (strings and nested prototypes) that is attached to the new prototype.

* Updated release number and copyright year

* Fixed bug: invalid mode can crash 'io.popen'

* Fixed bug: Negation overflow in getlocal/setlocal

* 'realloc' can fail when shrinking a block

  According to ISO C, 'realloc' can fail when shrinking a block. If that
  happens, 'l_alloc' simply ignores the fail and returns the original
  block.

* Fixed bug of long strings in binary chunks

  When "undumping" a long string, the function 'LoadVector' can call the
  reader function, which can run the garbage collector, which can collect
  the string being read. So, the string must be anchored during the call
  to 'LoadVector'.
2025-02-22 14:45:30 +00:00
Shiv Tyagi
297ec3fa7c AP_Scripting: use new AP_PERIPH_RC_OUT_ENABLED define 2025-02-22 18:26:07 +11:00
Shiv Tyagi
11e42a94d0 AP_HAL_ChibiOS: use new AP_PERIPH_RC_OUT_ENABLED define 2025-02-22 18:26:07 +11:00
SULILG
1793c4c5f1 AP_HAL_ChibiOS_hwdef : Modify the LED on the SULILGH7-P1-P2 flight controller 2025-02-22 14:03:06 +11:00
Bob Long
8d427dd229 GCS_Common: fix missing #if for CAMERA_FOV_STATUS 2025-02-22 13:52:51 +11:00
Peter Barker
922f86a7ed AP_GPS: correct uBlox config debugging 2025-02-21 21:47:51 -05:00
Shiv Tyagi
0197220bc5 AP_HAL_ChibiOS: use new AP_PERIPH_HOBBYWING_ESC define 2025-02-20 21:56:14 +11:00
Shiv Tyagi
44d07c8f79 AP_Scripting: use new AP_PERIPH_NOTIFY_ENABLED define 2025-02-20 13:32:20 +11:00
Shiv Tyagi
85b3d6a625 AP_HAL_ChibiOS: use new AP_PERIPH_NOTIFY_ENABLED define 2025-02-20 13:32:20 +11:00
Shiv Tyagi
49755d6212 AP_HAL_ChibiOS: use new AP_PERIPH_EFI_ENABLED define 2025-02-20 13:05:19 +11:00
Shiv Tyagi
ab725360c1 AP_HAL_ChibiOS: use new AP_PERIPH_ADSB_ENABLED define 2025-02-20 12:06:00 +11:00
Peter Barker
dac5269af1 AP_RangeFinder: mark many functions as __INITFUNC__
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
2ec34d1b05 AP_Proximity: mark many functions as __INITFUNC__
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
a6d88fd25e AP_Compass: mark many functions as __INITFUNC__
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
51d202fd8a AP_Baro: mark many functions as __INITFUNC__
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
68969e110e AP_Airspeed: mark many functions as __INITFUNC__
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
3e9cb2554e RC_Channel: mark many functions as __INITFUNC__
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
f2104c97d8 AP_Mount: mark many functions as __INITFUNC__
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
bc848d2bed AP_InertialSensor: mark many functions as __INITFUNC__
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
c31d654623 AP_HAL_ChibiOS: mark many functions as __INITFUNC__
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
4d39f80d4c AP_GyroFFT: mark many functions as __INITFUNC__
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
5a2ef8e960 AP_Generator: mark many functions as __INITFUNC__
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
1ec35b57f3 AP_DroneCAN: mark many functions as __INITFUNC__
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
c4428d82cb AP_Declination: mark declination tables as __EXTFLASHFUNC__ 2025-02-19 18:01:48 +11:00
Peter Barker
9351963f78 AP_CANManager: mark many functions as __INITFUNC__
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
b9efab548c AP_BattMonitor: mark many functions as __INITFUNC__
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
65fca2a37d AP_HAL: mark many functions as __INITFUNC__
... implying they can go into external flash
2025-02-19 18:01:48 +11:00
Peter Barker
3bcd04c4c9 AP_HAL_Linux: move AP_Airspeed configuration into linux hwdef 2025-02-19 15:42:52 +11:00
Peter Barker
1f102d8fb9 AP_Airspeed: move AP_Airspeed configuration into linux hwdef 2025-02-19 15:42:52 +11:00
Peter Barker
cbdaf2be46 AP_InertialSensor: move AP_InertialSensor configuration into linux hwdef 2025-02-19 15:42:52 +11:00
Peter Barker
e3e5199e53 AP_HAL_Linux: move AP_InertialSensor configuration into linux hwdef 2025-02-19 15:42:52 +11:00
Peter Barker
c9e4a7d195 AP_HAL_Linux: move defaulting of ublox speed change into linux hwdef 2025-02-19 15:42:52 +11:00
Peter Barker
8f420defc1 AP_GPS: move defaulting of ublox speed change into linux hwdef 2025-02-19 15:42:52 +11:00
Peter Barker
5181350909 AP_OpticalFlow: move enabling of Onboard OF into bebop hwdef 2025-02-19 15:42:52 +11:00
Peter Barker
05bc0c0669 AP_HAL_Linux: move enabling of Onboard OF into bebop hwdef 2025-02-19 15:42:52 +11:00
Peter Barker
64633197cf AP_Relay: move defaulting of relay pin params to linux hwdefs 2025-02-19 15:42:52 +11:00
Peter Barker
82ab52a7bf AP_HAL_Linux: move defaulting of relay pin params to linux hwdefs 2025-02-19 15:42:52 +11:00
Peter Barker
b377a00ae3 AP_HAL: move defaulting of relay pin params to linux hwdefs 2025-02-19 15:42:52 +11:00
Peter Barker
640231c6d5 AP_HAL_Linux: move custom compass rotation into linux hwdefs 2025-02-19 15:42:52 +11:00
Peter Barker
c7a9054d14 AP_Compass: move custom compass rotation into linux hwdefs 2025-02-19 15:42:52 +11:00
Peter Barker
e26ee85cf6 AP_RangeFinder: move enabling of specific rangefinders into linux hwdef 2025-02-19 15:42:52 +11:00
Peter Barker
0feb2d2f53 AP_HAL_Linux: move enabling of specific rangefinders into linux hwdef 2025-02-19 15:42:52 +11:00