Commit Graph

65475 Commits

Author SHA1 Message Date
Thomas Watson
036d46eaaf CI: use latest released version of Cygwin install action
Using the master branch exposed us to transient breakage as the action
was developed.
2025-01-27 08:49:31 +09:00
Thomas Watson
125b54e9b9 Tools: fix Cygwin CI build
There are currently issues where the non-.exe-suffixed files can't be
copied into the `artifacts` folder; `cp` claims "File exists".
Previously this worked but the suffix was added by Cygwin so all files
in `artifacts` had a `.exe` suffix anyway.

This is evidently intended, though non-intuitive, behavior:
https://sourceware.org/legacy-ml/cygwin/2009-08/msg00293.html

> On Cygwin, you should avoid having a file "foo" and a file "foo.exe"
> in the same directory at all cost to avoid puzzeling POSIX borderline
> behaviour like this.  What you do is essentially in the "not
> supported" class of problems.

> [...] Cygwin does not check for a file "foo", if the name of the file
> is explicitely given as "foo.exe".

Apparently something similar was addressed in PR #20926; the current
code installs files with both suffixes, but that fix contradicts the
info above and now has broken.

This PR changes the code to only install .exe-suffixed files, as opposed
to only non-.exe-suffixed files, which was the behavior before that PR.
2025-01-27 08:49:31 +09:00
Thomas Watson
db5b344611 Tools: ensure ESP32 malloc is wrapped to zero memory
The relevant linker flag needed to be put in the CMake script.
2025-01-27 08:49:31 +09:00
Thomas Watson
73e5c2b4a8 AP_HAL_ESP32: ensure malloc is wrapped to zero memory
The relevant linker flag needed to be put in the CMake script.
2025-01-27 08:49:31 +09:00
Rhys Mainwaring
f7d5f0f8f1 AP_MultiHeap: initialize only if heap allocation succeeded
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2025-01-27 08:49:31 +09:00
Randy Mackay
df24d3a61d AP_Mount: Topotek pitch rate direction fix 2025-01-27 08:49:31 +09:00
Bill Geyer
dc43fa0a76 AC_AutoTune_Heli: fix rate and accel limiting 2025-01-27 08:49:31 +09:00
Peter Barker
10c1e05f89 AP_Proximity: add sample data from LD06 sensor 2025-01-27 08:49:31 +09:00
Peter Barker
f013f8bc01 autotest: add LD06 to ProximitySensor tests 2025-01-27 08:49:31 +09:00
Peter Barker
02830ab3df SITL: add LD06 simulator 2025-01-27 08:49:31 +09:00
Peter Barker
a077a99783 AP_HAL_SITL: add LD06 simulator 2025-01-27 08:49:31 +09:00
Peter Barker
54a36170e4 AP_Proximity: correct length sanity check
the length field is actually the count of 3-byte data elements
2025-01-27 08:49:31 +09:00
Marco Walther
3639fa6d17 AP_Proximity: LD06: correct data collection
incorrect distances+angles being returned
2025-01-27 08:49:31 +09:00
Thomas Watson
4d28b888a2 ardupilotwaf: properly configure double precision tests
Use new setup function. Unsure if this affects anything.
2025-01-27 08:49:31 +09:00
Thomas Watson
090f323678 ardupilotwaf: properly configure double precision tasks
There might be multiple copies of the flags, so remove all of them. Also
pull the setup into a helper function to avoid duplicating the logic.

