Commit Graph

66848 Commits

Author SHA1 Message Date
Peter Barker
0f6b6ce51b AP_HAL_ChibiOS: move IOMCU RC input handling down into AP_RCProtocol 2025-03-05 23:47:19 -05:00
Peter Barker
8c1da9a087 autotest: add copter autotest for mission clearing after reboot 2025-03-05 21:42:17 +11:00
Randy Mackay
080dc64512 AP_Mission: fix option_is_set 2025-03-05 19:09:52 +09:00
Peter Barker
0189c6f1bb AP_Notify: stop using OwnPtr in IS31FL3195 2025-03-05 18:18:11 +11:00
Peter Barker
b9699b46a7 autotest: add simple test for SHT3X temperature sensor 2025-03-05 18:17:28 +11:00
Peter Barker
a87e6eb707 Tools: add support for SHT3x-DIS temperature sensor 2025-03-05 18:17:28 +11:00
Peter Barker
b1f704cf76 AP_TemperatureSensor: add support for SHT3x-DIS temperature sensor 2025-03-05 18:17:28 +11:00
Peter Barker
8df29a3960 SITL: add simulated SHT3x temperature sensor 2025-03-05 18:17:28 +11:00
Peter Barker
0ae3e7cdcb AP_Math: allow initial value to be specified for crc8_generic
some crc8's start with a non-zero value
2025-03-05 18:17:28 +11:00
Peter Barker
a514af1b2e AP_TemperatureSensor: mark init() functions as __INITFUNC__ 2025-03-05 18:17:28 +11:00
Randy Mackay
13cbd76651 Tools: update AHRS AutoTrim build option description 2025-03-05 11:22:40 +09:00
Randy Mackay
02ab06ff05 RC_Channel: rename rc option to AHRS AutoTrim 2025-03-05 11:22:40 +09:00
Shiv Tyagi
a313c2a063 Tools: use new AP_PERIPH_ESC_APD_ENABLED define 2025-03-05 09:45:07 +11:00
Shiv Tyagi
3798d6fd32 AP_HAL_ChibiOS: use new AP_PERIPH_ESC_APD_ENABLED define 2025-03-05 09:45:07 +11:00
Shiv Tyagi
c814c05532 Tools: update error message to use new AP_PERIPH_RELAY_ENABLED define 2025-03-05 09:18:49 +11:00
Peter Barker
0d0bc93428 AP_NavEKF3: document variance state fields 2025-03-05 09:16:10 +11:00
Tiziano Fiorenzani
4c17f092ee AP_DDS: Navsat sending all available instances 2025-03-05 09:15:48 +11:00
Peter Barker
a115886abd AP_OpticalFlow: correct includes for AP_OpticalFlow_MSP
unused ownptr header
2025-03-05 09:15:32 +11:00
Iampete1
a2e0e28263 Plane: fence: refactor action cases 2025-03-04 08:08:39 +00:00
Andrew Tridgell
478b47caa2 hwdef: update comments on APJ_BOARD_ID 2025-03-04 13:36:48 +11:00
Michelle Rossouw
5cff6c02a1 AP_HAL_ChibiOS: Fix regression in MCU max and min volt logging 2025-03-04 12:08:04 +11:00
rishabsingh3003
40ed9f6e64 AP_NavEKF3: correct the scope of posErr 2025-03-04 12:00:45 +11:00
Thomas Watson
d6bda7362f AP_Filesystem: LittleFS: tune for JEDEC NOR
Decreasing metadata size from the default of a full block reduces large
pauses that cause log drops.
2025-03-04 11:46:15 +11:00
Thomas Watson
7e90503245 AP_Filesystem: LittleFS: use 64K blocks for JEDEC_NOR
64K blocks are supported by all chips and have a higher bytes-per-second
erase rate than 4K "sectors". The block counts previously were in 64K
units so they don't change.

Also cleans up the calculations a bit.
2025-03-04 11:46:15 +11:00
Thomas Watson
abea5309f3 AP_Filesystem: LittleFS: add erase counts to debug
Also fix that we are talking about page writes instead of block writes.
2025-03-04 11:46:15 +11:00
Thomas Watson
25792f9997 AP_Filesystem: LittleFS: fix JEDEC NOR page reads
The address in the `JEDEC_READ_DATA` command for JEDEC NOR chips is
absolute, not relative like for W25NXX. Fix erroneous reads by only
using relative `JEDEC_READ_DATA` address on W25NXX.
2025-03-04 11:46:15 +11:00
Thomas Watson
f5858ebca0 AP_Filesystem: LittleFS: support GD25Q16E flash
This really needs to be shared with AP_Logger and AP_FlashIFace.

