Commit Graph

66537 Commits

Author SHA1 Message Date
SULILG
59e0f5cc84 AP_HAL_ChibiOS : add SULILGH7 board 2025-02-17 19:50:16 +11:00
Wdiy
cdd6622dfb Tools: add SULILGH7 board 2025-02-17 19:50:16 +11:00
Iampete1
9427b81366 Tools: move from MAV_MODE enum to uint8_t 2025-02-17 17:20:24 +11:00
Iampete1
2730777785 Rover: move from MAV_MODE enum to uint8_t 2025-02-17 17:20:24 +11:00
Iampete1
c07863f6cd Blimp: move from MAV_MODE enum to uint8_t 2025-02-17 17:20:24 +11:00
Iampete1
77b8d90226 ArduSub: move from MAV_MODE enum to uint8_t 2025-02-17 17:20:24 +11:00
Iampete1
aef376f1c7 ArduPlane: move from MAV_MODE enum to uint8_t 2025-02-17 17:20:24 +11:00
Iampete1
57555bb815 ArduCopter: move from MAV_MODE enum to uint8_t 2025-02-17 17:20:24 +11:00
Iampete1
4ea719e017 AntennaTracker: move from MAV_MODE enum to uint8_t 2025-02-17 17:20:24 +11:00
Iampete1
494af643b5 GCS_MAVLink: move from MAV_MODE enum to uint8_t 2025-02-17 17:20:24 +11:00
Iampete1
a74f0b35c7 RC_Channel: add docs for copter inflight trim 2025-02-17 17:15:10 +11:00
Thomas Watson
ec7ece3a4d AP_Filesystem: littlefs: drop singleton 2025-02-17 16:33:51 +11:00
Thomas Watson
ca3c2c7c72 AP_Logger: File: take advantage of new optimal fsync API
Now FATFS will always sync on 4K boundaries even if it gets misaligned
due to a short or forced write.

LittleFS behavior is verified identical.
2025-02-17 16:33:51 +11:00
Thomas Watson
ed2c42ede2 AP_Filesystem: new API for performing optimal fsyncs 2025-02-17 16:33:51 +11:00
Thomas Watson
182646a7e4 AP_Filesystem: littlefs: debug warn of misaligned fsyncs 2025-02-17 16:33:51 +11:00
Randy Mackay
a6c2c1527b AP_Mount: CADDX RC rate control fix 2025-02-17 13:39:44 +09:00
Shiv Tyagi
3d96c7e419 AP_HAL_ChibiOS: create and use AP_PERIPH_NETWORKING_ENABLED 2025-02-17 09:55:51 +11:00
Shiv Tyagi
222f3ceefd Tools: use AP_PERIPH_NETWORKING_ENABLED for HAL_PERIPH_ENABLE_NETWORKING 2025-02-17 09:55:51 +11:00
Shiv Tyagi
15376a4908 AP_HAL_ChibiOS: replace AP_PERIPH_AIRSPEED_ENABLED with HAL_PERIPH_ENABLE_AIRSPEED 2025-02-16 10:11:10 +11:00
Shiv Tyagi
0248f0d5d8 Tools: replace HAL_PERIPH_ENABLE_AIRSPEED with AP_PERIPH_AIRSPEED_ENABLED 2025-02-16 10:11:10 +11:00
Thomas Watson
fb8f3488d5 AP_Filesystem: littlefs: fix lseek
lseek must return the current file position. Previously, the littlefs
version always returned 0, which broke terrain I/O as it checks that the
position returned is the one it seeked to. Fix to return the current
position, which is correctly returned from littlefs.

This problem was originally and incorrectly diagnosed as an issue with
littlefs seeking past the end of the file, but this functionality works
fine and fixing the incorrect return completely fixes terrain.

Terrain functionality was verified using `TERRAIN_DEBUG` on
KakuteH7Mini-Nand running sim on HW. Terrain data is correctly
downloaded from the GCS and loaded from the filesystem after reboot.
2025-02-14 13:29:12 +01:00
Andy Piper
a23f9cd754 AP_Bootloader: SpeedyBee board ids 2025-02-13 11:25:33 +01:00
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