Commit Graph

66880 Commits

Author SHA1 Message Date
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
Julio Cesar Matias
25c5cf13de AP_AccelCal: Remove an unusable return 2025-02-28 11:00:29 +00:00
Peter Barker
f9ca319aad Plane: log throttle throttle suppressed into STAT message 2025-02-28 21:53:08 +11:00
Shiv Tyagi
e100db3596 AP_HAL_ChibiOS: use new AP_PERIPH_PWM_HARDPOINT_ENABLED define 2025-02-28 20:45:47 +11:00
Shiv Tyagi
e6e3b58f18 Tools: use new AP_PERIPH_PWM_HARDPOINT_ENABLED define 2025-02-28 20:45:47 +11:00
tompsontan
1f208d5664 AP_Bootloader: reserve board id for X-MAV-AP-F405Mini 2025-02-28 20:42:52 +11:00
EternAlmox
80c8bda2f1 hwdef: MFT-SEMA100 Change compass orientation
Changed compass orientation
2025-02-28 16:42:40 +11:00
Peter Barker
03519ac2ef hwdef: specify AUTOBUILD_TARGETS for CubeRedSecondary-IO
iofirmware is currently the only sensible target
2025-02-28 10:27:19 +11:00
Andy Piper
fba40313ce AP_Math: add get_twos_complement() from betaflight 2025-02-27 22:32:10 +00:00
Andy Piper
1b9b24e347 AP_Baro: move get_twos_complement() to AP_Math 2025-02-27 22:32:10 +00:00
Andy Piper
7b29cade3f scripts: decode SPA06 2025-02-27 22:32:10 +00:00
Andy Piper
f9f0bfe08e AP_Baro: identify SPA06 in devid 2025-02-27 22:32:10 +00:00
Andy Piper
51efee283a AP_Baro: rework SPL06 to do background updates compliant with the spec.
Pull in some bug fixes from betaflight
2025-02-27 22:32:10 +00:00
Peter Barker
ba35528150 AP_GPS: correct GNSS_MODE parameter description 2025-02-28 07:44:45 +11:00
Andy Piper
bfa40f76d8 AP_HAL_ChibiOS: SpeedyBeeF405AIO 2025-02-27 22:44:52 +11:00
Andy Piper
2f7bf34f57 bootloaders: SpeedyBeeF405AIO 2025-02-27 22:44:52 +11:00
bugobliterator
f104bd251d IO_Firmware: add iofirmware_cubered 2025-02-27 20:11:40 +11:00
bugobliterator
679fa817e6 AP_HAL: move methods for stack overflow and memguard to AP_HAL/Util
also add reboot on memory errors for iomcu
2025-02-27 20:11:40 +11:00
bugobliterator
6b668d0113 AP_InternalError: move methods for stack overflow and memguard to AP_HAL/Util 2025-02-27 20:11:40 +11:00