On ChibiOS boards, this fixes SITL (which had issues with position
quantization) and affects the SBF GPS driver (which was probably fine
before but does change slightly).
2025-01-27 08:49:31 +09:00
Andrew Tridgell
e723664b00 AP_Scripting: added QUIK_ANGLE_MAX for lua quicktune
this brings the same protection to the lua script as was added for the
C++ implementation
2025-01-27 08:49:31 +09:00
Andrew Tridgell
1a43a4840f AP_Scripting: added get_att_error_angle_deg binding for AC_AttitudeControl 2025-01-27 08:49:31 +09:00
Peter Barker
54b0085f09 AP_Proximity: prevent buffer overflow in LD06 driver
We're using a value off the wire before it has been validated.  That value is used to limit indexing into a buffer, and that buffer isn't big enough to handle all possible "bad" values that index could take on.  Note that "read" here returns int16_t....
2025-01-27 08:49:31 +09:00
Siddharth Purohit
cd08d30e8f AP_InertialSensor: do not read FIFO faster than requested rate for ICM45686 2025-01-27 08:49:31 +09:00
Andy Piper
10661c41a4 AP_HAL_ChibiOS: ICM42688 for OrqaF405Pro 2025-01-27 08:49:31 +09:00
George Zogopoulos
d6d4f996f7 Plane: Pass external HAGL to TECS 2025-01-27 08:49:31 +09:00
Andrew Tridgell
b59b2138b8 AP_CANManager: fixed critical race in log_text()
the AP_CANManager::log_text() gets called from debug logging in
AP_DroneCAN. It is a method on a common AP_CANManager object which is
shared by multiple AP_DroneCAN threads.

if two threads call the debug log messages at the same time then we
can end up with _log_pos greater than LOG_BUFFER_SIZE (1024) and
overwrite past the end of the buffer

in the crash_dump we have for this case the next piece of memory was
hal.can[0], and the overwrite of the buffer had corrupted the
MessageRam_ structurre in the ChibiOS CAN interface code. That led to
a hardfault on receive of a CAN message

Note that this issue only happens if CAN_LOGLEVEL is set to greater
than zero, and the default is zero. So users can avoid the bug by
checking they have not changed CAN_LOGLEVEL.

Also, this is likely an issue that only happens on startup, as once
the two AP_DroneCAN threads are fully running they have the same
thread priority so can't pre-empt each other. During startup some
messages are sent from the main thread which has a different priority
to the AP_DroneCAN threads, and can thus trigger this issue
2025-01-27 08:49:31 +09:00
Andy Piper
256238ad9d AP_ESC_Telem: ensure that EDTv2 only gets logged when telemetry is available 2025-01-27 08:49:31 +09:00
Henry Wurzburg
a88c81e14b RC_Channel:add QuickTune metadat 2025-01-27 08:49:31 +09:00
Kinchin Fong
a089720474 AP_HAL_ChibiOS: Add hwdef files for AET-H743-Basic 2025-01-27 08:49:31 +09:00
Kinchin Fong
54fd7b1be5 Tools: Add bootloaders for AET-H743-Basic 2025-01-27 08:49:31 +09:00
Minderring
531211cbfa Tools: add MicoAir743 to manifest generator 2025-01-22 11:43:55 +09:00
Minderring
b53cf4ba1f Tools: add hwdef MicoAir743v2
Update README.md: add bluetooth introduction to features

Co-authored-by: Henry Wurzburg <hwurzburg@yahoo.com>

Update README.md: fix description about SERIAL8

Co-authored-by: Henry Wurzburg <hwurzburg@yahoo.com>

Update README.md: fix description about RC

Co-authored-by: Henry Wurzburg <hwurzburg@yahoo.com>

Update README.md: add description about "LED" pin

Co-authored-by: Henry Wurzburg <hwurzburg@yahoo.com>

Update README.md: fix description about Loading Firmware

Co-authored-by: Henry Wurzburg <hwurzburg@yahoo.com>

Update README.md: fix description about update firmware

Co-authored-by: Henry Wurzburg <hwurzburg@yahoo.com>

remove defaults.parm and defined default params in hwdef file

Update README.md: fix description about osd

Co-authored-by: Henry Wurzburg <hwurzburg@yahoo.com>

remove parameter define about serial4

Update README.md: add a section about BlueTooth
2025-01-22 11:43:55 +09:00
Minderring
ed8c288135 AP_HAL_ChibiOS: add hwdef MicoAir743v2
Update README.md: add bluetooth introduction to features

Co-authored-by: Henry Wurzburg <hwurzburg@yahoo.com>

Update README.md: fix description about SERIAL8

Co-authored-by: Henry Wurzburg <hwurzburg@yahoo.com>

Update README.md: fix description about RC

Co-authored-by: Henry Wurzburg <hwurzburg@yahoo.com>

Update README.md: add description about "LED" pin