Co-authored-by: Andy Piper <github@andypiper.com>
2025-03-04 11:46:15 +11:00
Thomas Watson
d4ea44d23d AP_HAL_ChibiOS: KakuteH7Mini: enable LittleFS and scripting 2025-03-04 11:46:15 +11:00
Thomas Watson
75e4775f1a AP_HAL_ChibiOS: add JEDEC NOR support to hwdef.dat DATAFLASH
Also fix newlines for written defines.
2025-03-04 11:46:15 +11:00
Thomas Watson
3532d6d5ad AP_Filesystem: AP_FILESYSTEM_FLASH_W25QXX -> AP_FILESYSTEM_FLASH_JEDEC_NOR
Match the chips which use the JEDEC driver in AP_Logger. Other chips are
(or should be) compatible. They are all NOR; NAND chips seem to use a
slightly different protocol described by AP_FILESYSTEM_FLASH_W25NXX.
2025-03-04 11:46:15 +11:00
Peter Barker
c47a208b8b AP_GPS: SBF: send debug output to GCS_SEND_TEXT not console
so much more useful generally
2025-03-04 11:34:45 +11:00
Peter Barker
f1cbfa0363 AP_GPS: discard SBF packets with claimed length > 256 bytes
messages coming in with a size of 24120 bytes.  It takes so long to try to read those bytes in (at the device's message rate) that we time out the GCS and try detecting again
2025-03-04 11:34:45 +11:00
Peter Barker
c986a9543a AP_Airspeed: avoid use of ownptr 2025-03-04 11:31:43 +11:00
Iampete1
c9d932cca8 Plane: autoland: climb above ground not current location 2025-03-04 11:28:05 +11:00
Iampete1
d4f0d400b2 AP_Generator: FuelCell: increase max data rate limit 2025-03-04 11:03:03 +11:00
Shiv Tyagi
adcee3cdde Tools: use new AP_PERIPH_DEVICE_TEMPERATURE_ENABLED define 2025-03-04 10:55:34 +11:00
Shiv Tyagi
0e0e68c984 AP_HAL_ChibiOS: use new AP_PERIPH_DEVICE_TEMPERATURE_ENABLED define 2025-03-04 10:55:34 +11:00
rubenp02
cf68e52a99 Plane: Change glide slope to altitude slope
Smooth altitude changes were always referred to as "glide slopes"
despite this not being the appropriate aviation term in the case of a
climb. A better option is "altitude slope", which encompasses both
smooth climbs and descents.

Changed all references to glide slopes, except those that specifically
refer to a single kind (like those used for landings), to the more
general term. This also includes changing the GLIDE_SLOPE_MIN and
GLIDE_SLOPE_THR parameters to ALT_SLOPE_MIN and ALT_SLOPE_MAXHGT,
respectively.
2025-03-04 10:55:06 +11:00
rubenp02
f7ec2e7420 autotest: Change glide slope to altitude slope
Smooth altitude changes were always referred to as "glide slopes"
despite this not being the appropriate aviation term in the case of a
climb. A better option is "altitude slope", which encompasses both
smooth climbs and descents.

Changed all references to glide slopes, except those that specifically
refer to a single kind (like those used for landings), to the more
general term. This also includes changing the GLIDE_SLOPE_MIN and
GLIDE_SLOPE_THR parameters to ALT_SLOPE_MIN and ALT_SLOPE_THRESH,
respectively.
2025-03-04 10:55:06 +11:00
rubenp02
b885bfadb4 SITL: Change glide slope to altitude slope
Smooth altitude changes were always referred to as "glide slopes"
despite this not being the appropriate aviation term in the case of a
climb. A better option is "altitude slope", which encompasses both
smooth climbs and descents.

Changed all references to glide slopes, except those that specifically
refer to a single kind (like those used for landings), to the more
general term. This also includes changing the GLIDE_SLOPE_MIN and
GLIDE_SLOPE_THR parameters to ALT_SLOPE_MIN and ALT_SLOPE_THRESH,
respectively.
2025-03-04 10:55:06 +11:00
rubenp02
3f11aa7bf7 Tools: Change glide slope to altitude slope
Smooth altitude changes were always referred to as "glide slopes"
despite this not being the appropriate aviation term in the case of a
climb. A better option is "altitude slope", which encompasses both
smooth climbs and descents.

Changed all references to glide slopes, except those that specifically
refer to a single kind (like those used for landings), to the more
general term. This also includes changing the GLIDE_SLOPE_MIN and
GLIDE_SLOPE_THR parameters to ALT_SLOPE_MIN and ALT_SLOPE_THRESH,
respectively.
2025-03-04 10:55:06 +11:00
Peter Barker
67cc6dd612 hwdef: use board_config names rather than numbers in hwdefs 2025-03-04 10:49:43 +11:00
Peter Barker
abec8a838e board_types.txt: add missing board IDs 2025-03-04 10:49:43 +11:00
Iampete1
b648b55640 Plane: Tiltrotor: fix has_vtol_motor function 2025-03-04 08:43:09 +11:00
Thomas Watson
89cc25ca81 AP_Filesystem: LittleFS: clarify fsync bytes logic
Studied by copying and pasting the equations into a simple program to
step through each file offset and print the results.

* The equations return nonsense results for small file positions. This
  is expected (and noted by the LittleFS author) as block 0 does not
  have any pointers according to the LittleFS design; it's entirely
  filled with data. Therefore, check and avoid calculating them when we
  know we're in the first block.

* This function always assumes we are writing a full block, so
  `block_size - block_offset <= nbytes` is always true.

* `block_size == block_offset` can never be true, `block_offset` is at
  maximum `block_size-1`. Therefore we can remove the logic to sync when
  they are equal and we will always calculate the result to be
  `block_size - block_offset`.
2025-03-03 09:24:50 -05:00
Thomas Watson
9cc6e25fd4 AP_Filesystem: LittleFS: inline fsync bytes calculation
Rename _write_offset to file_pos and blocksize to block_size. Also
remove the unused return value.
2025-03-03 09:24:50 -05:00
Julio Cesar Matias
076951f003 matrix_alg: Probable redundancy 2025-03-03 08:57:39 +09:00
co63oc
d24da9e854 ArduCopter: correct typos and mis-spellings 2025-03-03 08:47:03 +09:00
Andrew Tridgell
43bf73000f Replay: fixed --force-ekf2 in Replay
when the original log used a firmware without EKF2 compiled in then
the format messages are missing
2025-03-01 20:56:53 +11:00
Peter Barker
6602f0b085 AC_Avoidance: add missing AP_AHRS.h include 2025-03-01 10:58:24 +09:00