Co-authored-by: Henry Wurzburg <hwurzburg@yahoo.com>

Update README.md: fix description about Loading Firmware

Co-authored-by: Henry Wurzburg <hwurzburg@yahoo.com>

Update README.md: fix description about update firmware

Co-authored-by: Henry Wurzburg <hwurzburg@yahoo.com>

remove defaults.parm and defined default params in hwdef file

Update README.md: fix description about osd

Co-authored-by: Henry Wurzburg <hwurzburg@yahoo.com>

remove parameter define about serial4

Update README.md: add a section about BlueTooth
2025-01-22 11:43:55 +09:00
Minderring
59373b4105 Tools: support for MicoAir743-AIO
Update README.md: uses internal esc

Co-authored-by: Henry Wurzburg <hwurzburg@yahoo.com>

Update README.md: introduction about RC input

Co-authored-by: Henry Wurzburg <hwurzburg@yahoo.com>

Update README.md: introduction about PWM groups

Co-authored-by: Henry Wurzburg <hwurzburg@yahoo.com>

remove defaults.parm and defined default params in hwdef file
2025-01-22 11:43:55 +09:00
Minderring
23380be49e AP_HAL_ChibiOS: support for MicoAir743-AIO
Update README.md: uses internal esc

Co-authored-by: Henry Wurzburg <hwurzburg@yahoo.com>

Update README.md: introduction about RC input

Co-authored-by: Henry Wurzburg <hwurzburg@yahoo.com>

Update README.md: introduction about PWM groups

Co-authored-by: Henry Wurzburg <hwurzburg@yahoo.com>

remove defaults.parm and defined default params in hwdef file
2025-01-22 11:43:55 +09:00
Hubert
240bbc09a6 AP_Bootloader: ID reserved for MicoAir743AIOv1 2025-01-22 11:43:55 +09:00
shen
ba1d4454f8 hwdef: Add AEROFOX H7 2025-01-22 11:24:18 +09:00
shen
42a81ae253 Tools: add AEROFOX H7 bootloaders 2025-01-22 11:24:18 +09:00
Randy Mackay
b094390943 Plane: version to 4.6.0-beta2 2024-12-12 15:13:40 +11:00
Randy Mackay
f055d9634f Plane: 4.6.0-beta2 release notes 2024-12-12 15:13:40 +11:00
Randy Mackay
a09630dd97 Copter: version to 4.6.0-beta2 2024-12-12 15:13:40 +11:00
Randy Mackay
5fa4508658 Copter: 4.6.0-beta2 release notes 2024-12-12 15:13:40 +11:00
Randy Mackay
14293e6b82 Rover: version to 4.6.0-beta2 2024-12-12 15:13:40 +11:00
Randy Mackay
4e8a21e659 Rover: 4.6.0-beta2 release notes 2024-12-12 15:13:40 +11:00
Randy Mackay
7b56af39f9 Tracker: version to 4.6.0-beta2 2024-12-12 15:13:40 +11:00
Randy Mackay
15aff6690b Tracker: 4.6.0-beta2 release notes 2024-12-12 15:13:40 +11:00
Iampete1
b036bc326a AP_Scripting: Examples: message_interval: give checker a hint about types 2024-12-12 15:13:40 +11:00
Peter Barker
d1d994b42f AP_Logger: correct PM message metadata 2024-12-12 15:13:40 +11:00
Peter Barker
279bec8786 Tools: logger_metadata: increase diagnostic output on failure 2024-12-12 15:13:40 +11:00
Peter Barker
1ecac3282f AP_RTC: correct logger documentation 2024-12-12 15:13:40 +11:00
Randy Mackay
d57f098ae7 AP_DDS: default IP to 192.168.144.x 2024-12-12 15:13:40 +11:00
Randy Mackay
72e1ec7d93 AP_Networking: default IP to 192.168.144.x 2024-12-12 15:13:40 +11:00
Andy Piper
f1dcf66de0 AP_HAL: protect against invalid values when calculating Jain's estimator 2024-12-12 15:13:40 +11:00
Vincent Poon
098db52c22 add bmi270 support to kakuteh7 2024-12-12 15:13:40 +11:00